Thread: Movepc question
View Single Post
  #1  
Old 05-29-2010, 11:34 AM
Tibador
Fire Beetle
 
Join Date: Jul 2009
Location: -
Posts: 2
Default Movepc question

Hello i am fairly new to using pearl so forgive my ignorance but is their a way to tie the movepc command to a moving npc ?

What i am using right now just moves them to a x,y,z but i would like the transporter to move them to a npc anywhere in the zone which might be moving and continue moving while the port is going on, now i know if zoning takes a long time they might miss it.

##Transporter script
sub EVENT_SPAWN
{
$x = $npc->GetX();
$y = $npc->GetY();
quest::set_proximity($x - 120, $x + 120, $y - 120, $y +120);
}

sub EVENT_ENTER
{
quest::movepc(zone_id,x,y,z);
}
Reply With Quote