Browse Source

Value is not unknown from handler context.

master
MagicBot 2 years ago
parent
commit
235ea84dcd
  1. 2
      src/engine/net/client/handlers/ActivateNPCMsgHandler.java
  2. 12
      src/engine/net/client/msg/ActivateNPCMessage.java
  3. 2
      src/engine/objects/Mob.java

2
src/engine/net/client/handlers/ActivateNPCMsgHandler.java

@ -81,7 +81,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
Vector3fImmutable NpcLoc = new Vector3fImmutable(building.getLoc()); Vector3fImmutable NpcLoc = new Vector3fImmutable(building.getLoc());
Item contractItem = Item.getFromCache(msg.getUnknown04()); Item contractItem = Item.getFromCache(msg.getContractItem());
if (contractItem == null) if (contractItem == null)
return false; return false;

12
src/engine/net/client/msg/ActivateNPCMessage.java

@ -26,7 +26,7 @@ public class ActivateNPCMessage extends ClientNetMsg {
private int unknown02; private int unknown02;
private int buildingUUID; private int buildingUUID;
private int unknown03; private int unknown03;
private int unknown04; private int contractItem;
private int unknown05; private int unknown05;
private int size; private int size;
@ -93,7 +93,7 @@ public class ActivateNPCMessage extends ClientNetMsg {
reader.getInt(); // Object Type Padding reader.getInt(); // Object Type Padding
buildingUUID = reader.getInt(); buildingUUID = reader.getInt();
unknown03 = reader.getInt(); unknown03 = reader.getInt();
unknown04 = reader.getInt(); contractItem = reader.getInt();
unknown05 = reader.getInt(); unknown05 = reader.getInt();
} }
@ -116,8 +116,8 @@ public class ActivateNPCMessage extends ClientNetMsg {
return unknown03; return unknown03;
} }
public int getUnknown04() { public int getContractItem() {
return unknown04; return contractItem;
} }
public int getUnknown05() { public int getUnknown05() {
@ -144,8 +144,8 @@ public class ActivateNPCMessage extends ClientNetMsg {
this.unknown03 = unknown03; this.unknown03 = unknown03;
} }
public void setUnknown04(int unknown04) { public void setContractItem(int contractItem) {
this.unknown04 = unknown04; this.contractItem = contractItem;
} }
public void setUnknown05(int unknown05) { public void setUnknown05(int unknown05) {

2
src/engine/objects/Mob.java

@ -2139,8 +2139,6 @@ public class Mob extends AbstractIntelligenceAgent {
mob.setParentZone(parent); mob.setParentZone(parent);
DbManager.addToCache(mob); DbManager.addToCache(mob);
RuneBase guardRune = RuneBase.getRuneBase(252621); RuneBase guardRune = RuneBase.getRuneBase(252621);
for (MobBaseEffects mbe : guardRune.getEffectsList()) { for (MobBaseEffects mbe : guardRune.getEffectsList()) {

Loading…
Cancel
Save