Jump to content

Recommended Posts

Posted

Hello, here is a diff file to config the Max critical cap of your server

 

This patch is for Interlude L2J, it works on other Chronicles too.

Simple, nothing Special

 

Credits: Me

 

Index: D:/Workspace/Eclipse/config/altsettings.properties
===================================================================
--- D:/Workspace/Eclipse/config/altsettings.properties
+++ D:/Workspace/Eclipse/config/altsettings.properties
@@ -216,6 +216,9 @@
AltLottery2and1NumberPrize = 200

+# Critical Cap ( Max Critical )
+# Retail: 500
+CriticalCap = 500
Index: D:/Workspace/Eclipse/java/net/sf/l2j/Config.java
===================================================================
--- D:/Workspace/Eclipse/java/net/sf/l2j/Config.java
+++ D:/Workspace/Eclipse/java/net/sf/l2j/Config.java
@@ -155,6 +155,9 @@
    /** Fast or slow multiply coefficient for skill hit time */
    public static float ALT_GAME_SKILL_HIT_RATE;

+    /**Cricial Cap Configuration*/
+    public static int CRITICAL_CAP;
+
    /** Alternative gameing - loss of XP on death */
    public static boolean ALT_GAME_DELEVEL;

@@ -1490,6 +1493,7 @@
	            ALT_GAME_FREIGHTS       = Boolean.parseBoolean(altSettings.getProperty("AltGameFreights", "false"));
	            ALT_GAME_FREIGHT_PRICE  = Integer.parseInt(altSettings.getProperty("AltGameFreightPrice", "1000"));
	            ALT_GAME_SKILL_HIT_RATE = Float.parseFloat(altSettings.getProperty("AltGameSkillHitRate", "1."));
+	            CRITICAL_CAP			= Integer.parseInt(altSettings.getProperty("CriticalCap", "500"));
	            IS_CRAFTING_ENABLED     = Boolean.parseBoolean(altSettings.getProperty("CraftingEnabled", "true"));
	            SP_BOOK_NEEDED          = Boolean.parseBoolean(altSettings.getProperty("SpBookNeeded", "true"));
	            AUTO_LOOT               = altSettings.getProperty("AutoLoot").equalsIgnoreCase("True");
@@ -1986,6 +1990,7 @@
        else if (pName.equalsIgnoreCase("AltGameFreightPrice")) ALT_GAME_FREIGHT_PRICE = Integer.parseInt(pValue);

        else if (pName.equalsIgnoreCase("AltGameSkillHitRate")) ALT_GAME_SKILL_HIT_RATE = Float.parseFloat(pValue);
+        else if (pName.equalsIgnoreCase("CriticalCap")) CRITICAL_CAP = Integer.parseInt(pValue);

        else if (pName.equalsIgnoreCase("CraftingEnabled")) IS_CRAFTING_ENABLED = Boolean.valueOf(pValue);
        else if (pName.equalsIgnoreCase("SpBookNeeded")) SP_BOOK_NEEDED = Boolean.valueOf(pValue);
Index: D:/Workspace/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java
===================================================================
--- D:/Workspace/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java
+++ D:/Workspace/Eclipse/java/net/sf/l2j/gameserver/model/actor/stat/CharStat.java
@@ -154,8 +154,8 @@
		int criticalHit = (int) calcStat(Stats.CRITICAL_RATE, _ActiveChar.getTemplate().baseCritRate, target, skill);

		// Set a cap of Critical Hit at 500
-		if(criticalHit > 500)
-			criticalHit = 500;
+		if(criticalHit > Config.CRITICAL_CAP)
+			criticalHit = Config.CRITICAL_CAP;

		return criticalHit;
	}
Index: D:/Workspace/Eclipse/java/net/sf/l2j/gameserver/skills/Formulas.java
===================================================================
--- D:/Workspace/Eclipse/java/net/sf/l2j/gameserver/skills/Formulas.java
+++ D:/Workspace/Eclipse/java/net/sf/l2j/gameserver/skills/Formulas.java
@@ -370,8 +370,8 @@
			{
				env.value *= DEXbonus[p.getDEX()];
				env.value *= 10;
-				if(env.value > 500)
-					env.value = 500;
+				if(env.value > Config.CRITICAL_CAP)
+					env.value = Config.CRITICAL_CAP;
			}
		}
	}

Posted

I've watched your shares here. whoa, not a single one is yours (i'm talking about the java shares). And despite the fact that everyone has realized that you are leacher and you steal other's ppl work, you still continue to share leached things.

Posted

I've watched your shares here. whoa, not a single one is yours (i'm talking about the java shares). And despite the fact that everyone has realized that you are leacher and you steal other's ppl work, you still continue to share leached things.

Because i am not a leecher.

EDIT: Maybe some things are already shared somewhere. But i didn't know it.

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