Package l2p.gameserver.model.items

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


    {
      activeChar.sendPacket(Msg.WHILE_OPERATING_A_PRIVATE_STORE_OR_WORKSHOP_YOU_CANNOT_DISCARD_DESTROY_OR_TRADE_AN_ITEM, Msg.ActionFail);
      return;
    }
    L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId);
    if(item == null || !item.canBeCrystallized(activeChar, true))
    {
      activeChar.sendActionFailed();
      return;
    }
    crystallize(activeChar, item);
View Full Code Here


    if(itemToRemove.isEquipped())
    {
      activeChar.getInventory().unEquipItemInSlot(itemToRemove.getEquipSlot());
      activeChar.broadcastUserInfo(true);
    }
    if(itemToRemove.canBeCrystallized(activeChar, false))
    {
      RequestCrystallizeItem.crystallize(activeChar, itemToRemove);
      return;
    }
    L2ItemInstance removedItem = activeChar.getInventory().destroyItem(_objectId, count, true);
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.