View Single Post
  #11  
Old 03-09-2017, 03:43 PM
GRUMPY
Discordant
 
Join Date: Oct 2016
Posts: 445
Default

Its close to what you need here for that. (300 is only an example)

Code:
my $ProxDist = 300;

sub EVENT_SPAWN {
  my $x = $npc->GetX();
  my $y = $npc->GetY();
  my $z = $npc->GetZ();
  quest::set_proximity($x - $ProxDist, $x + $ProxDist, $y - $ProxDist, $y + $ProxDist, $z - $ProxDist, $z + $ProxDist);
}

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