--Calculed by ta4e--
--For tibia 8.5--
--Made in 11/10/09--
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)
function getCombatFormulas(cid, lv, maglv)
local formula_min = -((lv*0.25 + maglv*3) * 1.75)
local formula_max = -((lv*0.25 + maglv*3) * 2.20)
if(formula_max < formula_min) then
local tmp = formula_max
formula_max = formula_min
formula_min = tmp
end
return formula_min, formula_max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
nah, it uses lvl. when i gave my self lvl to 100, and used it then i hited 500-800, then i gave my self lvl to 15k, i hited about 20k.@ ^ that uses magic level.
nah, it uses lvl. when i gave my self lvl to 100, and used it then i hited 500-800, then i gave my self lvl to 15k, i hited about 20k.
How do i do the same as this sd on Ultimate Healing Rune?
local formula_max = -((lv*0.25 + maglv*3) * 2.20)
-((lv*0.25 + maglv*3) * 2.20)
lv*0.25 + maglv*3
maglv
[SIZE="4"][COLOR="Red"]maglv[/COLOR][/SIZE]
Oh excuse me, I assumed you can read. Here;
Code:local formula_max = -((lv*0.25 + maglv*3) * 2.20)
Code:-((lv*0.25 + maglv*3) * 2.20)
Code:lv*0.25 + maglv*3
Code:maglv
Code:[SIZE="4"][COLOR="Red"]maglv[/COLOR][/SIZE]