View Full Version : Triggering the spawn of an npc in a different zone
chrsschb
03-04-2012, 01:45 PM
Could someone point me in the right direction of how to accomplish this or good examples of where this is already used?
Basically I have an NPC in EC, when you finish his quest he is supposed to spawn an NPC in Nektulos.
sorvani
03-04-2012, 05:19 PM
A quest global and a zone status mob would be my recommendation.
On hand in a a quest global is set.
In Nektulos, you have an invisible zone_status mob with a quest file. When the zone boots up, this status mob will spawn and check the qglobal and spawn the NPC as needed. Set a timer on the zone status mob to check every minute or so in case the zone is running for a long time.
You will need to think about how to use the variable in case multiple people do the hand in to spawn if the next npc depawns after one person talks to him or whatever. Incrementing and decrementing the global value would be easiest.
chrsschb
03-16-2012, 02:53 PM
So the way I'm thinking of doing this like this, please tell me if I'm crazy. I also need help incrementing the global through proximities.
At this portion of the quest the player has a global value of 5 assigned to him, 6 is temporary (npc spawned), 7 is quest complete.
1) Player zones into Nektulos
2) Proximity checks for global == 5
3) Proximity spawns NPC at xyz
4) Proximity sets global value to 6 (prevents recurrence and later plays into another global)
5) Proximity depops (prevents multiple people from firing script)
6) Raid kills NPC
7) Player with global 6 has his global set to 7
9) Players with global 5 are ignored
9) Death of NPC respawns Proximity for the next person
Is this a good way to handle this? If so, can I alter globals through a event_enter check? How do I increment the global from 6 to 7 when the NPC dies? How do decrease the global from 6 to 5 if the NPC is never killed?
I don't anticipate the "npc never killed" thing will happen, but I ask incase I want to use this quest template for a much stronger npc later.
If there is a better way to handle this I'm all ears. I'm a quest-writing noob.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.