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