I have been trying to figure out how to get this working with magiclevel*skill*level and still cant figure how to get it.
Code:
function onGetFormulaValues(player, skill, attack, parmeter, factor)
local skillTotal = skill * attack
local levelTotal = player:getLevel() / 5
return -(((skillTotal * 0.02) + 4) + (levelTotal)), -(((skillTotal * 0.04) + 9) + (levelTotal) + 2 * skill)
end