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

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

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