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

Spell formula damage

Ward_214

Pro PvP
Joined
Dec 11, 2008
Messages
297
Reaction score
0
Can anyone help with explaining the damage formula on the spells and attack runes(Ex below: Sudden Death Rune)

Code:
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, 20, 20)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end


How does the numbers add up? (-1, -60, -1, -60, 5, 5, 20, 20)
 
Last edited:
//setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])
Code:
combat = combat
type = COMBAT_FORMULA_LEVELMAGIC
mina = -1
minb = -60
maxa = -1
maxb = -60
minl = 5
maxl = 5
minm = 20
maxm = 20
min = (int32_t)((player->getLevel() / minl + player->getMagicLevel() * minm) * 1. * mina + minb);
max = (int32_t)((player->getLevel() / maxl + player->getMagicLevel() * maxm) * 1. * maxa + maxb);
 
Last edited:
Back
Top