Examples of broadcastToOnlineMembers()


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

                  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

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

    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

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

    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));
  }
View Full Code Here

Examples of net.sf.l2j.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);
        sm = null;

        clan.broadcastToOtherOnlineMembers(new PledgeShowMemberListAdd(activeChar), activeChar);
        clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
View Full Code Here

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

        sm.addString(activeChar.getName());
        clan.broadcastToOnlineMembers(sm);
        sm = null;

        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

Examples of net.sf.l2j.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

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

                    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();

            }
View Full Code Here

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

                  {
                    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

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

                      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);
                    }
                  }
                }

                rset.close();
View Full Code Here

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

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