Package net.sf.l2j.gameserver.serverpackets

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


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


      playerIU.addItem(item);
      sendPacket(playerIU);
    }
    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

      playerIU.addItem(invitem);
      sendPacket(playerIU);
    }
    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));
      }
    }
  }
View Full Code Here

      {
        // Equip arrows needed in left hand
        getInventory().setPaperdollItem(Inventory.PAPERDOLL_LHAND, _arrowItem);
       
        // Send a Server->Client packet ItemList to this L2PcINstance to update left hand equipement
        ItemList il = new ItemList(this, false);
        sendPacket(il);
      }
    }
    else
    {
View Full Code Here

        int z = Integer.parseInt(st.nextToken());
        if (player.reduceAdena("Broadcast", cost, this, true))
        {
            // enter mode
            player.enterObserverMode(x, y, z);
            ItemList il = new ItemList(player, false);
            player.sendPacket(il);
        }
        player.sendPacket(new ActionFailed());
    }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.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.