Code: Select all
* AP_GetVitalMaximumValue(mobile, vital_name)
in /pkg/systems/attributes/include/stats.inc, there might need to be some RecalcVitals(mobile), so vitals will update correctly:
Code: Select all
function AP_SetTrueStat(mobile, stat_name, points)
SetAttributeBaseValue(mobile, stat_name, CInt(CDbl(points) * 10.0));
RecalcVitals(mobile);
endfunction
function AP_SetStatMod(mobile, stat_name, points)
SetAttributeTemporaryMod(mobile, stat_name, CInt(CDbl(points) * 10.0));
RecalcVitals(mobile);
endfunction
Code: Select all
function AP_SetTrueSkill(mobile, skill_name, points)
SetAttributeBaseValue(mobile, skill_name, CInt(CDbl(points) * 10.0));
RecalcVitals(mobile);
endfunction
function AP_SetSkillMod(mobile, skill_name, points)
SetAttributeTemporaryMod(mobile, skill_name, CInt(CDbl(points) * 10.0));
RecalcVitals(mobile);
endfunction