A quick and sloppy proximity, abuse it however you wish. Set the x or y values to define your proximity. A zone line running north to south would probably look something like x-5, x+5, y-3000, y+3000 (or however long the zone line should be).
The move char function below is set for just outside the wizard spire in North Ro. The first number is the zone number (34), the next values are X, Y, Z, and Heading (H). Heading is not required, I believe the default heading is 270 degrees.
Also remember the /loc command shows Y, X, Z where as #loc shows X, Y, Z. No idea why...
Code:
sub EVENT_SPAWN
{
my $x = $npc->GetX();
my $y = $npc->GetY();
quest::set_proximity($x - 50, $x + 50, $y - 50, $y + 50);
}
sub EVENT_ENTER
{
quest::movepc(34, 828, 1418.1,5.2,134.4);
}