Examples of addModifiedItem()


Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

      if (controlItem != null)
      {
        controlItem.setCustomType2(1);
        controlItem.updateDatabase();
        InventoryUpdate iu = new InventoryUpdate();
        iu.addModifiedItem(controlItem);
        activeChar.sendPacket(iu);
      }
    }
  }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

      L2ItemInstance[] unequiped = activeChar.getInventory()
          .unEquipItemInSlotAndRecord(itemToRemove.getEquipSlot());
      InventoryUpdate iu = new InventoryUpdate();
      for (int i = 0; i < unequiped.length; i++)
      {
        iu.addModifiedItem(unequiped[i]);
      }
      activeChar.sendPacket(iu);
      // activeChar.updatePDef();
      // activeChar.updatePAtk();
      // activeChar.updateMDef();
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

    {
      InventoryUpdate iu = new InventoryUpdate();
      if (removedItem.getCount() == 0)
        iu.addRemovedItem(removedItem);
      else
        iu.addModifiedItem(removedItem);

      if (createditem.getCount() != crystalAmount)
        iu.addModifiedItem(createditem);
      else
        iu.addNewItem(createditem);
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

        iu.addRemovedItem(removedItem);
      else
        iu.addModifiedItem(removedItem);

      if (createditem.getCount() != crystalAmount)
        iu.addModifiedItem(createditem);
      else
        iu.addNewItem(createditem);

      activeChar.sendPacket(iu);
    } else
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

          )
        {
          L2ItemInstance[] unequiped = player.getInventory().unEquipItemInBodySlotAndRecord(wpn.getItem().getBodyPart());
          InventoryUpdate iu = new InventoryUpdate();
          for (int i = 0; i < unequiped.length; i++)
            iu.addModifiedItem(unequiped[i]);
          player.sendPacket(iu);
          player.abortAttack();
          player.broadcastUserInfo();

          // this can be 0 if the user pressed the right mousebutton twice very fast
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

                _playerOne =  L2World.getInstance().getPlayer(_playerOneName); // why this...
                try {
              result=" ("+playerOneHp+"hp vs "+playerTwoHp+"hp - "+hpDiffOne+" vs "+hpDiffTwo+") "+_playerOneName+" win "+pointDiff+" points";
              L2ItemInstance item = _playerOne.getInventory().addItem("Olympiad", 6651, 30, _playerOne, null);
              InventoryUpdate iu = new InventoryUpdate();
              iu.addModifiedItem(item);
              _playerOne.sendPacket(iu);

              SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
              sm.addItemName(item.getItemId());
              sm.addNumber(30);
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

                _playerTwo =  L2World.getInstance().getPlayer(_playerTwoName); // why this...
                try {
                  result=" ("+playerOneHp+"hp vs "+playerTwoHp+"hp - "+hpDiffOne+" vs "+hpDiffTwo+") "+_playerTwoName+" win "+pointDiff+" points";
                  L2ItemInstance item = _playerTwo.getInventory().addItem("Olympiad", 6651, 30, _playerTwo, null);
                  InventoryUpdate iu = new InventoryUpdate();
                  iu.addModifiedItem(item);
                  _playerTwo.sendPacket(iu);

                  SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
                  sm.addItemName(item.getItemId());
                  sm.addNumber(30);
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

              continue;
            }

            if (playerIU != null)
            {
          if (newItem.getCount() > count) playerIU.addModifiedItem(newItem);
            else playerIU.addNewItem(newItem);
            }
    }

        // Send updated item list to the player
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

      // Send target update packet
      if (target instanceof PcInventory)
      {
        L2PcInstance targetPlayer = ((PcInventory)target).getOwner();
        InventoryUpdate playerUI = new InventoryUpdate();
        if (newItem.getCount() > count) playerUI.addModifiedItem(newItem);
          else playerUI.addNewItem(newItem);
        targetPlayer.sendPacket(playerUI);

        // Update current load as well
        StatusUpdate playerSU = new StatusUpdate(targetPlayer.getObjectId());
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate.addModifiedItem()

      iu.addRemovedItem(gemstoneItem);
    }
    else
    {
      player.destroyItem("RequestRefine", _gemstoneItemObjId, modifyGemstoneCount, null, false);
      iu.addModifiedItem(gemstoneItem);
    }

    // generate augmentation
    targetItem.setAugmentation(AugmentationData.getInstance().generateRandomAugmentation(targetItem, lifeStoneLevel, lifeStoneGrade));
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.