Examples of destroyItemByItemId()


Examples of lineage2.gameserver.model.items.PcInventory.destroyItemByItemId()

      HandysBlockCheckerManager.getInstance().removePlayer(player, arena, team);
      player.setTeam(TeamType.NONE);
      player.broadcastCharInfo();
      PcInventory inv = player.getInventory();
      inv.destroyItemByItemId(13787, inv.getCountOf(13787));
      inv.destroyItemByItemId(13788, inv.getCountOf(13788));
    }
  }
}
View Full Code Here

Examples of net.sf.l2j.gameserver.model.Inventory.destroyItemByItemId()

      if (remove)
      {
        for(TempItem tmp : materials)
          {
          inv.destroyItemByItemId("Manufacture", tmp.getItemId(), tmp.getQuantity(), _target, _player);
          }
      }
      return materials;
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItemByItemId()

          L2ItemInstance circlet = player.getInventory().getItemByItemId(circletId);
          if (circlet != null)
          {
            if (circlet.isEquipped())
              player.getInventory().unEquipItemInSlotAndRecord(circlet.getEquipSlot());
            player.destroyItemByItemId("CastleCircletRemoval", circletId, 1, player, true);
          }
          return;
        } catch (NullPointerException e)
        {
          // continue removing offline
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItemByItemId()

    } else
    {
      activeChar.sendMessage("Item failed to open"); // TODO: Put a more proper message here.
    }

    activeChar.destroyItemByItemId("Extract", itemID, 1, activeChar
        .getTarget(), true);
  }

    @Override
  public int[] getItemIds()
View Full Code Here

Examples of net.sf.l2j.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));
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.destroyItemByItemId()

            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
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.