• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Damage weapons error

El Man

«لَا إِلَٰهَ إِلَّا ٱللَّٰهُ»
Joined
Mar 23, 2013
Messages
161
Reaction score
33
Damage does not hit properly in spells , weapons


d1.png


d2.png

How to fix this problem .?
 
If you are using OTX like you mentioned on your last post then try checking data/XML/vocations.xml
and get sure if you have the correct numbers like this one
XML:
meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0"
 
You should use this function under setCombatParam

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -75, 0, -125)

Where -75 are min and -125 max so you can change this.

Then delete function onGetFormulaValues and setCombatCallback.
 
Looks like it doesn't work.
From his previous thread, He said it returns wrong numbers too.
If the solutions above didn't work, You might consider add this commit (although this is only for melee and distance weapons).
 
Post automatically merged:

Looks like it doesn't work.
From his previous thread, He said it returns wrong numbers too.
If the solutions above didn't work, You might consider add this commit (although this is only for melee and distance weapons).
melee / distance
its not help ;/
 
Last edited:
Back
Top