Code:
#861 = lava breath
#789 = dragon roar
sub EVENT_AGGRO {
quest::settimer(1, 12);
quest::settimer(2, 36);
}
}
sub EVENT_TIMER {
if($timer eq "1") {
$npc->CastSpell(861,$userid);
}
if($timer eq "2") {
$npc->CastSpell(789,$userid);
}
}
sub EVENT_COMBAT {
if ($combat_state == 0) {
quest::stoptimer("1");
quest::stoptimer("2");
}
}
Replacing quest::CastSpell($userid, 861); with $npc->CastSpell(861,$userid);, makes first AE (861)go off, but not the 2nd one, like the 2nd timer is not working. and after a #repop, mob still is casting 861 .. like the stoptimers are not working.
Anyone have further insight into this? Is there a way for 2 timers to run simultaneously without stopping until end of combat?.. or what all is wrong with this quest