Examples of CharInfo


Examples of lineage2.gameserver.network.serverpackets.CharInfo

   */
  public void broadcastCharInfo()
  {
    for (Player player : World.getAroundPlayers(this))
    {
      player.sendPacket(new CharInfo(this));
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.CharInfo

  {
    List<L2GameServerPacket> list = new ArrayList<>();
    Player owner = getPlayer();
    if (owner == forPlayer)
    {
      list.add(new CharInfo(this));
    }
    else
    {
      Party party = forPlayer.getParty();
      if ((getReflection() == ReflectionManager.GIRAN_HARBOR) && ((owner == null) || (party == null) || (party != owner.getParty())))
      {
        return list;
      }
      list.add(new CharInfo(this));
      list.add(RelationChanged.update(forPlayer, this, forPlayer));
    }
    if (isInCombat())
    {
      list.add(new AutoAttackStart(getObjectId()));
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.CharInfo

   */
  public void broadcastCharInfo()
  {
    for (Player player : World.getAroundPlayers(this))
    {
      player.sendPacket(new CharInfo(this));
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.CharInfo

    player.sendPacket(trace);
    RadarControl rc = new RadarControl(0, 1, item.player);
    player.sendPacket(rc);
    if (player.getVarB(Player.NO_TRADERS_VAR))
    {
      player.sendPacket(new CharInfo(trader));
      if (trader.getPrivateStoreType() == Player.STORE_PRIVATE_BUY)
      {
        player.sendPacket(new PrivateStoreMsgBuy(trader));
      }
      else if ((trader.getPrivateStoreType() == Player.STORE_PRIVATE_SELL) || (trader.getPrivateStoreType() == Player.STORE_PRIVATE_SELL_PACKAGE))
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.CharInfo

  @Override
  public List<L2GameServerPacket> addPacketList(Player forPlayer, Creature dropper)
  {
    if (!isInCombat())
    {
      return Collections.<L2GameServerPacket> singletonList(new CharInfo(this));
    }
    List<L2GameServerPacket> list = new ArrayList<>(2);
    list.add(new CharInfo(this));
    list.add(new AutoAttackStart(objectId));
    return list;
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.CharInfo

    sendUserInfo();
    if (!isVisible() || isInvisible())
    {
      return;
    }
    L2GameServerPacket ci = isPolymorphed() ? new NpcInfoPoly(this) : new CharInfo(this);
    L2GameServerPacket exCi = new ExBR_ExtraUserInfo(this);
    for (Player player : World.getAroundPlayers(this))
    {
      player.sendPacket(ci, exCi);
      player.sendPacket(RelationChanged.update(player, this, player));
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.CharInfo

      return Collections.emptyList();
    }
    List<L2GameServerPacket> list = new ArrayList<L2GameServerPacket>();
    if (forPlayer.getObjectId() != getObjectId())
    {
      list.add(isPolymorphed() ? new NpcInfoPoly(this) : new CharInfo(this));
    }
    list.add(new ExBR_ExtraUserInfo(this));
    if (isSitting() && (_sittingObject != null))
    {
      list.add(new ChairSit(this, _sittingObject));
View Full Code Here

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

      try
      {
        String id = st.nextToken();
        activeChar.getPoly().setPolyInfo("npc", id);
        activeChar.teleToLocation(activeChar.getX(), activeChar.getY(), activeChar.getZ(), false);
        CharInfo info1 = new CharInfo(activeChar);
        activeChar.broadcastPacket(info1);
        UserInfo info2 = new UserInfo(activeChar);
        activeChar.sendPacket(info2);
      }
      catch(Exception e)
      {
      }
    }
    else if (command.startsWith("admin_unpolyself"))
    {
      activeChar.getPoly().setPolyInfo(null, "1");
      activeChar.decayMe();
      activeChar.spawnMe(activeChar.getX(),activeChar.getY(),activeChar.getZ());
      CharInfo info1 = new CharInfo(activeChar);
      activeChar.broadcastPacket(info1);
      UserInfo info2 = new UserInfo(activeChar);
      activeChar.sendPacket(info2);
    }
    else if (command.startsWith("admin_changename"))
    {
      try
      {
        String name = st.nextToken();
        String oldName = "null";
        try
        {
          L2Object target = activeChar.getTarget();
          L2Character player = null;
          if (target instanceof L2Character)
          {
            player = (L2Character)target;
            oldName = player.getName();
          }
          else if (target == null)
          {
            player = activeChar;
            oldName = activeChar.getName();
          }
          if (player instanceof L2PcInstance)
            L2World.getInstance().removeFromAllPlayers((L2PcInstance)player);
          player.setName(name);
          if (player instanceof L2PcInstance)
            L2World.getInstance().addVisibleObject(player, null, null);
          if (player instanceof L2PcInstance)
          {
            CharInfo info1 = new CharInfo((L2PcInstance)player);
            player.broadcastPacket(info1);
            UserInfo info2 = new UserInfo((L2PcInstance)player);
            player.sendPacket(info2);
          }
          else if(player instanceof L2NpcInstance)
View Full Code Here

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

       Iterator<String> it = linked.iterator();
       while(it.hasNext()){
        try{   L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());
        target.getPoly().setPolyInfo("npc", id);
        target.teleToLocation(target.getX(), target.getY(), target.getZ(), true);
        CharInfo info1 = new CharInfo(target);
        target.broadcastPacket(info1);
            UserInfo info2 = new UserInfo(target);
            target.sendPacket(info2);}catch(Exception e){}
       }
View Full Code Here

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

          try{ L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());

           target.getPoly().setPolyInfo(null, "1");
        target.decayMe();
        target.spawnMe(target.getX(),target.getY(),target.getZ());
        CharInfo info1 = new CharInfo(target);
        target.broadcastPacket(info1);
            UserInfo info2 = new UserInfo(target);
            target.sendPacket(info2);}catch(Exception e){}
       }
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.