Thread: GetRandomClient
View Single Post
  #2  
Old 06-26-2014, 05:38 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

Pretty sure, CastSpell requires Target ID

Code:
	if ($timer eq "random_stun"){
		my $RandClient = $entity_list->GetRandomClient($MyX, $MyY, $MyY, 300, 0);
                      if ($RandomClient){
			$npc->CastSpell(5050,$RandClient->GetID());
                     }
             }
Reply With Quote