@ -1392,18 +1392,22 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1392,18 +1392,22 @@ public class ClientMessagePump implements NetMsgHandler {
ChatManager.chatSystemError(sourcePlayer,"Item Base Null");
return;
}
//test room available for item
if(!itemMan.hasRoomInventory(ib.getWeight()))
if(!itemMan.hasRoomInventory(ib.getWeight())){
ChatManager.chatSystemError(sourcePlayer,"No Room In Inventory");
return;
}
intcost=me.getMagicValue();
floatbargain=sourcePlayer.getBargain();
@ -1420,6 +1424,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1420,6 +1424,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(gold.getNumOfItems()-cost<0){
//dont' have enough goldItem exit!
// chatMan.chatSystemInfo(pc, "" + "You dont have enough gold.");
@ -1435,11 +1440,11 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1435,11 +1440,11 @@ public class ClientMessagePump implements NetMsgHandler {
if(!itemMan.buyFromNPC(b,cost,buildingDeposit)){
// chatMan.chatSystemInfo(pc, "" + "You Failed to buy the item.");
ChatManager.chatSystemError(sourcePlayer,"Failed To Buy Item");