Page 1 of 1

A few distro bugs

Posted: Sat Apr 22, 2006 11:12 am
by tekproxy
in /pkg/systems/attributes/include/vitals.inc, the comment on line 99 should be:

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
and also in skills.inc, same thing:

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

Posted: Sat Apr 22, 2006 11:59 am
by Yukiko
*claps hands*

Yay!!!

Someone is working on the Distro scripts!

I got them to compile. I would post the source files if anyone is interested.

I'll add your functions and changes to them Tekproxy.