mirror of
https://github.com/moparisthebest/MoparClassic
synced 2025-02-28 16:31:45 -05:00
#69 - Range Issue Debugging
This commit is contained in:
parent
ec36a93ac0
commit
df28b4e8fb
@ -245,9 +245,11 @@ public class RangeEvent extends DelayedEvent {
|
||||
|
||||
if (npc.isBusy() || npc.getChasing() != null)
|
||||
return;
|
||||
|
||||
|
||||
npc.resetPath();
|
||||
player.getActionSender().sendMessage("npc.resetPath");
|
||||
npc.setChasing(player);
|
||||
player.getActionSender().sendMessage("npc chasing" + player);
|
||||
|
||||
// Radius is 0 to prevent wallhacking by NPCs. Easiest
|
||||
// method I
|
||||
@ -260,9 +262,12 @@ public class RangeEvent extends DelayedEvent {
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
player.getActionSender().sendMessage("WalkMobToMobEvent finish");
|
||||
|
||||
player.getActionSender().sendMessage("WalkMobToMobEvent finish")
|
||||
;
|
||||
player.getActionSender().sendMessage("attempt npc.resetPath");
|
||||
npc.resetPath();
|
||||
|
||||
|
||||
player.getActionSender().sendMessage("npc.resetPath");
|
||||
player.setBusy(true);
|
||||
player.getActionSender().sendMessage("setbusy");
|
||||
|
Loading…
x
Reference in New Issue
Block a user