Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-13-2010, 10:21 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

I am going to assume the zones are set as dynamic (they shut down if empty of players).

Do accomplish this.

Assign upon spawning your raid mobs each a unique global variable.
ect quest::setglobal("dragon1",1,7,F); another would be "dragon2", "dragon3", "dragon4",

Upon death delete the global.

Add to your spawn script, a check if any of the other globals are defined, if they are defined this means they are still spawned, if they are not defined this means they have been killed. If all are undefined, then roll your 1-6.
Lets say a roll of 6 = spawn all the dragons again. So if roll equal six set 4 new global lets called it quest::setglobal("Respawn_Now_Dragon",4,7,F); ect through Respawn_Now_Dragon4

In each zone that has the raid npc you want to spawn, for example, permafrost and solb. You should have an invisble NPC that is constantly spawned. So as soon as the zone loads up when a player zones in, it will run a sub event spawn script. In this script now check if "Respawn_Now" is defined or not and IF the raid mob is up or not. If defined and the raid mob isn't up then spawn the raid mob and delete the global.

Sorry if this is verbose but I didn't feel like formatting all the code. Anyways no reason this wouldn't accomplish what you want. Any questions let me know.

Kayen
GM Stormhaven
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 10:26 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