SySt3MGaM3RFr3aKs Posted December 31, 2009 Posted December 31, 2009 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; } } }
SySt3MGaM3RFr3aKs Posted January 2, 2010 Author Posted January 2, 2010 again timeline c/p Wow timeline c/p is really hard to do such a thing don't you think !
Łighto™ Posted January 2, 2010 Posted January 2, 2010 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.
SySt3MGaM3RFr3aKs Posted January 2, 2010 Author Posted January 2, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now