Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Clan.broadcastToOnlineMembers()


        L2Clan newOwner = ClanTable.getInstance().getClan(getSiegeUnit().getOwnerId());
        if(oldOwner == null)
        { // fortress was taken over from scratch
          if(newOwner.getLevel() >= 5)
          {
            newOwner.broadcastToOnlineMembers(new SystemMessage(SystemMessage.SINCE_YOUR_CLAN_EMERGED_VICTORIOUS_FROM_THE_SIEGE_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(newOwner.incReputation(200, true, "FortressSiege")));
          }
          SiegeManager.clearFortressRegistrations(newOwner);
        }
        else if(newOwner.equals(oldOwner))
        { // fortress was defended
View Full Code Here


        }
        else if(newOwner.equals(oldOwner))
        { // fortress was defended
          if(newOwner.getLevel() >= 5)
          {
            newOwner.broadcastToOnlineMembers(new SystemMessage(SystemMessage.SINCE_YOUR_CLAN_EMERGED_VICTORIOUS_FROM_THE_SIEGE_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(newOwner.incReputation(200, true, "FortressSiege")));
          }
          SiegeManager.clearFortressRegistrations(newOwner);
        }
        else
        { // fortress was taken over by another clan
View Full Code Here

        else
        { // fortress was taken over by another clan
          announceToPlayer(new SystemMessage(SystemMessage.S1_CLAN_IS_VICTORIOUS_IN_THE_FORTRESS_BATLE_OF_S2).addString(newOwner.getName()).addString(getSiegeUnit().getName()), false, true);
          if(newOwner.getLevel() >= 5)
          {
            newOwner.broadcastToOnlineMembers(new SystemMessage(SystemMessage.SINCE_YOUR_CLAN_EMERGED_VICTORIOUS_FROM_THE_SIEGE_S1_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE).addNumber(newOwner.incReputation(500, true, "FortressSiege")));
          }
          if(oldOwner.getLevel() >= 5)
          {
            oldOwner.broadcastToOnlineMembers(new SystemMessage(SystemMessage.YOUR_CLAN_HAS_FAILED_TO_DEFEND_THE_CASTLE_S1_POINTS_HAVE_BEEN_DEDUCTED_FROM_YOUR_CLAN_REPUTATION_SCORE).addNumber(-oldOwner.incReputation(-500, true, "FortressSiege")));
          }
View Full Code Here

          {
            L2Clan clan = ClanTable.getInstance().getClan(clanId);
            if(clan != null)
            {
              clan.incReputation(100, true, "SevenSignsFestival");
              clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
              SystemMessage sm = new SystemMessage(SystemMessage.CLAN_MEMBER_S1_WAS_AN_ACTIVE_MEMBER_OF_THE_HIGHEST_RANKED_PARTY_IN_THE_FESTIVAL_OF_DARKNESS_S2_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE);
              sm.addString(rset.getString("char_name"));
              sm.addNumber(100);
              clan.broadcastToOnlineMembers(sm);
            }
View Full Code Here

              clan.incReputation(100, true, "SevenSignsFestival");
              clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
              SystemMessage sm = new SystemMessage(SystemMessage.CLAN_MEMBER_S1_WAS_AN_ACTIVE_MEMBER_OF_THE_HIGHEST_RANKED_PARTY_IN_THE_FESTIVAL_OF_DARKNESS_S2_POINTS_HAVE_BEEN_ADDED_TO_YOUR_CLAN_REPUTATION_SCORE);
              sm.addString(rset.getString("char_name"));
              sm.addNumber(100);
              clan.broadcastToOnlineMembers(sm);
            }
          }
        }
        DatabaseUtils.closeResultSet(rset);
        DatabaseUtils.closeStatement(statement);
View Full Code Here

    {
      activeChar.sendMessage("A clan leader may not be dismissed.");
      return;
    }
    clan.removeClanMember(member.getObjectId());
    clan.broadcastToOnlineMembers(new SystemMessage(SystemMessage.CLAN_MEMBER_S1_HAS_BEEN_EXPELLED).addString(_target), new PledgeShowMemberListDelete(_target));
    clan.setExpelledMember();
    if(member.isOnline())
    {
      L2Player player = member.getPlayer();
      if(player.getPledgeType() == L2Clan.SUBUNIT_ACADEMY)
View Full Code Here

    if(clan.equals(clan.getAlliance().getLeader()))
    {
      activeChar.sendPacket(Msg.ALLIANCE_LEADERS_CANNOT_WITHDRAW);
      return;
    }
    clan.broadcastToOnlineMembers(Msg.YOU_HAVE_WITHDRAWN_FROM_THE_ALLIANCE, Msg.A_CLAN_THAT_HAS_WITHDRAWN_OR_BEEN_EXPELLED_CANNOT_ENTER_INTO_AN_ALLIANCE_WITHIN_ONE_DAY_OF_WITHDRAWAL_OR_EXPULSION);
    L2Alliance alliance = clan.getAlliance();
    clan.setAllyId(0);
    clan.setLeavedAlly();
    alliance.broadcastAllyStatus(true);
    alliance.removeAllyMember(clan.getClanId());
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())
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())
          {
View Full Code Here

          {
            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

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.