Jump to content

Recommended Posts

Posted

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

  • 5 months later...
Posted

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

Posted

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

Posted

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

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...