A few distro bugs

Archive of posts related to former distro versions. Be aware that posts here do not refer to the current distro and may not work.
Locked
User avatar
tekproxy
Forum Regular
Posts: 352
Joined: Thu Apr 06, 2006 5:11 pm

A few distro bugs

Post 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
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post 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.
Locked