'Baggos' Posted August 11, 2012 Posted August 11, 2012 Hello members of maxcheaters. I do not think there is something similar and I told him to build one. Is and different for choose if you want 1 of the three config: Index: sf/l2j/config/l2jmods.properties ChampionRewardItemQty = 1 + +#--------------------------------------------------------------- +# Clan Leader Name*Title & Members Title Color +#--------------------------------------------------------------- +ClanNameLeaderColorSystem = True +ClanNameLeaderColor = 00FF00 + +ClanLeaderTitleColorSystem = True +ClanLeaderTitleColor = 00FF00 + +ClanMembersTitleColorSystem = True +ClanMembersTitleColor = 00FF00 + ===== Index: sf/l2j/config.java public static int L2JMOD_CHAMPION_REWARD_QTY; + public static boolean CLAN_LEADER_NAME_COLOR_SYSTEM; + public static boolean CLAN_LEADER_TITLE_COLOR_SYSTEM; + public static boolean CLAN_MEMBERS_TITLE_COLOR_SYSTEM; + public static int CLAN_LEADER_NAME_COLOR; + public static int CLAN_LEADER_TITLE_COLOR; + public static int CLAN_MEMBERS_TITLE_COLOR; L2JMOD_CHAMPION_REWARD_QTY = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItemQty", "1")); + CLAN_LEADER_NAME_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("ClanLeaderNameColorSystem", "false")); + CLAN_LEADER_NAME_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderNameColor", "00FF00")); + CLAN_LEADER_TITLE_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("ClanLeaderTitleColorSystem", "false")); + CLAN_LEADER_TITLE_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderTitleColor", "00FF00")); + CLAN_MEMBERS_TITLE_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("ClanMembersTitleColorSystem", "false")); + CLAN_MEMBERS_TITLE_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanMembersTitleColor", "00FF00")); ===== Index: sf/l2j/gameserver/clientpackets/EnterWorld.java private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld"; + private static final int CLAN_LEADER_NAME_COLOR = 0; + private static final int CLAN_LEADER_TITLE_COLOR = 0; + private static final int CLAN_MEMBERS_TITLE_COLOR = 0; private static Logger _log = Logger.getLogger(EnterWorld.class.getName()); Quest.playerEnter(activeChar); activeChar.sendPacket(new QuestList()); + //** Clan leader Name Color **// + if (Config.CLAN_LEADER_COLOR_SYSTEM) + { + if (activeChar.isClanLeader()) + { + activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_NAME_COLOR); } + } + + //** Clan TLeader Title Color **// + if (Config.CLAN_TITLE_COLOR_SYSTEM) + { + if (activeChar.isClanLeader()) + + { + activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_TITLE_COLOR); } + } + + //** Clan Members Title Color **// + if (Config.CLAN_MEMBERS_TITLE_COLOR_SYSTEM) + { + if (activeChar.getClan() != null) + + { + activeChar.getAppearance().setTitleColor(Config.CLAN_MEMBERS_TITLE_COLOR); } + } activeChar.setPledgeClass(pledgeClass); } + /** + * @return the clanMembersTitleColor + */ + public static int getClanMembersTitleColor() + { + return CLAN_MEMBERS_TITLE_COLOR; + } + + /** + * @return the clanLeaderTitleColor + */ + public static int getClanLeaderTitleColor() + { + return CLAN_LEADER_TITLE_COLOR; + } + + /** + * @return the clanLeaderNameColor + */ + public static int getClanLeaderNameColor() + { + return CLAN_LEADER_NAME_COLOR; + }
vampir Posted August 11, 2012 Posted August 11, 2012 meh, easy code, make fix for new clans - since new leaders will need restart to get color.
`BoØmBoØm Posted August 11, 2012 Posted August 11, 2012 meh, easy code, make fix for new clans - since new leaders will need restart to get color.
Zake Posted August 11, 2012 Posted August 11, 2012 Why do you always post simple codes? Some of them are already shared though.
Recommended Posts