T
tejdi
Guest
Hello everyone!
1st question: Did the UHs formula change since 7.4 or 1.x the tfs have the same/similar formula?
2nd question: If it is changed, does anybody have the formula for old UHs for the 1.x tfs?
My actual UHs formula:
1st question: Did the UHs formula change since 7.4 or 1.x the tfs have the same/similar formula?
2nd question: If it is changed, does anybody have the formula for old UHs for the 1.x tfs?
My actual UHs formula:
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
combat:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 7.3) + 42
local max = (level / 5) + (maglevel * 12.4) + 90
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end