Thread: GetRandomClient
View Single Post
  #1  
Old 06-26-2014, 05:26 AM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default GetRandomClient

Does this function not work?

I'm trying this with no luck:

Code:
	if ($timer eq "random_stun"){
		my $RandClient = $entity_list->GetRandomClient($MyX, $MyY, $MyY, 300, 0);
			$npc->CastSpell(5050,$RandClient);
I also tried this, but I added the 0 in the above example because the syntax on the perl reference is: GetRandomClient(x, y, z, range, ClientToExclude) .. thought maybe I needed to 'clienttoexclude'

Code:
my $RandClient = $entity_list->GetRandomClient($MyX, $MyY, $MyY, 300);
Reply With Quote