Package com.l2jfrozen.gameserver.model

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


        player.setHero(true);
        L2Clan clan = player.getClan();
        if (clan != null)
        {
          clan.setReputationScore(clan.getReputationScore()+1000, true);
          clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
          SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_BECAME_HERO_AND_GAINED_S2_REPUTATION_POINTS);
          sm.addString(name);
          sm.addNumber(1000);
          clan.broadcastToOnlineMembers(sm);
        }
View Full Code Here


          clan.setReputationScore(clan.getReputationScore()+1000, true);
          clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
          SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_BECAME_HERO_AND_GAINED_S2_REPUTATION_POINTS);
          sm.addString(name);
          sm.addNumber(1000);
          clan.broadcastToOnlineMembers(sm);
        }
        player.sendPacket(new UserInfo(player));
        player.broadcastUserInfo();
      }
      else
View Full Code Here

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

                clan.setReputationScore(clan.getReputationScore()+1000, true);
                clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
                SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_BECAME_HERO_AND_GAINED_S2_REPUTATION_POINTS);
                sm.addString(name);
                sm.addNumber(1000);
                clan.broadcastToOnlineMembers(sm);
              }
            }
          }
        }
        catch (Exception e)
View Full Code Here

    clan.setCharPenaltyExpiryTime(System.currentTimeMillis() + Config.ALT_CLAN_JOIN_DAYS * 86400000L); // 24*60*60*1000 = 86400000
    clan.updateClanInDB();
   
    SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_MEMBER_S1_EXPELLED);
    sm.addString(member.getName());
    clan.broadcastToOnlineMembers(sm);
    sm = null;
    activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_SUCCEEDED_IN_EXPELLING_CLAN_MEMBER));
    activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_MUST_WAIT_BEFORE_ACCEPTING_A_NEW_MEMBER));
   
    // Remove the Player From the Member list
View Full Code Here

    sm = null;
    activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_SUCCEEDED_IN_EXPELLING_CLAN_MEMBER));
    activeChar.sendPacket(new SystemMessage(SystemMessageId.YOU_MUST_WAIT_BEFORE_ACCEPTING_A_NEW_MEMBER));
   
    // Remove the Player From the Member list
    clan.broadcastToOnlineMembers(new PledgeShowMemberListDelete(_target));
    if (member.isOnline())
    {
      L2PcInstance player = member.getPlayerInstance();
      player.sendPacket(new SystemMessage(SystemMessageId.CLAN_MEMBERSHIP_TERMINATED));
      player.setActiveWarehouse(null);
View Full Code Here

      //remove clan leader skills
      leader.addClanLeaderSkills(false);
     
    }

    clan.broadcastToOnlineMembers(new SystemMessage(SystemMessageId.CLAN_HAS_DISPERSED));

    int castleId = clan.getHasCastle();

    if(castleId == 0)
    {
View Full Code Here

    //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

    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);
    //msg = null;
View Full Code Here

      leaderSubPledge.getPlayerInstance().sendPacket(new UserInfo(leaderSubPledge.getPlayerInstance()));
      clan.broadcastClanStatus();
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_BEEN_SELECTED_AS_CAPTAIN_OF_S2);
      sm.addString(leaderName);
      sm.addString(clanName);
      clan.broadcastToOnlineMembers(sm);
      sm = null;
    }
 
    clan = null;
    subPledge = null;
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.