SphereCommunity
Wep dam with strength - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Wep dam with strength (/Thread-Wep-dam-with-strength)



Wep dam with strength - Leonidas - 12-12-2016 04:59 PM

Where can I change the damage gain a player gets when equipping a weapon depending his strength? Like, at 10 str and i equip an axe, the damage is 14,17. At 20 str, the dam goes up to 14,18.


RE: Wep dam with strength - Coruja - 12-13-2016 02:57 AM

you can try CombatDamageEra setting on sphere.ini, this will allow you choose the damage formula between pre-AOS, AOS or sphere custom. Pre-AOS and AOS formulas add an damage bonus based on char tactics, anatomy, lumberjacking (if the weapon is an axe) and STR
https://github.com/Sphereserver/Source/blob/master/src/graysvr/CCharFight.cpp#L2248

or if you want another custom formula, you must create it using an event on player with @Hit to change ARGN1 value (damage amount)


RE: Wep dam with strength - Leonidas - 12-13-2016 02:23 PM

You're awesome man, thank you.