Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.destroyItemByItemId()


        return;
      }

      if(player.getSp() >= _requiredSp)
      {
        if(!player.destroyItemByItemId("Consume", costid, costcount, trainer, false))
        {
          // Haven't spellbook
          player.sendPacket(new SystemMessage(SystemMessageId.ITEM_MISSING_TO_LEARN_SKILL));
          return;
        }
View Full Code Here


      if(player.getClan().getReputationScore() >= repCost)
      {
        if(Config.LIFE_CRYSTAL_NEEDED)
        {
          if(!player.destroyItemByItemId("Consume", itemId, 1, trainer, false))
          {
            // Haven't spellbook
            player.sendPacket(new SystemMessage(SystemMessageId.ITEM_MISSING_TO_LEARN_SKILL));
            return;
          }
View Full Code Here

      else
      {
        activeChar.sendMessage("Item failed to open"); // TODO: Put a more proper message here.
      }
     
      activeChar.destroyItemByItemId("Extract", itemID, 1, activeChar.getTarget(), true);
    }
  }
 
  // by Azagthtot
  @Override
View Full Code Here

            {
              if(crown.isEquipped())
              {
                player.getInventory().unEquipItemInSlotAndRecord(crown.getEquipSlot());
              }
              player.destroyItemByItemId("CastleCrownRemoval", 6841, 1, player, true);
              crown = null;
            }
          }

          L2ItemInstance circlet = player.getInventory().getItemByItemId(circletId);
View Full Code Here

          {
            if(circlet.isEquipped())
            {
              player.getInventory().unEquipItemInSlotAndRecord(circlet.getEquipSlot());
            }
            player.destroyItemByItemId("CastleCircletRemoval", circletId, 1, player, true);
            circlet = null;
          }
          return;
        }
        catch(NullPointerException e)
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.