|
||
|
|||||||
| New Join Forum So your new to RunUO and looking to work with people that are new, this is the place. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Posts: 120
|
or do the SVN numbers start after the release of RC1? I'm looking for a fix for the obeycap problem in RC1
HTML Code:
there is a bug in RC1 that obeycap = false does not work so jewelry or other bonuses (incluing GM's setting skill higher) wil not work above the caps Thanks, -GhostRiderGrey |
|
|
|
|
|
#3 (permalink) |
|
Forum Novice
|
Get the sources for RC1 and check the Skills.cs, it should contain this (or similar) method for checking the caps (and some other stuff as well):
Code:
[CommandProperty( AccessLevel.Counselor )]
public double NonRacialValue
{
get
{
double baseValue = Base;
double inv = 100.0 - baseValue;
if( inv < 0.0 ) inv = 0.0;
inv /= 100.0;
double statsOffset = ((m_UseStatMods ? m_Owner.Owner.Str : m_Owner.Owner.RawStr) * m_Info.StrScale) + ((m_UseStatMods ? m_Owner.Owner.Dex : m_Owner.Owner.RawDex) * m_Info.DexScale) + ((m_UseStatMods ? m_Owner.Owner.Int : m_Owner.Owner.RawInt) * m_Info.IntScale);
double statTotal = m_Info.StatTotal * inv;
statsOffset *= inv;
if( statsOffset > statTotal )
statsOffset = statTotal;
double value = baseValue + statsOffset;
m_Owner.Owner.ValidateSkillMods();
List<SkillMod> mods = m_Owner.Owner.SkillMods;
double bonusObey = 0.0, bonusNotObey = 0.0;
for( int i = 0; i < mods.Count; ++i )
{
SkillMod mod = mods[i];
if( mod.Skill == (SkillName)m_Info.SkillID )
{
if( mod.Relative )
{
if( mod.ObeyCap )
bonusObey += mod.Value;
else
bonusNotObey += mod.Value;
}
else
{
bonusObey = 0.0;
bonusNotObey = 0.0;
value = mod.Value;
}
}
}
value += bonusNotObey;
if( value < Cap )
{
value += bonusObey;
if( value > Cap )
value = Cap;
}
return value;
}
}
If the method in your Skills.cs is different, use the one above and try to recompile the core with hopes that it wont break anything else ![]() |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Posts: 120
|
Thanks Alrick, unfortunately the code you listed for skills.cs is the same as what I used to compile from.
I'm still looking for a fix for the obeycap problem in RC1. Also trying to verify what SVN number RC1 was. Any further help appreciated. Thanks -GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much. Visit the Whispering Pines shard website at wp.dyndns.org |
|
|
|
|
|
#5 (permalink) |
|
Master of the Internet
Join Date: Apr 2005
Location: Nowhere
Age: 21
Posts: 11,653
|
Try around 187?
__________________
-Socks are great. Ask Radwen. http://www.runuo.com/forums/starbucks-runuo-com/76473-ask-radwen.html |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|