View Single Post
  #20  
Old 09-15-2010, 04:45 PM
Reynin89
Sarnak
 
Join Date: Apr 2010
Posts: 71
Default

Yea when I add in that extra stoptimer, the mob will only cast the spell once, instead of on the timer.
Quote:
sub EVENT_COMBAT {
if ($combat_state == 1) {
quest::settimer("test",3); }

if ($combat_state eq 0) {
quest::stoptimer("test"); }
}


sub EVENT_TIMER
{
if($timer eq "test")
{
quest::castspell(92,$targetid);
quest::stoptimer("test");

}
}
Reply With Quote