View Single Post
  #5  
Old 03-05-2009, 10:50 PM
Dibalamin
Hill Giant
 
Join Date: Dec 2007
Posts: 182
Default

I hate to ask Trev, but can you critique this? I can't get the AE's to fire. If I just make him talk with quest::say it works though! So I figure it has to do with the $userid and some way to carry it over from EVENT_AGGRO or maybe GetTopHate()?

Code:
sub EVENT_AGGRO { 
quest::settimer(1, 12); 
quest::settimer(2, 36); 
} 

sub EVENT_TIMER { 

if($timer eq "1") { 
quest::CastSpell($userid, 861); 
} 
if($timer eq "2") { 
quest::CastSpell($userid, 789); 
} 
} 

sub EVENT_COMBAT { 
  if ($combat_state == 0) { 
    quest::stoptimer("1"); 
    quest::stoptimer("2"); 
  
  } 
}
Reply With Quote