Examples of destroyItemByItemId()


Examples of com.l2jfrozen.gameserver.model.Inventory.destroyItemByItemId()

      if(remove)
      {
        for(TempItem tmp : materials)
        {
          inv.destroyItemByItemId("Manufacture", tmp.getItemId(), tmp.getQuantity(), _target, _player);
        }
      }
      inv = null;

      return materials;
View Full Code Here

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

Examples of com.l2jfrozen.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

Examples of com.l2jfrozen.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);
    }
  }
 
  // by Azagthtot
  @Override
View Full Code Here

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

            {
              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

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

          {
            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

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

    L2ItemInstance item = inventory.getItemByItemId(temp.getItemIdDye());
    if(item != null && item.getCount() >= temp.getAmountDyeRequire() && activeChar.getAdena() >= temp.getPrice() && activeChar.addHenna(temp))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessage.S1_HAS_DISAPPEARED).addString(temp.getName()), Msg.THE_SYMBOL_HAS_BEEN_ADDED);
      inventory.reduceAdena(temp.getPrice());
      if(inventory.destroyItemByItemId(temp.getItemIdDye(), temp.getAmountDyeRequire(), true) == null)
      {
        _log.info("RequestHennaEquip[50]: Item not found!!!");
      }
    }
    else
View Full Code Here

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

        }
        player.getEffectList().stopAllEffects();
        player.setTeam(TeamType.NONE);
        player.setBlockCheckerArena(DEFAULT_ARENA);
        PcInventory inv = player.getInventory();
        inv.destroyItemByItemId(13787, inv.getCountOf(13787));
        inv.destroyItemByItemId(13788, inv.getCountOf(13788));
        broadcastRelationChanged(player);
        player.teleToLocation(-57478, -60367, -2370);
        player.sendPacket(end);
        player.broadcastCharInfo();
View Full Code Here

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

        player.getEffectList().stopAllEffects();
        player.setTeam(TeamType.NONE);
        player.setBlockCheckerArena(DEFAULT_ARENA);
        PcInventory inv = player.getInventory();
        inv.destroyItemByItemId(13787, inv.getCountOf(13787));
        inv.destroyItemByItemId(13788, inv.getCountOf(13788));
        broadcastRelationChanged(player);
        player.teleToLocation(-57478, -60367, -2370);
        player.sendPacket(end);
        player.broadcastCharInfo();
      }
View Full Code Here

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

      int team = HandysBlockCheckerManager.getInstance().getHolder(arena).getPlayerTeam(player);
      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
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.