View Single Post
  #2  
Old 03-05-2009, 02:42 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

You don't want to stop a timer from within EVENT_TIMER unless you are stopping one timer from another timer. The simple way is to just use EVENT_COMBAT like so:

Code:
sub EVENT_COMBAT {

  if ($combat_state == 0) {
    quest::stoptimer("BossAE");
    quest::stoptimer("BossResAE");
    quest::stoptimer("BossProc");
    quest::stoptimer("RandomNuke");
    quest::depopall(899007);
  }

}
We use this all of the time for resetting events/encounters if a raid wipes.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote