jayates

Member
ServUO Version
Publish Unknown
Ultima Expansion
Endless Journey
Just wondering if there is a way to set Hiding to be able to get a benefit from the higher skill; at 120 Hiding being able to hide even if in direct combat.
 
Hiding skill value is used against detecthidden skill value, so 120 is not useless

you could always edit Hiding.cs any way you want:

Original:
C#:
            int skill = Math.Min(100, (int)m.Skills[SkillName.Hiding].Value);
            int range = Math.Min((100 - skill) / 2 + 8, 18);    //Cap of 18 not OSI-exact, intentional difference

            bool badCombat = (!m_CombatOverride && m.Combatant is Mobile && m.InRange(m.Combatant.Location, range) && ((Mobile)m.Combatant).InLOS(m.Combatant));
            bool ok = (!badCombat /*&& m.CheckSkill( SkillName.Hiding, 0.0 - bonus, 100.0 - bonus )*/);

If 120 don't check combat (ugly code):
C#:
            int skill = Math.Min(100, (int)m.Skills[SkillName.Hiding].Value);
            int range = Math.Min((100 - skill) / 2 + 8, 18);    //Cap of 18 not OSI-exact, intentional difference

            bool badCombat = (!m_CombatOverride && m.Combatant is Mobile && m.InRange(m.Combatant.Location, range) && ((Mobile)m.Combatant).InLOS(m.Combatant));
            if ( m.Skills[SkillName.Hiding].Value >= 120)
              badCombat = false;
            bool ok = (!badCombat /*&& m.CheckSkill( SkillName.Hiding, 0.0 - bonus, 100.0 - bonus )*/);
 
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back