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