Examples of canBeDropped()


Examples of l2p.gameserver.model.items.L2ItemInstance.canBeDropped()

    if (oldItem == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!oldItem.canBeDropped(activeChar, false))
    {
      activeChar.sendPacket(Msg.THAT_ITEM_CANNOT_BE_DISCARDED);
      return;
    }
    long oldCount = oldItem.getCount();
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.canBeDropped()

    if(pet.getInventory().getTotalWeight() + playerItem.getItem().getWeight() * _amount >= pet.getMaxLoad())
    {
      activeChar.sendPacket(Msg.EXCEEDED_PET_INVENTORYS_WEIGHT_LIMIT);
      return;
    }
    if(!playerItem.canBeDropped(activeChar, false))
    {
      activeChar.sendActionFailed();
      return;
    }
    if(_amount >= playerItem.getCount())
View Full Code Here

Examples of l2p.gameserver.model.items.L2ItemInstance.canBeDropped()

    }
    // Transfer the items from activeChar's Inventory Instance to destChar's Freight Instance
    for(Integer itemObjectId : _items.keySet())
    {
      L2ItemInstance found = inventory.getItemByObjectId(itemObjectId);
      if(found == null || !found.canBeDropped(activeChar, false))
      {
        continue;
      }
      warehouse.addItem(inventory.dropItem(found, _items.get(itemObjectId), false), null);
    }
View Full Code Here

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

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

    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.