Hello guys, I would like a little help to use shield skill at damage formula.
Example, player has shield skill = 100, so formula will be (lvl) + (attack * 2) + (shield * 2).
I've tried this way, but it doesn't recognize the shield skill:
Example, player has shield skill = 100, so formula will be (lvl) + (attack * 2) + (shield * 2).
I've tried this way, but it doesn't recognize the shield skill:
Lua:
function onGetFormulaValues(player, skill, attack, shield)
local playlvl = player:getLevel()
local shield = player:getShieldSkill()
local min = (player:getLevel()) + (attack * 2) + (shield * 2)
local max = (player:getLevel()) + (attack * 2) + (shield * 2)
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")