Prevents random walking monster to run into walls.
Tested at Cruma Tower ,with driftrange=500, for 30mins.
Haven't seen a stuck mob so far.
Tested at Cruma Tower ,with driftrange=500, for 30mins.
Haven't seen a stuck mob so far.
- Code:
Index: L2AttackableAI.java
===================================================================
--- L2AttackableAI.java (revision 724)
+++ L2AttackableAI.java (working copy)
@@ -714,7 +723,11 @@
}
// Move the actor to Location (x,y,z) server side AND client side by sending Server->Client packet CharMoveToLocation (broadcast)
- moveTo(x1, y1, z1);
+ //moveTo(x1, y1, z1);
+ if (GeoData.getInstance().canMove(_actor.getX(), _actor.getY(), _actor.getZ(), x1, y1, z1))
+ {
+ moveTo(x1, y1, z1);
+ }
}
}
Last edited by Karakan on 16th May 2020, 02:44; edited 1 time in total