Thread: Spell question
View Single Post
  #10  
Old 06-30-2009, 03:54 PM
Dibalamin
Hill Giant
 
Join Date: Dec 2007
Posts: 182
Default

For firing spells on a timer, you will need to use

Code:
sub EVENT_TIMER {
if($timer eq "nuke") {
$npc->CastSpell(ID,Target);
}
}
Tying the timer to combat is generally the best idea

Code:
sub EVENT_COMBAT {
if ($combat_state == 1) {
quest::settimer("nuke",15);
}
if ($combat_state == 0) {
quest::stoptimer("nuke");
}
}
__________________
Retired EMarr
Project1999 Developer
Reply With Quote