sub EVENT_COMBAT { if ($combat_state == 1) { quest::settimer("test",3); } if ($combat_state == 0) { quest::stoptimer("test"); } } sub EVENT_TIMER { if($timer eq "test") { quest::castspell($userid,92); quest::stoptimer("test"); } }