Hello, I would like to put the damage to exori as player max health / 16. Would it be like this?
Or there is a better way to do this?
Lua:
function onGetFormulaValues(player, creature)
local maxHealth = creature:getMaxHealth()
local min = (maxHealth / 16)
local max = (maxHealth / 16) * 1,65
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
Or there is a better way to do this?