Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.PledgeShowMemberListUpdate


          {
            activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestOustAlly.ApprenticeAlreadyHasSponsor", activeChar));
            return;
          }
          sponsor.setApprentice(apprentice.getObjectId());
          clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(apprentice));
          clan.broadcastToOnlineMembers(new SystemMessage(SystemMessage.S2_HAS_BEEN_DESIGNATED_AS_THE_APPRENTICE_OF_CLAN_MEMBER_S1).addString(sponsor.getName()).addString(apprentice.getName()));
        }
        else
        {
          if (!sponsor.hasApprentice())
          {
            activeChar.sendMessage(new CustomMessage("lineage2.gameserver.clientpackets.RequestOustAlly.MemberHasNoApprentice", activeChar));
            return;
          }
          sponsor.setApprentice(0);
          clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(apprentice));
          clan.broadcastToOnlineMembers(new SystemMessage(SystemMessage.S2_CLAN_MEMBER_S1S_APPRENTICE_HAS_BEEN_REMOVED).addString(sponsor.getName()).addString(apprentice.getName()));
        }
        if (apprentice.isOnline())
        {
          apprentice.getPlayer().broadcastCharInfo();
View Full Code Here


    SubUnit oldUnit = null;
    if (replacement != null)
    {
      oldUnit = replacement.getSubUnit();
      oldUnit.replace(replacement.getObjectId(), subject.getPledgeType());
      clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(replacement));
      if (replacement.isOnline())
      {
        replacement.getPlayer().updatePledgeClass();
        replacement.getPlayer().broadcastCharInfo();
      }
    }
    oldUnit = subject.getSubUnit();
    oldUnit.replace(subject.getObjectId(), _targetUnit);
    clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(subject));
    if (subject.isOnline())
    {
      subject.getPlayer().updatePledgeClass();
      subject.getPlayer().broadcastCharInfo();
    }
View Full Code Here

      sm = Msg.CLAN_HAS_BEEN_CREATED;
    }
    player.sendPacket(sm);
    if (subLeader != null)
    {
      clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(subLeader));
      if (subLeader.isOnline())
      {
        subLeader.getPlayer().updatePledgeClass();
        subLeader.getPlayer().broadcastCharInfo();
      }
View Full Code Here

      player.sendMessage(new CustomMessage("lineage2.gameserver.model.instances.L2VillageMasterInstance.ItCantBeSubUnitLeader", player));
      return;
    }
    targetUnit.setLeader(subLeader, true);
    clan.broadcastToOnlineMembers(new PledgeReceiveSubPledgeCreated(targetUnit));
    clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(subLeader));
    if (subLeader.isOnline())
    {
      subLeader.getPlayer().updatePledgeClass();
      subLeader.getPlayer().broadcastCharInfo();
    }
View Full Code Here

    UnitMember member = unit == null ? null : unit.getUnitMember(getObjectId());
    if (member != null)
    {
      int sponsor = member.getSponsor();
      int apprentice = getApprentice();
      PledgeShowMemberListUpdate memberUpdate = new PledgeShowMemberListUpdate(this);
      for (Player clanMember : _clan.getOnlineMembers(getObjectId()))
      {
        clanMember.sendPacket(memberUpdate);
        if (clanMember.getObjectId() == sponsor)
        {
View Full Code Here

    {
      getParty().broadCast(new PartySmallWindowUpdate(this));
    }
    if (getClan() != null)
    {
      getClan().broadcastToOnlineMembers(new PledgeShowMemberListUpdate(this));
    }
    if (_matchingRoom != null)
    {
      _matchingRoom.broadcastPlayerUpdate(this);
    }
View Full Code Here

    {
      getParty().recalculatePartyData();
    }
    if (_clan != null)
    {
      _clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(this));
    }
    if (_matchingRoom != null)
    {
      _matchingRoom.broadcastPlayerUpdate(this);
    }
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.PledgeShowMemberListUpdate

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.