Package net.sf.l2j.gameserver.serverpackets

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


                           smsg.addItemName(cropId);
                        _activeChar.getParty().broadcastToPartyMembers(_activeChar, smsg);
                      }

                         if (iu != null) _activeChar.sendPacket(iu);
                     else _activeChar.sendPacket(new ItemList(_activeChar, false));
                     }
                 }
             } else {
               _activeChar.sendPacket(new SystemMessage(SystemMessageId.THE_HARVEST_HAS_FAILED));
             }
View Full Code Here


        if (send)
        {
                if (iu != null)
                  player.sendPacket(iu);
            else
              player.sendPacket(new ItemList(player, false));
        }
        }
    }
View Full Code Here

      }
    }

    activeChar.getInventory().addItem("Admin", id, num, activeChar, null);

    ItemList il = new ItemList(activeChar, true);
    activeChar.sendPacket(il);

    activeChar.sendMessage("You have spawned " + num + " item(s) number " + id + " in your inventory.");
  }
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);

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

                    && ((itemid >= 6519 && itemid <= 6527) || (itemid >= 7610 && itemid <= 7613) || (itemid >= 7807 && itemid <= 7809) || (itemid >= 8484 && itemid <= 8486) || (itemid >= 8505 && itemid <= 8513)))
                {
                    activeChar.getInventory().setPaperdollItem(Inventory.PAPERDOLL_LHAND, item);
                    activeChar.broadcastUserInfo();
                    // Send a Server->Client packet ItemList to this L2PcINstance to update left hand equipement
                    ItemList il = new ItemList(activeChar, false);
                    sendPacket(il);
                    return;
                }
        else
        {
View Full Code Here

      SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
      sm.addItemName(itemToCreateId);
        sm.addNumber(amount);
      activeChar.sendPacket(sm);

        ItemList playerUI = new ItemList(activeChar, false);
    activeChar.sendPacket(playerUI);
  }
View Full Code Here

      SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
      sm.addItemName(itemToCreateId);
      sm.addNumber(amount);
      activeChar.sendPacket(sm);

        ItemList playerUI = new ItemList(activeChar, false);
        activeChar.sendPacket(playerUI);
  }
View Full Code Here

        sendPacket(new HennaInfo(activeChar));

        sendPacket(new FriendList(activeChar));

        sendPacket(new ItemList(activeChar, false));

        sendPacket(new ShortCutInit(activeChar));

        SystemMessage sm = new SystemMessage(SystemMessageId.WELCOME_TO_LINEAGE);
        sendPacket(sm);
View Full Code Here

      SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
      sm.addItemName(itemToCreateId);
      sm.addNumber(amount);
        activeChar.sendPacket(sm);

        ItemList playerUI = new ItemList(activeChar, false);
    activeChar.sendPacket(playerUI);
  }
View Full Code Here

  @Override
  protected void runImpl()
  {
        if (getClient() != null && getClient().getActiveChar() != null && !getClient().getActiveChar().isInvetoryDisabled())
        {
        ItemList il = new ItemList(getClient().getActiveChar(), true);
        sendPacket(il);
        }
  }
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.