Examples of validateCapacity()


Examples of com.l2jfrozen.gameserver.model.ItemContainer.validateCapacity()

        slots++;
      }
    }

    // Item Max Limit Check
    if(!warehouse.validateCapacity(slots))
    {
      sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EXCEEDED_QUANTITY_THAT_CAN_BE_INPUTTED));
      return;
    }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.ItemContainer.validateCapacity()

        slots++;
      }
    }

    // Item Max Limit Check
    if(!warehouse.validateCapacity(slots))
    {
      sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EXCEEDED_QUANTITY_THAT_CAN_BE_INPUTTED));
      return;
    }
View Full Code Here

Examples of lineage2.gameserver.model.items.PcInventory.validateCapacity()

        activeChar.sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_WEIGHT_LIMIT);
        activeChar.sendActionFailed();
        return;
      }
     
      if (!inventory.validateCapacity(slots))
      {
        activeChar.sendPacket(Msg.YOUR_INVENTORY_IS_FULL);
        activeChar.sendActionFailed();
        return;
      }
View Full Code Here

Examples of lineage2.gameserver.model.items.PcInventory.validateCapacity()

      {
        player.sendPacket(new SystemMessage2(SystemMsg.ITEM_PURCHASE_HAS_FAILED));
        player.sendPacket(ExResponseCommissionBuyItem.FAILED);
        return;
      }
      if (!inventory.validateCapacity(itemInfo.getItem()) || !inventory.validateWeight(itemInfo.getItem()))
      {
        player.sendPacket(ExResponseCommissionBuyItem.FAILED);
        return;
      }
      long price = itemInfo.getRegisteredPrice() * itemInfo.getItem().getCount();
 
View Full Code Here

Examples of net.sf.l2j.gameserver.model.ItemContainer.validateCapacity()

        for (CropProcure crop : c.getCropProcure(PERIOD_NEXT)) {
          if (crop.getStartAmount() > 0) {
            slots++;
          }
        }
        if (!cwh.validateCapacity(slots)) {
          notFunc = true;
          c.setSeedProduction(getNewSeedsList(c.getCastleId()), PERIOD_NEXT);
          c.setCropProcure(getNewCropsList(c.getCastleId()), PERIOD_NEXT);
        }
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.ItemContainer.validateCapacity()

            if (!item.isStackable()) slots += count;
            else if (warehouse.getItemByItemId(item.getItemId()) == null) slots++;
    }

        // Item Max Limit Check
        if (!warehouse.validateCapacity(slots))
        {
            sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EXCEEDED_QUANTITY_THAT_CAN_BE_INPUTTED));
            return;
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.ItemContainer.validateCapacity()

            if (!item.isStackable()) slots += count;
            else if (warehouse.getItemByItemId(item.getItemId()) == null) slots++;
    }

        // Item Max Limit Check
        if (!warehouse.validateCapacity(slots))
        {
            sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EXCEEDED_QUANTITY_THAT_CAN_BE_INPUTTED));
            return;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.