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);