Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2Clan.broadcastToOnlineMembers()


              _formerOwner.setReputationScore(_formerOwner.getReputationScore()-1000, true);
                L2Clan owner = ClanTable.getInstance().getClan(getOwnerId());
                if (owner != null)
                {
                  owner.setReputationScore(owner.getReputationScore()+Math.min(1000,maxreward), true);
                  owner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(owner));
                }
            }
            else
              _formerOwner.setReputationScore(_formerOwner.getReputationScore()+500, true);
View Full Code Here


        {
            L2Clan owner = ClanTable.getInstance().getClan(getOwnerId());
            if (owner != null)
            {
              owner.setReputationScore(owner.getReputationScore()+1000, true);
              owner.broadcastToOnlineMembers(new PledgeShowInfoUpdate(owner));
            }
        }
    }
}
View Full Code Here

                  _paid = false;
                  if(System.currentTimeMillis()>_paidUntil+_chRate){
                     if(GameServer.gameServer.getCHManager() != null && GameServer.gameServer.getCHManager().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);
                  }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);
View Full Code Here

                          ThreadPoolManager.getInstance().scheduleGeneral(new FeeTask(), 3000);
                  }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);
                    if(System.currentTimeMillis()+(1000*60*60*24)<=_paidUntil+_chRate)
                      ThreadPoolManager.getInstance().scheduleGeneral(new FeeTask(), System.currentTimeMillis()+(1000*60*60*24));
                    else
                      ThreadPoolManager.getInstance().scheduleGeneral(new FeeTask(), (_paidUntil+_chRate)-System.currentTimeMillis());

View Full Code Here

             return;
      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

        SystemMessage msg = new SystemMessage(SystemMessageId.WAR_AGAINST_S1_HAS_STOPPED);
        msg.addString(clan2.getName());
        clan1.broadcastToOnlineMembers(msg);
        msg = new SystemMessage(SystemMessageId.CLAN_S1_HAS_DECIDED_TO_STOP);
        msg.addString(clan1.getName());
        clan2.broadcastToOnlineMembers(msg);
        //msg = new SystemMessage(SystemMessageId.WAR_WITH_THE_S1_CLAN_HAS_ENDED);
        //msg.addString(clan1.getName());
        //clan2.broadcastToOnlineMembers(msg);
    }
View Full Code Here

    if (clan == null)
    {
      return;
    }

    clan.broadcastToOnlineMembers(new SystemMessage(SystemMessageId.CLAN_HAS_DISPERSED));
      int castleId = clan.getHasCastle();
      if (castleId == 0)
      {
        for (Siege siege : SiegeManager.getInstance().getSieges())
        {
View Full Code Here

        //msg.addString(clan1.getName());
        //clan2.broadcastToOnlineMembers(msg);
  // clan1 declared clan war.
        msg = new SystemMessage(SystemMessageId.CLAN_S1_DECLARED_WAR);
        msg.addString(clan1.getName());
        clan2.broadcastToOnlineMembers(msg);
    }

    public void deleteclanswars(int clanId1, int clanId2)
    {
        L2Clan clan1 = ClanTable.getInstance().getClan(clanId1);
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);
                }
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);
                }
              }
            }

            rset.close();
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.