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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • <dailyReward days="28" autoOpen="true" minimumOnlineTimeSeconds="30" oneRewardPerIP="true" resetIfMissDay="true">   For now, I have these settings in the XML—this is the V1 version I created, though I plan to make further improvements over time. Of course, I’ll also add more protections—MAC, HWID, and perhaps others like account-based restrictions—to make it more secure. We can also implement non-tradable items to further enhance the system's security. I’ll keep posting updates and refining both the system and the interface. I might make a video tomorrow; if you look at the top, you'll see the "auto-open" feature can be toggled on or off, allowing users to rely solely on the `.daily` command. Cheers! Note: If I sell it in this state, I’ll provide support and roll out updates to users. I’m not forcing anyone to buy anything; I’d even provide the patch files so that anyone with the necessary skills can add features, modify it, or improve it further.
    • If the problem is that the target is lost, the action of aiming at another character, upon losing collision, does not allow aiming.   This one works as it should, allowing you to target characters
    • MICROTEXT AND WATERMARKS BREAK MOST RENDERINGS Microtext and watermarks aren’t just small decorative details. They are one of the most common reasons a document fails verification, even when it looks decent at first glance. The issue is that these elements are almost impossible to reproduce “by eye.” Microtext requires precise geometry and legibility at a very small size, while a watermark needs the correct density, transparency, and accurate placement relative to other security features. Any deviation becomes obvious during detailed inspection. ▪ What’s most often done wrong: - microtext is drawn too thick or blurry - the watermark is made either too visible or almost invisible - the positioning between microtext and watermark is ignored - the original printing technology isn’t taken into account when choosing density and shape - The stronger the document’s security features, the less room there is for approximation. What matters here isn’t visual similarity, but accurate reproduction of the original technical characteristics. If your document contains microtext and watermarks, this is always an area that requires extra attention. Write to us in DMs. We’ll review your case and point out exactly which details need the highest precision during rendering. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #drawing #microtext #photoshop #editing #watermarks
    • GoldRush launches tomorrow! July 18 16:00 GMT+3 Europe / International Register your account in the website, connect wallet and be ready to dominate!
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..