diff --git a/src/engine/net/client/handlers/ActivateNPCMsgHandler.java b/src/engine/net/client/handlers/ActivateNPCMsgHandler.java index ad204bfd..1701f85c 100644 --- a/src/engine/net/client/handlers/ActivateNPCMsgHandler.java +++ b/src/engine/net/client/handlers/ActivateNPCMsgHandler.java @@ -81,7 +81,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { Vector3fImmutable NpcLoc = new Vector3fImmutable(building.getLoc()); - Item contractItem = Item.getFromCache(msg.getUnknown04()); + Item contractItem = Item.getFromCache(msg.getContractItem()); if (contractItem == null) return false; diff --git a/src/engine/net/client/msg/ActivateNPCMessage.java b/src/engine/net/client/msg/ActivateNPCMessage.java index af423ff3..7a44e778 100644 --- a/src/engine/net/client/msg/ActivateNPCMessage.java +++ b/src/engine/net/client/msg/ActivateNPCMessage.java @@ -26,7 +26,7 @@ public class ActivateNPCMessage extends ClientNetMsg { private int unknown02; private int buildingUUID; private int unknown03; - private int unknown04; + private int contractItem; private int unknown05; private int size; @@ -93,7 +93,7 @@ public class ActivateNPCMessage extends ClientNetMsg { reader.getInt(); // Object Type Padding buildingUUID = reader.getInt(); unknown03 = reader.getInt(); - unknown04 = reader.getInt(); + contractItem = reader.getInt(); unknown05 = reader.getInt(); } @@ -116,8 +116,8 @@ public class ActivateNPCMessage extends ClientNetMsg { return unknown03; } - public int getUnknown04() { - return unknown04; + public int getContractItem() { + return contractItem; } public int getUnknown05() { @@ -144,8 +144,8 @@ public class ActivateNPCMessage extends ClientNetMsg { this.unknown03 = unknown03; } - public void setUnknown04(int unknown04) { - this.unknown04 = unknown04; + public void setContractItem(int contractItem) { + this.contractItem = contractItem; } public void setUnknown05(int unknown05) { diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index e6b72693..ebed1ae8 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -2139,8 +2139,6 @@ public class Mob extends AbstractIntelligenceAgent { mob.setParentZone(parent); DbManager.addToCache(mob); - - RuneBase guardRune = RuneBase.getRuneBase(252621); for (MobBaseEffects mbe : guardRune.getEffectsList()) {