Jump to content

Recommended Posts

Posted

Hello, this is a way to " balance " Blow skill Sucess.

 

Here is a Simple diff file.

 

Index: /trunk/Eclipse-Game/config/Custom/Classbalance.properties
===================================================================
--- /trunk/Eclipse-Game/config/Custom/Classbalance.properties (revision 76)
+++ /trunk/Eclipse-Game/config/Custom/Classbalance.properties (revision 127)
@@ -1,3 +1,9 @@
# Eclipse Configurable Damage Optimizations.
+#---------------------------------------------
+# Blow Success Configs
+#---------------------------------------------
+FrontBlowSuccess = 50
+SideBlowSuccess = 60
+BehindBlowSuccess = 70

#---------------------------------------------
Index: /trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/skillhandlers/Blow.java
===================================================================
--- /trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/skillhandlers/Blow.java (revision 12)
+++ /trunk/Eclipse-Game/java/net/sf/l2j/gameserver/handler/skillhandlers/Blow.java (revision 126)
@@ -18,4 +18,5 @@
package net.sf.l2j.gameserver.handler.skillhandlers;

+import net.sf.l2j.L2Config;
import net.sf.l2j.gameserver.handler.ISkillHandler;
import net.sf.l2j.gameserver.model.L2Character;
@@ -45,7 +46,7 @@

	private int _successChance;
-	public final static int FRONT = 50;
-	public final static int SIDE = 60;
-	public final static int BEHIND = 70;
+	public final static int FRONT = L2Config.FRONT_BLOW_SUCCESS;
+	public final static int SIDE = L2Config.SIDE_BLOW_SUCCESS;
+	public final static int BEHIND = L2Config.BEHIND_BLOW_SUCCESS;

	public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets){
Index: /trunk/Eclipse-Game/java/net/sf/l2j/L2Config.java
===================================================================
--- /trunk/Eclipse-Game/java/net/sf/l2j/L2Config.java (revision 121)
+++ /trunk/Eclipse-Game/java/net/sf/l2j/L2Config.java (revision 126)
@@ -794,5 +794,7 @@
    public static float			POLE_VS_LIGHT;
    public static float			POLE_VS_ROBE;
-
+    public static int           FRONT_BLOW_SUCCESS;
+    public static int           SIDE_BLOW_SUCCESS;
+    public static int           BEHIND_BLOW_SUCCESS;
    
    // Packet information
@@ -1341,4 +1343,7 @@
                POLE_VS_ROBE       = Float.parseFloat(cbSettings.getProperty("PoleVsHeavy", "1.80"));
              
+                FRONT_BLOW_SUCCESS   = Integer.parseInt(cbSettings.getProperty("FrontBlowSuccess", "50"));
+                SIDE_BLOW_SUCCESS    = Integer.parseInt(cbSettings.getProperty("SideBlowSuccess", "60"));
+                BEHIND_BLOW_SUCCESS  = Integer.parseInt(cbSettings.getProperty("BehindBlowSuccess", "70"));
            }
            catch (Exception e)

 

Credits: L2JForum. ONLY.

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


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