Hi,
I got two questions
First, the logic of this formula in red
Second, Can put the formula of Sudden Death with level Magic + current character level?
Thank you
I got two questions
First, the logic of this formula in red
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)
Second, Can put the formula of Sudden Death with level Magic + current character level?
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 + CURRENT_CHARACTER_LEVEL , -1, -60, -1, -60, 5, 5, 4, 7)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Thank you