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

COMBAT_FORMULA_LEVELMAGIC how to calculate?

GhostWD

I'm in love with the var_dump()
Joined
Jan 25, 2009
Messages
185
Solutions
6
Reaction score
29
Hello guys i've got problem i dont get it how to calculate this formula

Code:
case FORMULA_LEVELMAGIC:
                {
                    min = (int32_t)((player->getLevel() / minl + player->getMagicLevel() * minm) * 1. * mina + minb);
                    max = (int32_t)((player->getLevel() / maxl + player->getMagicLevel() * maxm) * 1. * maxa + maxb);
                    if(minc && std::abs(min) < std::abs(minc))
                        min = minc;

                    if(maxc && std::abs(max) < std::abs(maxc))
                        max = maxc;

                    player->increaseCombatValues(min, max, params.useCharges, true);
                    return true;

what to put instead of minl, minm etc... when i use only something like that
Code:
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1, 2, 3, 4)

could someone help me with that? because my calculations arent even compared to what dmg i give to monsters

i will appreciate all help attempts
With Regards Ghost :)
 
Back
Top