Hey OTland,
so recently I've been noticing that the manarune that I have is giving the same amount to every voc in my OT (8.6), and that is affecting the balance in all the vocs, so my solution to this is to multiply the amount given by lets say half for knight, So in the script to the manarune you add "x 0,5 if Voc Knight, x 0,75 if Voc paladin", that will reduce the amount of given mana to Knights by 50 % and to Paladins by 25 %.
Now the problem is that I don't have enough experience in programming and scripting to do this, so I am asking if any of you guys might help me out, I would appreciate it very much!
Here is the Script
Thanks in advance!
Mernes
so recently I've been noticing that the manarune that I have is giving the same amount to every voc in my OT (8.6), and that is affecting the balance in all the vocs, so my solution to this is to multiply the amount given by lets say half for knight, So in the script to the manarune you add "x 0,5 if Voc Knight, x 0,75 if Voc paladin", that will reduce the amount of given mana to Knights by 50 % and to Paladins by 25 %.
Now the problem is that I don't have enough experience in programming and scripting to do this, so I am asking if any of you guys might help me out, I would appreciate it very much!
Here is the Script
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)
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 950)
function getCombatFormulas(cid, lv, maglv)
local formula_min = ((lv*2.5 + maglv*3.7) + 100 * 1.0)
local formula_max = ((lv*3 + maglv*4.6) + 100 * 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
Thanks in advance!
Mernes