EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Movepc question (https://www.eqemulator.org/forums/showthread.php?t=31391)

Tibador 05-29-2010 11:34 AM

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


All times are GMT -4. The time now is 01:39 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.