Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2012, 01:45 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default Triggering the spawn of an npc in a different zone

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.
Reply With Quote
  #2  
Old 03-04-2012, 05:19 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

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.
Reply With Quote
  #3  
Old 03-16-2012, 02:53 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 904
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:53 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3