Hi, this is my SD rune config..
I know I can change the damage with -0.9 by changing it, but I want to change what it depends on, LEVEL/MAGIC LEVEL.
In other scripts I can find this:
Here I can change if it depends on level or magic level more or less. But how can I do that to the sudden death rune? THanks!!
Code:
local combat = createCombatObject()
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, -0.9, -30, -1.8, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I know I can change the damage with -0.9 by changing it, but I want to change what it depends on, LEVEL/MAGIC LEVEL.
In other scripts I can find this:
Code:
function onGetFormulaValues(cid, level, maglevel)
min = (level * 3 + maglevel * 1) * 1.8
max = (level * 3 + maglevel * 1) * 2.3
if min < 250 then
min = 250
end
return min, max
end
Here I can change if it depends on level or magic level more or less. But how can I do that to the sudden death rune? THanks!!