Correct walker location instead of stop route.
This commit is contained in:
@ -283,9 +283,8 @@ public final class WalkingManager implements IGameXmlReader
|
||||
|
||||
if (!npc.isInsideRadius(node, 3000, true, false))
|
||||
{
|
||||
final String message = "Route '" + routeName + "': NPC (id=" + npc.getId() + ", x=" + npc.getX() + ", y=" + npc.getY() + ", z=" + npc.getZ() + ") is too far from starting point (node x=" + node.getX() + ", y=" + node.getY() + ", z=" + node.getZ() + ", range=" + npc.calculateDistance(node, true, true) + "), walking will not start";
|
||||
LOGGER.warning(message);
|
||||
return;
|
||||
LOGGER.warning("Route '" + routeName + "': NPC (id=" + npc.getId() + ", x=" + npc.getX() + ", y=" + npc.getY() + ", z=" + npc.getZ() + ") is too far from starting point (node x=" + node.getX() + ", y=" + node.getY() + ", z=" + node.getZ() + ", range=" + npc.calculateDistance(node, true, true) + "). Teleporting to proper location.");
|
||||
npc.teleToLocation(node);
|
||||
}
|
||||
|
||||
if (node.runToLocation())
|
||||
|
Reference in New Issue
Block a user