Hey, on my server i want to change from the potion system to the rune system. And when i looked over the script. it was not very useful for knights and paladins.
Is it possible to make so the vocations get an own formula?
Example:
after this:
"(level * 1 + maglevel * 4) * 2.08"
if vocation sorcerer/druid
add * 1 end of script
if vocation paladin
add * 1.5 end of script
if vocation knight
add * 2 end of script
(WONT BE THIS VALUES), just an example.
So if you are an knight in level 150 with magic level 9, healing will be:
min:
min = (level * 1 + maglevel * 4) * 2.08 * 2
= (150 * 1 + 9 * 4) * 2.08 * 2
= 150 + 36 * 2.08 * 2 = 773.76 ~ 774
max:
max = (level * 1 + maglevel * 4) * 2.7 * 2
= (150 * 1 + 9 * 4) * 2.7 * 2
= 150 + 36 * 2.7 * 2 = 1004.4 ~ 1004
pretty balanced eh?
post ur opinions and the solution of the vocation thing
Thx :wub:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
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 onGetFormulaValues(cid, level, maglevel)
min = (level * 1 + maglevel * 4) * 2.08
max = (level * 1 + maglevel * 4) * 2.7
if min < 250 then
min = 250
end
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Is it possible to make so the vocations get an own formula?
Example:
after this:
"(level * 1 + maglevel * 4) * 2.08"
if vocation sorcerer/druid
add * 1 end of script
if vocation paladin
add * 1.5 end of script
if vocation knight
add * 2 end of script
(WONT BE THIS VALUES), just an example.
So if you are an knight in level 150 with magic level 9, healing will be:
min:
min = (level * 1 + maglevel * 4) * 2.08 * 2
= (150 * 1 + 9 * 4) * 2.08 * 2
= 150 + 36 * 2.08 * 2 = 773.76 ~ 774
max:
max = (level * 1 + maglevel * 4) * 2.7 * 2
= (150 * 1 + 9 * 4) * 2.7 * 2
= 150 + 36 * 2.7 * 2 = 1004.4 ~ 1004
pretty balanced eh?
post ur opinions and the solution of the vocation thing
Thx :wub: