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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-10-2012, 12:13 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

I feel like this would be the easiest way to do what you want. Say you are making an instance of a zone with version 1, then create two npcs. I'll refer to their IDs as npc1 and npc2. Spawn both of them in arbitrary locations in the zone and edit spawn2 to make sure they are in instance 1. On npc1, put a script like

Code:
sub EVENT_SPAWN{
 quest::signalwith(npc2, quest::ChooseRandom(1, 2, 3);
}
When the instance starts, this npc will spawn and randomly send a value of 1, 2, or 3 to npc2. On npc2, put this script

Code:
sub EVENT_SIGNAL{
 if ($signal == 1)
 {
   quest::spawn2(bossID, 0, 0, boss-x1, boss-y1, boss-z1, boss-h1);
 }
 if ($signal == 2)
 {
   quest::spawn2(bossID, 0, 0, boss-x2, boss-y2, boss-z1, boss-h2);
 }
 if ($signal == 3)
 {
   quest::spawn2(bossID, 0, 0, boss-x3, boss-y3, boss-z3, boss-h3);
 }
}
Be sure you have done #reloadquests before creating the instance, and it should work.
Reply With Quote
 

Thread Tools
Display Modes

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 12:13 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