Package lineage2.gameserver.model.items

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


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