Wow can't believe I missed that one, thanks a lot! shortened version here.
Code:
sub EVENT_SAY {
if($text=~/goto/i){
$mee = $client;
$zid = $zoneid;
@word = split /\s+/, $text;
$go = $word[1];
quest::say("Looking for $go...");
$client_search = $entity_list->GetClientByName($go);
if ($client_search) {
my $cx = int($client_search->GetX());
my $cy = int($client_search->GetY());
my $cz = int($client_search->GetZ());
$mee->MovePC($zid,$cx,$cy,$cz,0);
}
else {
quest::say("I can't find $go. He/She may not be in the zone anymore.");
}
}
}