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

Solved How to read formulas?

Xeikh

詠春 ☯
Joined
Oct 23, 2009
Messages
728
Reaction score
18
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
(Original Formula from SD)

Hello, how do i read that formula? if i use:

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

theres a low damage but if i do

setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -2, -60, 5, 5, 4, 7)

its higher.... but even lv 80 damages high, whats each number and how i make it a little stronger without loss balance?

Can please someone help me?
 
Last edited:
From source (function)
PHP:
//setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])

When type is COMBAT_FORMULA_LEVELMAGIC
PHP:
min = (int32_t)((player->getLevel() / minl + player->getMagicLevel() * minm) * 1. * mina + minb);
max = (int32_t)((player->getLevel() / maxl + player->getMagicLevel() * maxm) * 1. * maxa + maxb);
 
Back
Top