|
|
@ -1433,6 +1433,9 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
int resourceCost = Warehouse.getCostForResource(me.getItemBase().getUUID()); |
|
|
|
int resourceCost = Warehouse.getCostForResource(me.getItemBase().getUUID()); |
|
|
|
if (resourceCost != 0) |
|
|
|
if (resourceCost != 0) |
|
|
|
cost = resourceCost; |
|
|
|
cost = resourceCost; |
|
|
|
|
|
|
|
if(npc.contractUUID == 900 && me.getItemBase().getUUID() == 1705032){ |
|
|
|
|
|
|
|
cost = 1000000; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
float bargain = sourcePlayer.getBargain(); |
|
|
|
float bargain = sourcePlayer.getBargain(); |
|
|
|
|
|
|
|
|
|
|
@ -1503,6 +1506,10 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
if (buy != null) { |
|
|
|
if (buy != null) { |
|
|
|
me.transferEnchants(buy); |
|
|
|
me.transferEnchants(buy); |
|
|
|
itemMan.addItemToInventory(buy); |
|
|
|
itemMan.addItemToInventory(buy); |
|
|
|
|
|
|
|
if(npc.contractUUID == 900 && buy.getItemBaseID() == 1705032){ |
|
|
|
|
|
|
|
buy.setNumOfItems(10); |
|
|
|
|
|
|
|
DbManager.ItemQueries.UPDATE_NUM_ITEMS(buy,buy.getNumOfItems(),0); |
|
|
|
|
|
|
|
} |
|
|
|
//itemMan.updateInventory();
|
|
|
|
//itemMan.updateInventory();
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|