• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Spell formual what is what?

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
what do this mean in the spell formula?
{-3.5, -30, -2.1, 3}
 
Code:
combat object, formula type, -1, 0, -1, 0, minl, maxl, minm, maxm, -min, -max

-min = if calculated damage will be lower than this value, it will be automatically raised to this value
-max = if calculated damage will be higher than this value, it will be automatically lowered to this value

Rest used for this operation:
Code:
min = (int32_t)((player->getLevel() / minl + player->getMagicLevel() * minm) * 1. * mina + minb);
max = (int32_t)((player->getLevel() / maxl + player->getMagicLevel() * maxm) * 1. * maxa + maxb);

Idk how to explain better :/
 
Code:
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 0, 4.8)
I took it from explosion rune, so it'll be like:
Code:
minl = 5, maxl = 5, minm = 0, maxm = 4.8

So for example, 150 knight with 8 magic level will hit:
Code:
min = (150 / 5 + 8 * 0) * 1. * -1 + 0
max = (150 / 5 + 8 * 4.8) * 1. * -1 + 1

Hmmm, lol seems like im wrong :|
 

Similar threads

Back
Top