Examples of canBeCrystallized()


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

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

    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

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

    if (item.isHeroWeapon())
    {
      activeChar.sendPacket(Msg.HERO_WEAPONS_CANNOT_BE_DESTROYED);
      return;
    }
    if (!item.canBeCrystallized(activeChar))
    {
      activeChar.sendActionFailed();
      return;
    }
    if (activeChar.isInStoreMode())
View Full Code Here

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

    if (item.isHeroWeapon())
    {
      player.sendPacket(Msg.HERO_WEAPONS_CANNOT_BE_DESTROYED);
      return;
    }
    if (!item.canBeCrystallized(player))
    {
      player.sendActionFailed();
      return;
    }
    if (player.isInStoreMode())
View Full Code Here

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

    }
    if (_count > item.getCount())
    {
      count = item.getCount();
    }
    boolean crystallize = item.canBeCrystallized(activeChar);
    int crystalId = item.getTemplate().getCrystalType().cry;
    int crystalAmount = item.getTemplate().getCrystalCount();
    if (crystallize)
    {
      int level = activeChar.getSkillLevel(Skill.SKILL_CRYSTALLIZE);
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.