Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.InventoryUpdate


      L2ItemInstance newitem = _inventory.addItem(process, item, this, reference);
     
      // Send inventory update packet
      if (!Config.FORCE_INVENTORY_UPDATE)
      {
        InventoryUpdate playerIU = new InventoryUpdate();
        playerIU.addItem(newitem);
        sendPacket(playerIU);
      }
      else
      {
        sendPacket(new ItemList(this, false));
View Full Code Here


        L2ItemInstance item = _inventory.addItem(process, itemId, count, this, reference);
       
        // Send inventory update packet
        if (!Config.FORCE_INVENTORY_UPDATE)
        {
          InventoryUpdate playerIU = new InventoryUpdate();
          playerIU.addItem(item);
          sendPacket(playerIU);
        }
        else
        {
          sendPacket(new ItemList(this, false));
View Full Code Here

    }
   
    // Send inventory update packet
    if (!Config.FORCE_INVENTORY_UPDATE)
    {
      InventoryUpdate playerIU = new InventoryUpdate();
      playerIU.addItem(item);
      sendPacket(playerIU);
    }
    else
    {
      sendPacket(new ItemList(this, false));
View Full Code Here

    }
   
    // Send inventory update packet
    if (!Config.FORCE_INVENTORY_UPDATE)
    {
      InventoryUpdate playerIU = new InventoryUpdate();
      playerIU.addItem(item);
      sendPacket(playerIU);
    }
    else
    {
      sendPacket(new ItemList(this, false));
View Full Code Here

    }
   
    // Send inventory update packet
    if (!Config.FORCE_INVENTORY_UPDATE)
    {
      InventoryUpdate playerIU = new InventoryUpdate();
      playerIU.addItem(item);
      sendPacket(playerIU);
    }
    else
    {
      sendPacket(new ItemList(this, false));
View Full Code Here

    }
   
    // Send inventory update packet
    if (!Config.FORCE_INVENTORY_UPDATE)
    {
      InventoryUpdate playerIU = new InventoryUpdate();
      playerIU.addItem(item);
      sendPacket(playerIU);
    }
    else
    {
      sendPacket(new ItemList(this, false));
View Full Code Here

    }
   
    // Send inventory update packet
    if (!Config.FORCE_INVENTORY_UPDATE)
    {
      InventoryUpdate playerIU = new InventoryUpdate();
     
      if ((oldItem.getCount() > 0) && (oldItem != newItem))
      {
        playerIU.addModifiedItem(oldItem);
      }
      else
      {
        playerIU.addRemovedItem(oldItem);
      }
     
      sendPacket(playerIU);
    }
    else
    {
      sendPacket(new ItemList(this, false));
    }
   
    // Update current load as well
    StatusUpdate playerSU = new StatusUpdate(getObjectId());
    playerSU.addAttribute(StatusUpdate.CUR_LOAD, getCurrentLoad());
    sendPacket(playerSU);
   
    // 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
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.InventoryUpdate

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.