Examples of broadcastUserInfo()

  • l2p.gameserver.model.L2Player.broadcastUserInfo()
    Отправляет UserInfo даному игроку и CharInfo всем окружающим.

    Концепт :

    Сервер шлет игроку UserInfo. Сервер вызывает метод {@link L2Player#broadcastPacketToOthers(l2p.gameserver.serverpackets.L2GameServerPacket)} для рассылки CharInfo

    Действия :

  • Отсылка игроку UserInfo(личные и общие данные)
  • Отсылка другим игрокам CharInfo(Public data only)


  • Внимание : НЕ ПОСЫЛАЙТЕ UserInfo другим игрокам либо CharInfo даному игроку.
    НЕ ВЫЗЫВАЕЙТЕ ЭТОТ МЕТОД КРОМЕ ОСОБЫХ ОБСТОЯТЕЛЬСТВ(смена сабкласса к примеру)!!! Траффик дико кушается у игроков и начинаются лаги.
    Используйте метод {@link l2p.gameserver.model.L2Player#sendChanges()}


  • l2p.gameserver.model.instances.L2NpcInstance.broadcastUserInfo()
  • lineage2.gameserver.model.Player.broadcastUserInfo()
    Method broadcastUserInfo. @param force boolean
  • net.sf.l2j.gameserver.model.L2Character.broadcastUserInfo()
  • net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()
    Send a Server->Client packet UserInfo to this L2PcInstance and CharInfo to all L2PcInstance in its _KnownPlayers.
    Concept :
    Others L2PcInstance in the detection area of the L2PcInstance are identified in _knownPlayers. In order to inform other players of this L2PcInstance state modifications, server just need to go through _knownPlayers to send Server->Client Packet
    Actions :
  • Send a Server->Client packet UserInfo to this L2PcInstance (Public and Private Data)
  • Send a Server->Client packet CharInfo to all L2PcInstance in _KnownPlayers of the L2PcInstance (Public data only)

  • Caution : DON'T SEND UserInfo packet to other players instead of CharInfo packet. Indeed, UserInfo packet contains PRIVATE DATA as MaxHP, STR, DEX...

    Examples of com.l2jfrozen.gameserver.model.L2Character.broadcastUserInfo()

          try
          {
            for(L2PcInstance player : activeChar.getKnownList().getKnownPlayers().values())
            {
              player.setTeam(0);
              player.broadcastUserInfo();
            }
          }
          catch(Exception e)
          {
            if(Config.ENABLE_ALL_EXCEPTIONS)
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.L2Object.broadcastUserInfo()

                    target.addSkill(skill);
                  }
                  Hero.getInstance().putHero(target, false);
                }
                target.broadcastStatusUpdate();
                target.broadcastUserInfo();
               
                if (save)
                {
                  Olympiad.getInstance().saveOlympiadStatus();
                }
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

            activeChar.checkSSMatch(null, element);
            iu.addModifiedItem(element);
          }
         
          activeChar.sendPacket(iu);
          activeChar.broadcastUserInfo();
        }
       
        if (L2PetDataTable.isPetItem(itemId))
        {
          Connection con = null;
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

            activeChar.checkSSMatch(null, element);

            iu.addModifiedItem(element);
          }
          activeChar.sendPacket(iu);
          activeChar.broadcastUserInfo();

          ItemList il = new ItemList(activeChar, true);
          activeChar.sendPacket(il);
        }
       
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

        }

        if(player.getPrivateStoreType() != 0)
        {
          player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
          player.broadcastUserInfo();
          if(player.isSitting())
          {
            player.standUp();
          }
        }
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

          iu.addModifiedItem(element);
        }

        activeChar.sendPacket(iu);

        activeChar.broadcastUserInfo();

        // this can be 0 if the user pressed the right mouse button twice very fast
        if(unequiped.length > 0)
        {
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

                {
                  iu.addModifiedItem(element);
                }
                activeChar.sendPacket(iu);

                activeChar.broadcastUserInfo();
              }

              int count = item.getCrystalCount() - (item.getItem().getCrystalCount() + 1) / 2;
              if(count < 1)
              {
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

              StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
              su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
              activeChar.sendPacket(su);

              activeChar.broadcastUserInfo();

              L2World world = L2World.getInstance();
              world.removeObject(destroyItem);
            }
            else
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

        activeChar.sendPacket(su);
        su = null;

        activeChar.sendPacket(new EnchantResult(item.getEnchantLevel())); //FIXME i'm really not sure about this...
        activeChar.sendPacket(new ItemList(activeChar, false)); //TODO update only the enchanted item
        activeChar.broadcastUserInfo();
      }

      @Override
      public String getType()
      {
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

         
          _activeChar.sendPacket(new PartyMatchDetail(_activeChar, _room));
          _activeChar.sendPacket(new ExPartyRoomMember(_activeChar, _room, 2));
         
          _activeChar.setPartyRoom(_room.getId());
          _activeChar.broadcastUserInfo();
        }
        else
        {
          // Add to waiting list
          PartyMatchWaitingList.getInstance().addPlayer(_activeChar);
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.