Hello, I would like to have a special script for UH (nevermind about the manarune, I'm skipping it for now). 
I want it to be so that knights heal more with it, so you should write "10.8" and "13.2" instead of "1.8" and "3.2" (but it should only work for knights to have the higher values. Is this possible or do I have to make a whole new UH for just knights that only they can use? Below is my current UH:
Hope you understand what I wanna do with it, if not, please tell me what you dont understand and I will try to explain it better ^^ Thanks!
I want it to be so that knights heal more with it, so you should write "10.8" and "13.2" instead of "1.8" and "3.2" (but it should only work for knights to have the higher values. Is this possible or do I have to make a whole new UH for just knights that only they can use? Below is my current UH:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function getCombatFormulas(cid, lv, maglv)
local formula_min = ((lv*0.25 + maglv*3) * 1.8)
local formula_max = ((lv*0.25 + maglv*3) * 3.2)
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
Hope you understand what I wanna do with it, if not, please tell me what you dont understand and I will try to explain it better ^^ Thanks!
Last edited: