Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.PartySmallWindowAll$PartySmallWindowMemberInfo


  {
    if (npcId != actor.getDisplayId())
    {
      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
View Full Code Here


        effect.get(0).exit();
      }
      skill.getEffects(actor, player, false, false);
      if (animation)
      {
        actor.broadcastPacket(new MagicSkillUse(actor, player, skill.getId(), skill.getLevel(), skill.getHitTime(), 0));
      }
    }
  }
View Full Code Here

      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
          player.setTarget(null);
          player.setTarget(actor);
          player.sendPacket(su);
View Full Code Here

      {
        sendPacket(new PetInfo(summon));
      }
      if (activeChar.isInParty())
      {
        sendPacket(new PartySmallWindowAll(activeChar.getParty(), activeChar));
        for (Player member : activeChar.getParty().getPartyMembers())
        {
          if (member != activeChar)
          {
            sendPacket(new PartySpelled(member, true));
View Full Code Here

    }
    player.setParty(this);
    player.getListeners().onPartyInvite();
    List<L2GameServerPacket> addInfo = new ArrayList<>(4 + (_members.size() * 4));
    List<L2GameServerPacket> pplayer = new ArrayList<>(20);
    pplayer.add(new PartySmallWindowAll(this, player));
    pplayer.add(new SystemMessage(SystemMessage.YOU_HAVE_JOINED_S1S_PARTY).addName(leader));
    addInfo.add(new SystemMessage(SystemMessage.S1_HAS_JOINED_THE_PARTY).addName(player));
    addInfo.add(new PartySpelled(player, true));
    for (Summon summon : player.getSummonList())
    {
      addInfo.add(new ExPartyPetWindowAdd(summon));
      addInfo.add(new PartySpelled(summon, true));
    }
    PartyMemberPosition pmp = new PartyMemberPosition();
    List<L2GameServerPacket> pmember;
    for (Player member : _members)
    {
      if (member != player)
      {
        pmember = new ArrayList<>(addInfo.size() + 4);
        pmember.addAll(addInfo);
        if (_members.size() == 2)
        {
          pmember.add(new PartySmallWindowAll(this, member));
        }
        else
        {
          pmember.add(new PartySmallWindowAdd(member, player, getLootDistribution()));
        }
View Full Code Here

      return;
    }
    SystemMessage msg = new SystemMessage(SystemMessage.S1_HAS_BECOME_A_PARTY_LEADER).addName(leader);
    for (Player member : _members)
    {
      member.sendPacket(PartySmallWindowDeleteAll.STATIC, new PartySmallWindowAll(this, member), msg);
    }
    for (Player member : _members)
    {
      broadcastToPartyMembers(member, new PartySpelled(member, true));
      for (Summon summon : member.getSummonList())
View Full Code Here

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    actor.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, 0, actor.getLoc()));
    Functions.npcSay(actor, "A fatal error has occurred");
    Functions.npcSay(actor, "System is being shut down...");
    Functions.npcSay(actor, "......");
    try
    {
View Full Code Here

  {
    if (npcId != actor.getDisplayId())
    {
      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
View Full Code Here

          break;
        case 30:
        case 20:
        case 10:
        case 5:
          Announcements.getInstance().announceToAll(new SystemMessage(SystemMessage.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS__PLEASE_FIND_A_SAFE_PLACE_TO_LOG_OUT).addNumber(shutdownCounter));
          break;
        case 0:
          switch (shutdownMode)
          {
            case SHUTDOWN:
View Full Code Here

            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
            for(Player p : getPlayers())
            {
              p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
              p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
            }
            startCollapseTimer(5 * 60 * 1000L);
            timeSpent = (int) (System.currentTimeMillis() - _savedTime) / 1000;
          }
        }, 10000L);
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.PartySmallWindowAll$PartySmallWindowMemberInfo

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.