I might need to play around with instances more, but I have a couple questions.
1) Is their a way to get the actual instance_id for an instance. Their are several cases where i want to use instance_destroy, but it tells me instance 0 is invalid. The script_commands tells me that it needs the instance_id to work. For example, if I want to use the OnPCDieEvent event to warp a character out of the map when he dies I need it to destory the instance if he was the last player on the map or it will keep it open until the timer ends.
2) Getmapusers when called from OnPCDieEvent does not render the proper map. Using strcharinfo(3) will the proper instanced map name such as 0011@gf, but instance_mapname nolonger does so they never match. Without the check it would warp players on anymap.
Peopleperson49
Quote
*instance_destroy {<instance id>};
Destroys instance with the ID <instance id>. If no ID is specified, the instance
the script is attached to is used. If the script is not attached to an instance,
the instance of the currently attached player's party is used. If that fails,
the script will come to a halt.
Question
Peopleperson49
I might need to play around with instances more, but I have a couple questions.
1) Is their a way to get the actual instance_id for an instance. Their are several cases where i want to use instance_destroy, but it tells me instance 0 is invalid. The script_commands tells me that it needs the instance_id to work. For example, if I want to use the OnPCDieEvent event to warp a character out of the map when he dies I need it to destory the instance if he was the last player on the map or it will keep it open until the timer ends.
2) Getmapusers when called from OnPCDieEvent does not render the proper map. Using strcharinfo(3) will the proper instanced map name such as 0011@gf, but instance_mapname nolonger does so they never match. Without the check it would warp players on anymap.
Peopleperson49
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.