Package net.sf.l2j.gameserver.model

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


            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

            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.