- Joined
- Dec 26, 2013
- Messages
- 1,635
- Solutions
- 11
- Reaction score
- 880
Hello Otland I was wondering if I could get just a little help here with damage calculations. I have a wand I have made and the damage it does is good but it increases with level and magic level (I want it that way) and this becomes a problem if a level 100 sorceror is running around with ml 80 doing 100+ damage each hit and this is the weakest wand. So I want to set a max if the max goes above my secondary max then max is now the second max... Here is example that doesn't work...
And Secondly I would like to invite anyone to help me with trying to get the target's total arm value to take into consideration for the damage process, seeing as how with the above method arm becomes pointless....
I figure useing getArmor() method would be how its done I just can't get my head around how to go about doing it, and there aren't many examples here on otland, just search "getarmor" and see how few results return....
Code:
function onGetFormulaValues(cid, level, maglevel)
min = -((level * 0.2 + maglevel * 1.5) + 1)
max = -((level * 0.3 + maglevel * 1.8) + 1)
if max >= -2 then max = -2
end
return min, max
end
And Secondly I would like to invite anyone to help me with trying to get the target's total arm value to take into consideration for the damage process, seeing as how with the above method arm becomes pointless....
I figure useing getArmor() method would be how its done I just can't get my head around how to go about doing it, and there aren't many examples here on otland, just search "getarmor" and see how few results return....