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 net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

        }

        if (_count == 0)
        {
          player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
          player.broadcastUserInfo();
          player.standUp();
        }
        else
        {
                L2ManufactureList createList = new L2ManufactureList();
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

                createList.setStoreName(player.getCreateList() != null ? player.getCreateList().getStoreName() : "");
                player.setCreateList(createList);

          player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_MANUFACTURE);
          player.sitDown();
          player.broadcastUserInfo();
          player.sendPacket(new RecipeShopMsg(player));
          player.broadcastPacket(new RecipeShopMsg(player));
        }
      }
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

        L2PcInstance player = getClient().getActiveChar();
        if (player == null) return;

        player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
        player.standUp();
        player.broadcastUserInfo();
      }

      /* (non-Javadoc)
       * @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#getType()
       */
     
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

            L2PcInstance exLeader = getLeader().getPlayerInstance();
          SiegeManager.getInstance().removeSiegeSkills(exLeader);
            exLeader.setClan(this);
            exLeader.setClanPrivileges(L2Clan.CP_NOTHING);
            exLeader.broadcastUserInfo();

            setLeader(member);
            updateClanInDB();

            exLeader.setPledgeClass(exLeader.getClan().getClanMember(exLeader.getObjectId()).calculatePledgeClass(exLeader));
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

            setLeader(member);
            updateClanInDB();

            exLeader.setPledgeClass(exLeader.getClan().getClanMember(exLeader.getObjectId()).calculatePledgeClass(exLeader));
            exLeader.broadcastUserInfo();
            L2PcInstance newLeader = member.getPlayerInstance();
            newLeader.setClan(this);
            newLeader.setPledgeClass(member.calculatePledgeClass(newLeader));
            newLeader.setClanPrivileges(L2Clan.CP_ALL);
            if (getLevel() >= 4)
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

            newLeader.setClanPrivileges(L2Clan.CP_ALL);
            if (getLevel() >= 4)
            {
              SiegeManager.getInstance().addSiegeSkills(newLeader);
            }
            newLeader.broadcastUserInfo();

            broadcastClanStatus();

          SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_LEADER_PRIVILEGES_HAVE_BEEN_TRANSFERRED_TO_S1);
          sm.addString(newLeader.getName());
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

                player.setClanCreateExpiryTime(System.currentTimeMillis() + Config.ALT_CLAN_CREATE_DAYS * 86400000L); //24*60*60*1000 = 86400000
          }
          player.setClan(null);
          player.setClanJoinExpiryTime(clanJoinExpiryTime);
          player.setPledgeClass(exMember.calculatePledgeClass(player));
          player.broadcastUserInfo();
          // disable clan tab
          player.sendPacket(new PledgeShowMemberListDeleteAll());
        }
        else
        {
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

        // status & user info
        StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
        su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
        activeChar.sendPacket(su);

        activeChar.broadcastUserInfo();

        L2World world = L2World.getInstance();
        world.removeObject(removedItem);

        activeChar.setInCrystallize(false);
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

                sendPacket(new ActionFailed());
                return;
            }
        if(player.getPrivateStoreType() != 0){
          player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
          player.broadcastUserInfo();
          if (player.isSitting()) player.standUp();
            }
            if (player.getCreateList() == null)
            {
                player.setCreateList(new L2ManufactureList());
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.broadcastUserInfo()

            getClient().sendPacket(new ActionFailed());
            return;
          }
          if(activeChar.getPrivateStoreType() != 0){
            activeChar.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_NONE);
            activeChar.broadcastUserInfo();
              }
          if (activeChar.isSitting())
            activeChar.standUp();

          if (activeChar.getCreateList() == null)
    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.