Skip to content

Alternative damage for dagger skills

Featured Replies

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

well added in l2jfree but for other packs useful thing :)

  • 9 months later...

Thanks i added to my pack :)

I think it's really useful to balance the server!

Make for other weapons too please!

  • 4 weeks later...

Thanks , i had serious problem with daggers.

thanks for sharing

 

I always have problems with daggers, this will help.

 

THX

  • 4 weeks later...

tested but not working..

  • Author

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;

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

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

works for me!

  • 3 months later...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.