mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-22 15:38:52 -05:00
#69 - Range Issue Debugging
This commit is contained in:
parent
f9b2b0c0aa
commit
1511831b0d
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user