hello i have a script that i converted from a ih to a manarune, but the problem is that when some one is using the manarune and then wants to heal right after he/she gets a exhaust on there healing spells.. this makes many of my players mad
well this is the script:
does anyone know how i can fix the rune so it dont exuasts with the healing spells? (A)
well this is the script:
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function getCombatFormulas(cid, lv, maglv)
local formula_min = ((lv*2.20 + maglv*3) * 1.0)
local formula_max = ((lv*2.20 + maglv*3) * 1.0)
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
does anyone know how i can fix the rune so it dont exuasts with the healing spells? (A)