|
|
@ -1586,7 +1586,7 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); |
|
|
|
if(npc.getName().equals("Resource Merchant")){ |
|
|
|
if(npc.getName().equals("Resource Merchant")){ |
|
|
|
MobLoot resource = new MobLoot(npc,ItemBase.getItemBase(buy.getItemBaseID()), 1, true); |
|
|
|
MobLoot resource = new MobLoot(npc,ItemBase.getItemBase(buy.getItemBaseID()), 1, true); |
|
|
|
resource.magicValue = Warehouse.getCostForResource(buy.getItemBaseID()); |
|
|
|
resource.setValue(Warehouse.getCostForResource(buy.getItemBaseID())); |
|
|
|
npc.getCharItemManager().addItemToInventory(resource); |
|
|
|
npc.getCharItemManager().addItemToInventory(resource); |
|
|
|
} |
|
|
|
} |
|
|
|
itemMan.updateInventory(); |
|
|
|
itemMan.updateInventory(); |
|
|
|