|
|
@ -1402,9 +1402,12 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
Item buy = null; |
|
|
|
Item buy = null; |
|
|
|
if (msg.getItemType() == GameObjectType.MobEquipment.ordinal()) { |
|
|
|
if (msg.getItemType() == GameObjectType.MobEquipment.ordinal()) { |
|
|
|
ArrayList<MobEquipment> sellInventory = npc.getContract().getSellInventory(); |
|
|
|
ArrayList<MobEquipment> sellInventory = npc.getContract().getSellInventory(); |
|
|
|
if(npc.contract.getName().toLowerCase().equals("steward")){ |
|
|
|
if(npc.contract.getObjectUUID() == 890){ // default steward
|
|
|
|
sellInventory = npc.getSellInventorySteward(); |
|
|
|
sellInventory = npc.getSellInventorySteward(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(npc.contract.getObjectUUID() == 889){ // default builder
|
|
|
|
|
|
|
|
sellInventory = npc.getSellInventoryBuilder(); |
|
|
|
|
|
|
|
} |
|
|
|
if (sellInventory == null) { |
|
|
|
if (sellInventory == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|