Thread: Npc Casting
View Single Post
  #4  
Old 01-18-2010, 06:09 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 198
Default

castspell should retain the casting time of the spell, but for other uses you can add timers

this should wait 10 seconds before starting the casting time of the translocate

Code:
sub EVENT_SAY {
if ($text=~/whatever/i) {
	quest::stoptimer("port");
        quest::settimer("port",10);
	}
        }
	
	sub_EVENT_TIMER {
	if($timer eq "port") {
	quest::stoptimer("port");
	$npc->CastSpell(2943, $client->GetID());
	}
	}
Reply With Quote