well you can remove the set combat formula becuz it is hard to understant its formula and use a easy one like that
function onGetFormulaValues(cid, level, skill, attack, factor)
local min, max= level, level+5
return -min, -max
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE...