Jump to content

Recommended Posts

Posted
Index: /L2_GameServer_It/java/net/sf/l2j/Config.java
===================================================================

@@ -1541,4 +1541,7 @@

+	public static float	  ALT_DAGGER_DMG_VS_HEAVY;
+	public static float	  ALT_DAGGER_DMG_VS_ROBE;
+	public static float	  ALT_DAGGER_DMG_VS_LIGHT;
+
     /** Allow warehouse ? */
    public static boolean         ALLOW_WAREHOUSE;

@@ -3651,4 +3654,8 @@

+				ALT_DAGGER_DMG_VS_HEAVY         = Float.parseFloat(optionsSettings.getProperty("DaggerVSHeavy", "2.50"));
+				ALT_DAGGER_DMG_VS_ROBE          = Float.parseFloat(optionsSettings.getProperty("DaggerVSRobe", "1.80"));
+				ALT_DAGGER_DMG_VS_LIGHT         = Float.parseFloat(optionsSettings.getProperty("DaggerVSLight", "2.00"));
+
                ALLOW_WAREHOUSE                 = Boolean.valueOf(optionsSettings.getProperty("AllowWarehouse", "True"));

Index: /L2_GameServer_It/java/net/sf/l2j/gameserver/skills/Formulas.java
===================================================================

@@ -1231,4 +1231,20 @@
		}

+
+		if (target instanceof L2PcInstance && weapon != null && weapon.getItemType() == L2WeaponType.DAGGER && skill != null)
+		{
+			L2Armor armor = ((L2PcInstance) target).getActiveChestArmorItem();
+			if (armor != null)
+			{
+				if (((L2PcInstance) target).isWearingHeavyArmor())
+					damage /= Config.ALT_DAGGER_DMG_VS_HEAVY;
+				if (((L2PcInstance) target).isWearingLightArmor())
+					damage /= Config.ALT_DAGGER_DMG_VS_LIGHT;
+				if (((L2PcInstance) target).isWearingMagicArmor())
+					damage /= Config.ALT_DAGGER_DMG_VS_ROBE;
+			}
+		}
+
+		
		if (attacker instanceof L2NpcInstance)
		{
Index: /L2_GameServer_It/config/options.properties
===================================================================

@@ -83,4 +83,11 @@

+# Alternative damage for dagger skills.
+DaggerVSHeavy = 2.50
+DaggerVSRobe = 1.80
+DaggerVSLight = 2.00
+	 
# =================================================================
# Additionnal features that can be enabled or disabled
# =================================================================
# feel free to disable them here. (They are both enabled by default).
AllowWarehouse   = True

  • 9 months later...
  • 4 weeks later...
  • 4 weeks later...
Posted

tested but not working..

How can it to not works ?

 

Is really simple if target is waring light damage /= Config.ALT_DAGGER_DMG_VS_LIGHT;

Posted

How can it to not works ?

 

Is really simple if target is waring light damage /= Config.ALT_DAGGER_DMG_VS_LIGHT;

dunno i applied the patch exactly as it says in the first post and change the config but still same dmg..

  • 3 months 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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock