Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.PledgeShowMemberListUpdate


    //    activeChar.sendPacket(Msg.THE_CLAN_HALL_FEE_IS_ONE_WEEK_OVERDUE_THEREFORE_THE_CLAN_HALL_OWNERSHIP_HAS_BEEN_REVOKED);
    //}
    int sponsor = activeChar.getSponsor();
    int apprentice = activeChar.getApprentice();
    SystemMessage msg = new SystemMessage(SystemMessage.CLAN_MEMBER_S1_HAS_LOGGED_INTO_GAME).addString(activeChar.getName());
    PledgeShowMemberListUpdate memberUpdate = new PledgeShowMemberListUpdate(activeChar);
    for(L2Player clanMember : clan.getOnlineMembers(activeChar.getObjectId()))
    {
      if(clanMember.getObjectId() == sponsor)
      {
        clanMember.sendPacket(memberUpdate, new SystemMessage(SystemMessage.S1_YOUR_CLAN_ACADEMYS_APPRENTICE_HAS_LOGGED_IN).addString(activeChar.getName()));
View Full Code Here


          {
            activeChar.sendMessage(new CustomMessage("l2p.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("l2p.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().broadcastUserInfo(true);
View Full Code Here

      replacement.setPledgeType(subject.getPledgeType());
      if(replacement.getPowerGrade() > 5)
      {
        replacement.setPowerGrade(clan.getAffiliationRank(replacement.getPledgeType()));
      }
      clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(replacement));
      if(replacement.isOnline())
      {
        replacement.getPlayer().updatePledgeClass();
        replacement.getPlayer().broadcastUserInfo(true);
      }
    }
    subject.setPledgeType(_targetUnit);
    if(subject.getPowerGrade() > 5)
    {
      subject.setPowerGrade(clan.getAffiliationRank(subject.getPledgeType()));
    }
    clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(subject));
    if(subject.isOnline())
    {
      subject.getPlayer().updatePledgeClass();
      subject.getPlayer().broadcastUserInfo(true);
    }
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().broadcastUserInfo(true);
      }
View Full Code Here

      player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2VillageMasterInstance.YouCantBeASubUnitLeader", player));
      return;
    }
    subPledge[match].setLeaderId(subLeader.getObjectId());
    clan.broadcastToOnlineMembers(new PledgeReceiveSubPledgeCreated(subPledge[match]));
    clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(subLeader));
    if(subLeader.isOnline())
    {
      subLeader.getPlayer().updatePledgeClass();
      subLeader.getPlayer().broadcastUserInfo(true);
    }
View Full Code Here

TOP

Related Classes of l2p.gameserver.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.