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 { @@ -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;

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

@ -26,7 +26,7 @@ public class ActivateNPCMessage extends ClientNetMsg { @@ -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 { @@ -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 { @@ -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 { @@ -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) {

2
src/engine/objects/Mob.java

@ -2139,8 +2139,6 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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()) {

Loading…
Cancel
Save