Browse Source

slot NPC fix

birdbane
FatBoy-DOTC 8 months ago
parent
commit
2e5892ff32
  1. 13
      src/engine/net/client/handlers/ActivateNPCMsgHandler.java

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

@ -100,6 +100,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { @@ -100,6 +100,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
if (contractItem == null)
return false;
if (msg.getContractItem() == 850) {//runemaster
for (AbstractCharacter abs : building.getHirelings().keySet()) {
NPC npc = (NPC) abs;
@ -143,8 +144,16 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler { @@ -143,8 +144,16 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
if (contract.getContractID() == 865)//siege engineer
override = true;
}
if(building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.SIEGETENT)){
if(contract.getContractID() == 865)//siege engineer
if(building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.SHACK)){
if(contract.getContractID() == 830)//merchant
override = true;
}
if(building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.SHRINE)){
if(contract.getContractID() == 252637)//votary
override = true;
}
if(building.getBlueprint().getBuildingGroup().equals(Enum.BuildingGroup.BULWARK)){
if(contract.getContractID() == 839)//artillery captain
override = true;
}
if(override == false) {

Loading…
Cancel
Save