Correct walker location instead of stop route.

This commit is contained in:
MobiusDev
2018-09-03 15:57:54 +00:00
parent 4ed1538acc
commit 5e7788c4f7
8 changed files with 16 additions and 24 deletions

View File

@ -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())