Flash™ Posted September 25, 2009 Posted September 25, 2009 clan members count for next level config. Index: /trunk/lin2srv/java/config/Character.properties =================================================================== --- /trunk/lin2srv/java/config/Character.properties (revision 843) +++ /trunk/lin2srv/java/config/Character.properties (revision 845) @@ -462,4 +462,10 @@ AltClanMembersForWar = 15 +# Clan members count needed for increasing clan level. +ClanLevel6Members = 30 +ClanLevel7Members = 80 +ClanLevel8Members = 120 +ClanLevel9Members = 120 +ClanLevel10Members = 140 # --------------------------------------------------------------------------- Index: /trunk/lin2srv/java/net/sf/l2j/gameserver/model/L2Clan.java =================================================================== --- /trunk/lin2srv/java/net/sf/l2j/gameserver/model/L2Clan.java (revision 612) +++ /trunk/lin2srv/java/net/sf/l2j/gameserver/model/L2Clan.java (revision 845) @@ -2326,5 +2326,5 @@ case 5: // Upgrade to 6 - if(getReputationScore() >= Config.CLAN_LEVEL_6_COST && getMembersCount() >= 30) + if(getReputationScore() >= Config.CLAN_LEVEL_6_COST && getMembersCount() >= Config.CLAN_LEVEL_6_MEMBERS) { setReputationScore(getReputationScore() - Config.CLAN_LEVEL_6_COST, true); @@ -2339,5 +2339,5 @@ case 6: // Upgrade to 7 - if(getReputationScore() >= Config.CLAN_LEVEL_7_COST && getMembersCount() >= 80) + if(getReputationScore() >= Config.CLAN_LEVEL_7_COST && getMembersCount() >= Config.CLAN_LEVEL_7_MEMBERS) { setReputationScore(getReputationScore() - Config.CLAN_LEVEL_7_COST, true); @@ -2351,5 +2351,5 @@ case 7: // Upgrade to 8 - if(getReputationScore() >= Config.CLAN_LEVEL_8_COST && getMembersCount() >= 120) + if(getReputationScore() >= Config.CLAN_LEVEL_8_COST && getMembersCount() >= Config.CLAN_LEVEL_8_MEMBERS) { setReputationScore(getReputationScore() - Config.CLAN_LEVEL_8_COST, true); @@ -2363,5 +2363,5 @@ case 8: // Upgrade to 9 - if(getReputationScore() >= Config.CLAN_LEVEL_9_COST && player.getInventory().getItemByItemId(9910) != null && getMembersCount() >= 120) + if(getReputationScore() >= Config.CLAN_LEVEL_9_COST && player.getInventory().getItemByItemId(9910) != null && getMembersCount() >= Config.CLAN_LEVEL_9_MEMBERS) { // itemId 9910 == Blood Oath @@ -2383,5 +2383,5 @@ case 9: // Upgrade to 10 - if(getReputationScore() >= Config.CLAN_LEVEL_10_COST && player.getInventory().getItemByItemId(9911) != null && getMembersCount() >= 140) + if(getReputationScore() >= Config.CLAN_LEVEL_10_COST && player.getInventory().getItemByItemId(9911) != null && getMembersCount() >= Config.CLAN_LEVEL_10_MEMBERS) { // itemId 9911 == Blood Alliance Index: /trunk/lin2srv/java/net/sf/l2j/Config.java =================================================================== --- /trunk/lin2srv/java/net/sf/l2j/Config.java (revision 843) +++ /trunk/lin2srv/java/net/sf/l2j/Config.java (revision 845) @@ -188,4 +188,9 @@ public static boolean ANNOUNCE_PK_PVP; public static boolean ANNOUNCE_PK_PVP_NORMAL_MESSAGE; + public static int CLAN_LEVEL_6_MEMBERS; + public static int CLAN_LEVEL_7_MEMBERS; + public static int CLAN_LEVEL_8_MEMBERS; + public static int CLAN_LEVEL_9_MEMBERS; + public static int CLAN_LEVEL_10_MEMBERS; @@ -1371,4 +1376,10 @@ ANNOUNCE_PK_PVP = Boolean.parseBoolean(Character.getProperty("AnnouncePkPvP", "False")); ANNOUNCE_PK_PVP_NORMAL_MESSAGE = Boolean.parseBoolean(Character.getProperty("AnnouncePkPvPNormalMessage", "True")); + CLAN_LEVEL_6_MEMBERS = Integer.parseInt(Character.getProperty("ClanLevel6Members", "30")); + CLAN_LEVEL_7_MEMBERS = Integer.parseInt(Character.getProperty("ClanLevel7Members", "80")); + CLAN_LEVEL_8_MEMBERS = Integer.parseInt(Character.getProperty("ClanLevel8Members", "120")); + CLAN_LEVEL_9_MEMBERS = Integer.parseInt(Character.getProperty("ClanLevel9Members", "120")); + CLAN_LEVEL_10_MEMBERS = Integer.parseInt(Character.getProperty("ClanLevel10Members", "140")); + } catch (Exception e) L2jOfficial Quote
Grim. Posted September 25, 2009 Posted September 25, 2009 if i understood well this code do the clan members to level up the clan? Quote
xDunno Posted September 25, 2009 Posted September 25, 2009 if i understood well this code do the clan members to level up the clan? Yes its for that ;p Btw thx for sharing ;p Quote
Drasius Posted September 27, 2009 Posted September 27, 2009 Really good share i will try to put it at my archid pack Quote
agapitos Posted September 27, 2009 Posted September 27, 2009 omg nc share karxaria well done :) Quote
kali Posted September 27, 2009 Posted September 27, 2009 Thank you, I think that for L2jServer also nice fit. Quote
MarKoM Posted March 10, 2010 Posted March 10, 2010 Thank you, I will try it on L2j Il pack...:) Quote
B1ggBoss Posted March 11, 2010 Posted March 11, 2010 if i understood well this code do the clan members to level up the clan? no, this code allow you to choose how many players must be in clan to be able to level it up in each level good work Quote
Coyote™ Posted March 11, 2010 Posted March 11, 2010 I always believed that it is useless configuring every java string that exists at the core.. Anyway, thanks for sharing it! Quote
Horus Posted March 11, 2010 Posted March 11, 2010 I always believed that it is useless configuring every java string that exists at the core.. Anyway, thanks for sharing it! Well its not a string although I do agree with you. Adding configurations for things that you know are going to be changed- that's ok- but for everything ? Its just stupid. Still welcome back wizz ^^ Quote
Coyote™ Posted March 11, 2010 Posted March 11, 2010 Well its not a string although I do agree with you. Adding configurations for things that you know are going to be changed- that's ok- but for everything ? Its just stupid. Still welcome back wizz ^^ He is Flash, not wizzy ;p Quote
varens Posted March 11, 2010 Posted March 11, 2010 and if you know how to use eclipse you dont need that config becouse change it is 20sec ;] Quote
NoSti* Posted March 23, 2010 Posted March 23, 2010 great code cyclops... ty for this added to my favorites and this code... Quote
+cs.tribal Posted March 23, 2010 Posted March 23, 2010 Nice share! Very simple but good...btw...you cant call it useless but not usefull either! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.