View Single Post
  #4  
Old 05-07-2011, 10:10 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

Quote:
Originally Posted by KingMort View Post
You don't have to put the zone id in front just the coords as I recall and it should work just fine.
quest::gmmove does not take a zone, and I did try that in here but it did not do anything either.

quest::movepc works fine in a /hail response or something when used plain.
for example in one of Askr files when you have to hail to move up the tower
Code:
sub EVENT_SAY {
if($text=~/hail/i) {
$client->Message(9,"You are doing well... The Storm Lord does not stand a chance!");
quest::movepc(209,-371,-1680,2356);
}
}
but in this script we need to move a PC other than the one doing the clicking, hence
Code:
        foreach $player (@player_list) {
          my $pc = $entity_list->GetClientByName($player);
		  $client->Message(1,"Porting: ".$player);
          $pc->quest::movepc(209,-765,-1735,1270);
        }
Will quest::movepc not support being activated on a client like this?

edit: this code will need some IsClient checks or whatever but I been skipping that until I get the thing to work. Because it will die during the build of the array if one toon is in the raid but offline.
Reply With Quote