Skip to content

[Share]clan members java

Featured Replies

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

if i understood well this code do the clan members to level up the clan?

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

Really good share i will try to put it at my archid pack

omg nc share karxaria well done :)

Thank you, I think that for L2jServer also nice fit.

  • 5 months later...

Thank you, I will try it on L2j Il pack...:)

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

I always believed that it is useless configuring every java string that exists at the core..

 

Anyway, thanks for sharing it!

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

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

and if you know how to use eclipse you dont need that config becouse change it is 20sec ;]

  • 2 weeks later...

great code cyclops... ty for this added to my favorites and this code...

Nice share!

Very simple but good...btw...you cant call it useless but not usefull either!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.