Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2Clan.broadcastToOnlineMembers()


       
        activeChar.sendPacket(new SystemMessage(SystemMessageId.ENTERED_THE_CLAN));
       
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_JOINED_CLAN);
        sm.addString(activeChar.getName());
        clan.broadcastToOnlineMembers(sm);
       
        clan.broadcastToOtherOnlineMembers(new PledgeShowMemberListAdd(activeChar), activeChar);
        clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
       
        // this activates the clan tab on the new member
View Full Code Here


        SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_JOINED_CLAN);
        sm.addString(activeChar.getName());
        clan.broadcastToOnlineMembers(sm);
       
        clan.broadcastToOtherOnlineMembers(new PledgeShowMemberListAdd(activeChar), activeChar);
        clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
       
        // this activates the clan tab on the new member
        activeChar.sendPacket(new PledgeShowMemberListAll(clan, activeChar));
        activeChar.setClanJoinExpiryTime(0);
        activeChar.broadcastUserInfo();
View Full Code Here

   
    clan.removeClanMember(activeChar.getName(), System.currentTimeMillis() + Config.ALT_CLAN_JOIN_DAYS * 86400000L); // 24*60*60*1000 = 86400000
   
    SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_WITHDRAWN_FROM_THE_CLAN);
    sm.addString(activeChar.getName());
    clan.broadcastToOnlineMembers(sm);
    sm = null;
   
    // Remove the Player From the Member list
    clan.broadcastToOnlineMembers(new PledgeShowMemberListDelete(activeChar.getName()));
   
View Full Code Here

    sm.addString(activeChar.getName());
    clan.broadcastToOnlineMembers(sm);
    sm = null;
   
    // Remove the Player From the Member list
    clan.broadcastToOnlineMembers(new PledgeShowMemberListDelete(activeChar.getName()));
   
    activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_WITHDRAWN_FROM_CLAN));
    activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_MUST_WAIT_BEFORE_JOINING_ANOTHER_CLAN));
    activeChar.setActiveWarehouse(null);
  }
View Full Code Here

          {
            L2Clan clan = ClanTable.getInstance().getClanByName(clanName);
            if(clan != null)
            {
              clan.setReputationScore(clan.getReputationScore() + 100, true);
              clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
              SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_WAS_IN_HIGHEST_RANKED_PARTY_IN_FESTIVAL_OF_DARKNESS_AND_GAINED_S2_REPUTATION);
              sm.addString(partyMemberName);
              sm.addNumber(100);
              clan.broadcastToOnlineMembers(sm);
              sm = null;
View Full Code Here

              clan.setReputationScore(clan.getReputationScore() + 100, true);
              clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
              SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_WAS_IN_HIGHEST_RANKED_PARTY_IN_FESTIVAL_OF_DARKNESS_AND_GAINED_S2_REPUTATION);
              sm.addString(partyMemberName);
              sm.addNumber(100);
              clan.broadcastToOnlineMembers(sm);
              sm = null;
            }
            clan = null;
          }
          clanName = null;
View Full Code Here

    L2ClanMember member = clan.getClanMember(_memberName);
    if(member == null)
      return;

    member.setPledgeType(_newPledgeType);
    clan.broadcastToOnlineMembers(new PledgeShowMemberListUpdate(member));
  }

  @Override
  public String getType()
  {
View Full Code Here

          {
            if(ClanHallManager.loaded())
            {
              AuctionManager.getInstance().initNPC(getId());
              ClanHallManager.getInstance().setFree(getId());
              Clan.broadcastToOnlineMembers(new SystemMessage(SystemMessageId.THE_CLAN_HALL_FEE_IS_ONE_WEEK_OVERDUE_THEREFORE_THE_CLAN_HALL_OWNERSHIP_HAS_BEEN_REVOKED));
            }
            else
            {
              ThreadPoolManager.getInstance().scheduleGeneral(new FeeTask(), 3000);
            }
View Full Code Here

          else
          {
            updateDb();
            SystemMessage sm = new SystemMessage(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW);
            sm.addNumber(getLease());
            Clan.broadcastToOnlineMembers(sm);
            sm = null;

            if(System.currentTimeMillis() + 1000 * 60 * 60 * 24 <= _paidUntil + _chRate)
            {
              ThreadPoolManager.getInstance().scheduleGeneral(new FeeTask(), System.currentTimeMillis() + 1000 * 60 * 60 * 24);
 
View Full Code Here

      else
      {
        if (activeChar.getClan() != null && activeChar.isClanLeader())
        {
        clan.setReputationScore(clan.getReputationScore()+Config.REPUTATION_CUSTOM_POINTS, true);
        clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
        activeChar.sendMessage("Your clan received "+ Config.REPUTATION_CUSTOM_POINTS +" reputation point(s)!");
        activeChar.broadcastUserInfo();
        playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
        }
        else
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.