Package lineage2.gameserver.model.items

Examples of lineage2.gameserver.model.items.ItemInstance.canBeDropped()


      return;
    }
    PetInventory petInventory = pet.getInventory();
    PcInventory playerInventory = activeChar.getInventory();
    ItemInstance item = playerInventory.getItemByObjectId(_objectId);
    if ((item == null) || (item.getCount() < _amount) || !item.canBeDropped(activeChar, false))
    {
      activeChar.sendActionFailed();
      return;
    }
    int slots = 0;
View Full Code Here


    if (item == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!item.canBeDropped(activeChar, false))
    {
      activeChar.sendPacket(Msg.THAT_ITEM_CANNOT_BE_DISCARDED);
      return;
    }
    item.getTemplate().getHandler().dropItem(activeChar, item, _count, _loc);
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.