#69 - Range Issue Debugging

This commit is contained in:
Rodgerwilco 2012-04-28 13:15:30 -07:00
parent f9b2b0c0aa
commit 1511831b0d
2 changed files with 9 additions and 13 deletions

View File

@ -232,24 +232,16 @@ public class RangeEvent extends DelayedEvent {
if (owner instanceof Player) {
if (affectedMob instanceof Npc) {
Npc npc = (Npc) affectedMob;
npc.getSyndicate().distributeExp(npc);
}
}
} else {
if (owner instanceof Player && affectedMob instanceof Npc) // We're
// ranging
// an
// NPC,
// so
// make
// it
// chase
// the
// player.
{
// We're ranging an NPC, so make it chase the player.
if (owner instanceof Player && affectedMob instanceof Npc) {
final Npc npc = (Npc) affectedMob;
final Player player = (Player) owner;
player.getActionSender().sendMessage("affectedMob = npc");
if (npc.isBusy() || npc.getChasing() != null)
return;
@ -268,7 +260,8 @@ public class RangeEvent extends DelayedEvent {
this.stop();
return;
}
player.getActionSender().sendMessage("WalkMobToMobEvent finish");
npc.resetPath();
player.setBusy(true);
player.resetPath();

View File

@ -233,6 +233,9 @@ public class PlayerLogin implements PacketHandler {
player.getInventory().add(new InvItem(156));
player.getInventory().add(new InvItem(87));
player.getInventory().add(new InvItem(1263));
//189 + 11 = Range Testing.
player.getInventory().add(new InvItem(189));
player.getInventory().add(new InvItem(11, 100));
player.getActionSender().sendInventory();
player.setChangingAppearance(true);
sender.sendAppearanceScreen();