Examples of validateWeight()


Examples of l2p.gameserver.model.items.PcInventory.validateWeight()

        else
        {
          req++;
        }
      }
      if(req > slots || !inv.validateWeight(totalLoad))
      {
        activeChar.sendPacket(Msg.THE_WEIGHT_AND_VOLUME_LIMIT_OF_INVENTORY_MUST_NOT_BE_EXCEEDED);
        return;
      }
      if(entry.getIngredients().size() == 0)
View Full Code Here

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

        {
          slots = SafeMath.addAndCheck(slots, _amount);
        }
      }
     
      if (!inventory.validateWeight(weight))
      {
        activeChar.sendPacket(Msg.YOU_HAVE_EXCEEDED_THE_WEIGHT_LIMIT);
        activeChar.sendActionFailed();
        return;
      }
View Full Code Here

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

      {
        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
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.