Nabolas

Member
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Using the following LockpickTrainer.cs script for players to easily gain lockpicking and remove trap. However for some reason that I can't figure out players can only gain up to 64.1 in both skills. I have checked that players are not even close to the skill caps.

LockpickTrainer.cs:
            if (Utility.RandomDouble() < 0.5)
            {
                Locked = false;
                from.SendMessage("You successfully lockpicked the chest!");
                
                if (from.Skills[SkillName.Lockpicking].Value < from.Skills[SkillName.Lockpicking].Cap)
                {
                    from.Skills[SkillName.Lockpicking].Base += 0.1;
                }
            }
 

Attachments

  • LockpickTrainer.cs
    5.9 KB · Views: 4
This one works fine, you can even props it in game and change the skill level. Used it for years
 

Attachments

  • LockpickTrainer.cs
    2.2 KB · Views: 2
Ended up replacing
if (from.Skills[SkillName.Lockpicking].Value < from.Skills[SkillName.Lockpicking].Cap)
{
from.Skills[SkillName.Lockpicking].Base += 0.1;
}
with
from.CheckSkill(SkillName.Lockpicking, 0, 100);

Same for the remove trap skill gain portion of the script. This worked, now to work on the gump to make it look nice and fancy lol
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back