• 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!

Lua How to read this formula?

Legnak Bqm

New Member
Joined
Mar 25, 2010
Messages
120
Reaction score
1
Location
Venezuela
Hi guys i need know how read this formula: setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 5, 25)
Example: A Player level 100 with magic level 60 throws a min hit 500 and max hit 550.

Can you say me how?
Regards
 
min = characters level divided with five then added to characters magic level times five
max = characters level divided with five then added to characters magic level timse TWENTYfive

e.g: character lvl 100 ml 60
min = 100 / 5 (= 20) + 60 * 5 (= 300) = 320
max = 100 / 5 (= 20) + 60 * 25 (= 1500) = 1520
another, character lvl 25 ml 15
min = 25 / 5 (= 5) + 15 * 5 (=75) = 80
max = 25 / 5 (= 5) + 15 * 25 (= 375) = 380

Got it? Then please REP++
 
The first two fives are for your level. If you are level 100, it will be shared by 5 , means you will hit 20. If you are level 20, shared by five, you will hit minimum 4.
Remember: At every real tibia formula for your level is 5!

The other five and the twenty-five have to deal with your magic level. It is your magic level times 5 and times 25. So if you are magic level 60, your min damage (only counted from your magic level) will be 60x5=300 and 60x25 = 1500.

Minimum damage will be (the outcome of your level / 5) 20 plus (magic level 60 times 5) 300 = 320
Maximum damage will be (the outcome of your level / 5) 20 plus (magic level 60 times 25) 1500 = 1520

Hope you will understand it now.
 
Back
Top