Originally posted by [b]kR105[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3398
I was testing the instances system, and I've discovered that the constants ID_ENDLESS and ID_CATACOMBS aren't defined, so when I used this command:
CODE
set .@id, instance_create("Endless Tower", .@party_id, ID_ENDLESS);
the mapserver showed an error.. Then, with a little look to src, I've noticed that the constant ID_ENDLESS is 0 (In the documentation says that should be 5)..
How to fix:
Simple add this lines to the file
db/const.txtCODE
//Instances
ID_ENDLESS 5
ID_CATACOMBS 6
Information taken from the file
script_commands.txt:
CODE
*instance_create("<Instance Name>",<Party ID>,<Instance>)
Create an instance using the name "<Instance Name>" for the Party of <Party ID>.
Instance ID currently will only be ID_ENDLESS (5) or ID_CATACOMBS (6)
Most Instance_* commands are used in conjunction with this command and depend
on the ID this command returns.
With this simple fix, the mapserver has created the instance sucessfully and with no errors (IMG:
style_emoticons/default/wink.gif)
Regards!