Hi people from OtLand!
I'm having some doubts about making a rune. In this lua script (quoted) is a rune that hit according to Level and Magic Level. I want it to hit the same amount of damage, independing of the Level or Magic level. I would like it to hit something like, every time 30, not needing level or magic level. Could you guys help me out?
I'm having some doubts about making a rune. In this lua script (quoted) is a rune that hit according to Level and Magic Level. I want it to hit the same amount of damage, independing of the Level or Magic level. I would like it to hit something like, every time 30, not needing level or magic level. Could you guys help me out?
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIOAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EXPLOSION)
function onGetFormulaValues(cid, level, maglevel)
local min = (-level * 1 - maglevel * 4) * 1.45
local max = (-level * 1 - maglevel * 4) * 1.85
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end