Checking if a zone is an instance
How can I check if a zone is an instance version or not?
I did a check on quest::GetInstanceID in player.pl when a player enters the zone, but it doesnt work for 100% of cases. This works if the instance returned is greater than 0, but, the issue with that is if a player had an instance and left it, then enters the regular version of that zone before the instance expires, that check reports the instance number of the instance they left. Is there an easy way to detect if a zone is an instance? I need to signal NPCs if it is, and dont want to if its the regular zone. |
Destroy the instance when they leave the instanced zone. Or is that not an option?
You may need to also utilize a means (qglobal, etc.) of tracking HOW they entered the zone in combination with the other tools (GetInstanceID), and/or the pre-parsed variables $instanceid / $instanceversion. |
Im not sure how to destroy the instance when they leave it, and differentiate between if they evacuated or got resurrected, or Id do that.
I guess I could set a quest global when the instance npc sends them to the instance thats destroyed when they enter, so its a one time flag to fire the script. edit: Thank you for the idea - that worked. |
Here is an instance generator/destroyer npc I use in gfaydark to generate level-appropriate instances of crushbone.
Code:
sub EVENT_SAY { |
All times are GMT -4. The time now is 04:07 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.