137138139140141142143144145146147
for (int i = 0; i < _count; i++) { int itemId = _items[i]; if (list.getItemByItemId(itemId) == null) { activeChar.sendActionFailed(); return; } ItemTemplate template = ItemHolder.getInstance().getTemplate(itemId); if (template == null) {
7879808182838485868788
{ return; } if (!TradeHelper.checksIfCanOpenStore(manufacturer, Player.STORE_PRIVATE_MANUFACTURE)) { manufacturer.sendActionFailed(); return; } if (_count > Config.MAX_PVTCRAFT_SLOTS) { sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_QUANTITY_THAT_CAN_BE_INPUTTED);
107108109110111112113114
manufacturer.setPrivateStoreType(Player.STORE_PRIVATE_MANUFACTURE); manufacturer.broadcastPacket(new RecipeShopMsg(manufacturer)); manufacturer.sitDown(null); manufacturer.broadcastCharInfo(); } manufacturer.sendActionFailed(); } }
5960616263646566676869
return; } if (!request.isInProgress()) { request.cancel(); activeChar.sendActionFailed(); return; } if (activeChar.isOutOfControl()) { request.cancel();
6566676869707172737475
return; } if (activeChar.isOutOfControl()) { request.cancel(); activeChar.sendActionFailed(); return; } Player requestor = request.getRequestor(); if (requestor == null) {
157158159160161162163164165166167
} MultiSellListContainer list1 = activeChar.getMultisell(); if (list1 == null) { activeChar.sendActionFailed(); activeChar.setMultisell(null); return; } if (list1.getListId() != _listId)
164165166167168169170171172173174
return; } if (list1.getListId() != _listId) { activeChar.sendActionFailed(); activeChar.setMultisell(null); return; } if (activeChar.isActionsDisabled())
171172173174175176177178179180181
return; } if (activeChar.isActionsDisabled()) { activeChar.sendActionFailed(); return; } if (activeChar.isInStoreMode()) {
183184185186187188189190191192193
return; } if (activeChar.isInTrade()) { activeChar.sendActionFailed(); return; } if (activeChar.isFishing()) {
195196197198199200201202203204205
return; } if (!Config.ALT_GAME_KARMA_PLAYER_CAN_SHOP && (activeChar.getKarma() < 0) && !activeChar.isGM()) { activeChar.sendActionFailed(); return; } MultiSellEntry entry = null; for (MultiSellEntry $entry : list1.getEntries())