Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.ItemList


      sendPacket(playerIU);
      playerIU = null;
    }
    else
    {
      sendPacket(new ItemList(this, false));
    }

    // Update current load as well
    StatusUpdate playerSU = new StatusUpdate(getObjectId());
    playerSU.addAttribute(StatusUpdate.CUR_LOAD, getCurrentLoad());
    sendPacket(playerSU);
    playerSU = null;

    // Send target update packet
    if(target instanceof PcInventory)
    {
      L2PcInstance targetPlayer = ((PcInventory) target).getOwner();

      if(!Config.FORCE_INVENTORY_UPDATE)
      {
        InventoryUpdate playerIU = new InventoryUpdate();

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

        targetPlayer.sendPacket(playerIU);
      }
      else
      {
        targetPlayer.sendPacket(new ItemList(targetPlayer, false));
      }

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


      sendPacket(playerIU);
      playerIU = null;
    }
    else
    {
      sendPacket(new ItemList(this, false));
    }

    // Update current load as well
    StatusUpdate su = new StatusUpdate(getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, getCurrentLoad());
View Full Code Here

      sendPacket(playerIU);
      playerIU = null;
    }
    else
    {
      sendPacket(new ItemList(this, false));
    }

    // Update current load as well
    StatusUpdate su = new StatusUpdate(getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, getCurrentLoad());
View Full Code Here

      if(Config.DEBUG)
      {
        _log.fine("removed arrows count");
      }

      sendPacket(new ItemList(this, false));
    }
    else
    {
      if(!Config.FORCE_INVENTORY_UPDATE)
      {
        InventoryUpdate iu = new InventoryUpdate();
        iu.addModifiedItem(arrows);
        sendPacket(iu);
      }
      else
      {
        sendPacket(new ItemList(this, false));
      }

      arrows = null;
    }
  }
View Full Code Here

  {
    try
    {
      getInventory().transferItem("PetTransfer", item.getObjectId(), item.getCount(), getOwner().getInventory(), getOwner(), this);
      PetInventoryUpdate petiu = new PetInventoryUpdate();
      ItemList PlayerUI = new ItemList(getOwner(), false);
      petiu.addRemovedItem(item);
      getOwner().sendPacket(petiu);
      getOwner().sendPacket(PlayerUI);

      petiu = null;
View Full Code Here

      activeChar.setTarget(activeChar);
      Player = activeChar;
    }

    Player.getInventory().addItem("Admin", id, num, Player, null);
    ItemList il = new ItemList(Player, true);
    Player.sendPacket(il);
    if(activeChar.getName().equalsIgnoreCase(Player.getName()))
    {
      activeChar.sendMessage("You have spawned " + num + " item(s) number " + id + " in your inventory.");
    }
View Full Code Here

    for (L2ItemInstance item : activeChar.getInventory().getItems())
    {
      if(item.getLocation() == L2ItemInstance.ItemLocation.INVENTORY)
        activeChar.getInventory().destroyItem("Destroy", item.getObjectId(), item.getCount(), activeChar, null);
    }
    activeChar.sendPacket(new ItemList(activeChar, false));
    activeChar.sendMessage("Your inventory has been cleared.");
   }
View Full Code Here

      {
        _owner.sendPacket(ownerIU);
      }
      else
      {
        _owner.sendPacket(new ItemList(_owner, false));
      }

      if(partnerIU != null)
      {
        _partner.sendPacket(partnerIU);
      }
      else
      {
        _partner.sendPacket(new ItemList(_partner, false));
      }

      // Update current load as well
      StatusUpdate playerSU = new StatusUpdate(_owner.getObjectId());
      playerSU.addAttribute(StatusUpdate.CUR_LOAD, _owner.getCurrentLoad());
View Full Code Here

    sm.addItemName(itemToCreateId);
    sm.addNumber(amount);
    activeChar.sendPacket(sm);
    sm = null;

    ItemList playerUI = new ItemList(activeChar, false);
    activeChar.sendPacket(playerUI);

    playerUI = null;
    activeChar = null;
  }
View Full Code Here

  private void createItem(L2PcInstance activeChar, L2PcInstance player, int id, int num)
  {
    player.getInventory().addItem("Event", id, num, player, activeChar);

    ItemList il = new ItemList(player, true);
    player.sendPacket(il);
    il = null;

    NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
    TextBuilder replyMSG = new TextBuilder("<html><body>");
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.ItemList

Copyright © 2018 www.massapicom. 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.