RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Please Help Skill Caps

Quankido

Wanderer
This is what im trying to obtain and am not being very successful

a char makes it to 100 magery, uses scroll to get 120 magery, holds a +10 magery item and gets 130 magery. I cannot figure out how to allow it to go over cap only w items, I don't want them to be able to work a skill past 120 but I want items to be able to make them go past 120, please help!!! been on this one for days.
 
In the AOS.cs file look for the following section:
Code:
        public void AddTo( Mobile m )
        {
            Remove();
 
            for ( int i = 0; i < 5; ++i )
            {
                SkillName skill;
                double bonus;
 
                if ( !GetValues( i, out skill, out bonus ) )
                    continue;
 
                if ( m_Mods == null )
                    m_Mods = new ArrayList();
 
                SkillMod sk = new DefaultSkillMod( skill, true, bonus );
                sk.ObeyCap = true;
                m.AddSkillMod( sk );
                m_Mods.Add( sk );
            }
        }

Change the sk.ObeyCap to false and that will allow players to equip items that take them over their characters cap in skills.
 
Top