Package net.sf.l2j.gameserver.serverpackets

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


    if (_activeChar == null)
      return;

    _activeChar.getKnownList().updateKnownObjects();
    _activeChar.sendPacket(new UserInfo(_activeChar));

    for (L2Object object : _activeChar.getKnownList().getKnownObjects().values())
    {
      if (object == null)
        continue;
View Full Code Here


   * <FONT COLOR=#FF0000><B> <U>Caution</U> : DON'T SEND UserInfo packet to other players instead of CharInfo packet. Indeed, UserInfo packet contains PRIVATE DATA as MaxHP, STR, DEX...</B></FONT><BR>
   */
  public final void broadcastUserInfo()
  {
    // Send a Server->Client packet UserInfo to this L2PcInstance
    sendPacket(new UserInfo(this));
   
    // Send a Server->Client packet CharInfo to all L2PcInstance in _KnownPlayers of the L2PcInstance
    if (Config.DEBUG)
    {
      _log.fine("players to notify:" + getKnownList().getKnownPlayers().size() + " packet: [S] 03 CharInfo");
View Full Code Here

   * Broadcast title info.
   */
  public final void broadcastTitleInfo()
  {
    // Send a Server->Client packet UserInfo to this L2PcInstance
    sendPacket(new UserInfo(this));
   
    // Send a Server->Client packet TitleUpdate to all L2PcInstance in _KnownPlayers of the L2PcInstance
    if (Config.DEBUG)
    {
      _log.fine("players to notify:" + getKnownList().getKnownPlayers().size() + " packet: [S] cc TitleUpdate");
View Full Code Here

  {
    // Add karma to attacker and increase its PK counter
    setPvpKills(getPvpKills() + 1);
   
    // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
    sendPacket(new UserInfo(this));
  }
View Full Code Here

    // Add karma to attacker and increase its PK counter
    setPkKills(getPkKills() + 1);
    setKarma(getKarma() + newKarma);
   
    // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
    sendPacket(new UserInfo(this));
  }
View Full Code Here

    refreshOverloaded();
    refreshExpertisePenalty();
    // Send a Server->Client packet UserInfo to this L2PcInstance and CharInfo to all L2PcInstance in its _KnownPlayers (broadcast)
    if (broadcastType == 1)
    {
      sendPacket(new UserInfo(this));
    }
    if (broadcastType == 2)
    {
      broadcastUserInfo();
    }
View Full Code Here

   * Send a Server->Client StatusUpdate packet with Karma and PvP Flag to the L2PcInstance and all L2PcInstance to inform (broadcast).
   * @param flag the new karma flag
   */
  public void setKarmaFlag(int flag)
  {
    sendPacket(new UserInfo(this));
    for (L2PcInstance player : getKnownList().getKnownPlayers().values())
    {
      player.sendPacket(new RelationChanged(this, getRelation(player), isAutoAttackable(player)));
    }
  }
View Full Code Here

  /**
   * Send a Server->Client StatusUpdate packet with Karma to the L2PcInstance and all L2PcInstance to inform (broadcast).
   */
  public void broadcastKarma()
  {
    sendPacket(new UserInfo(this));
    for (L2PcInstance player : getKnownList().getKnownPlayers().values())
    {
      player.sendPacket(new RelationChanged(this, getRelation(player), isAutoAttackable(player)));
    }
  }
View Full Code Here

   
    // Send Server->Client HennaInfo packet to this L2PcInstance
    sendPacket(new HennaInfo(this));
   
    // Send Server->Client UserInfo packet to this L2PcInstance
    sendPacket(new UserInfo(this));
   
    // Add the recovered dyes to the player's inventory and notify them.
    getInventory().addItem("Henna", henna.getItemIdDye(), henna.getAmountDyeRequire() / 2, this, null);
   
    SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
View Full Code Here

        // Send Server->Client HennaInfo packet to this L2PcInstance
        HennaInfo hi = new HennaInfo(this);
        sendPacket(hi);
       
        // Send Server->Client UserInfo packet to this L2PcInstance
        UserInfo ui = new UserInfo(this);
        sendPacket(ui);
       
        return true;
      }
    }
View Full Code Here

TOP

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

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.