Browse Source

noob conc pots

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
e386c3078a
  1. 9
      src/engine/net/client/ClientMessagePump.java

9
src/engine/net/client/ClientMessagePump.java

@ -1455,8 +1455,15 @@ public class ClientMessagePump implements NetMsgHandler { @@ -1455,8 +1455,15 @@ public class ClientMessagePump implements NetMsgHandler {
if (b != null && (b.getStrongboxValue() + buildingDeposit) > b.getMaxGold() && !b.isOwnerIsNPC()) {
ErrorPopupMsg.sendErrorPopup(sourcePlayer, 206);
return;
}if(npc.getContractID() == 152041){
me.fromNoob = true;
buy = Item.createItemForPlayer(sourcePlayer, ib, me.fromNoob);
if (buy != null) {
me.transferEnchants(buy);
itemMan.addItemToInventory(buy);
itemMan.updateInventory();
}
if (!itemMan.buyFromNPC(b, cost, buildingDeposit)) {
} else if (!itemMan.buyFromNPC(b, cost, buildingDeposit)) {
// chatMan.chatSystemInfo(pc, "" + "You Failed to buy the item.");
ChatManager.chatSystemError(sourcePlayer, "Failed To Buy Item");
return;

Loading…
Cancel
Save