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");
}
}