Examples of canBeDestroyed()


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

    if(itemToRemove.isHeroWeapon())
    {
      activeChar.sendPacket(Msg.HERO_WEAPONS_CANNOT_BE_DESTROYED);
      return;
    }
    if(!itemToRemove.canBeDestroyed(activeChar))
    {
      activeChar.sendPacket(Msg.THIS_ITEM_CANNOT_BE_DISCARDED);
      return;
    }
    if(activeChar.getPrivateStoreType() != L2Player.STORE_PRIVATE_NONE)
View Full Code Here

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

    if ((pet != null) && (pet.getControlItemObjId() == item.getObjectId()))
    {
      activeChar.sendPacket(Msg.THE_PET_HAS_BEEN_SUMMONED_AND_CANNOT_BE_DELETED);
      return;
    }
    if (!activeChar.isGM() && !item.canBeDestroyed(activeChar))
    {
      activeChar.sendPacket(Msg.THIS_ITEM_CANNOT_BE_DISCARDED);
      return;
    }
    if (_count > item.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.