View Single Post
  #3  
Old 07-16-2009, 01:39 PM
Capheus
Hill Giant
 
Join Date: Apr 2008
Location: Milwaukee
Posts: 141
Default

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.");
  }
  
 }
}
Reply With Quote