ScriptUO

Official ScriptUO EasyUO Scripts => Site Scripter Libraries => UOMaddogs' Script Library => Topic started by: UOMaddog on December 31, 2012, 10:44:08 AM

Title: Maddog's Skill Locker
Post by: UOMaddog on December 31, 2012, 10:44:08 AM
PURPOSE:
To automatically lock skills when they reach a certain level.

INSTRUCTIONS:
1. Hit Play!
2. Select up to 3 skills and specify a threshold when the skill will be locked
3. Press Watch Skills
4. If you need to change skills or thresholds, click Pause, change the skills/thresholds and then press Watch Skills
5. Enjoy!

VERSION HISTORY:
Version 1.0
- First public release

Please Note:
- Skill threshold CAN NOT contain periods (decimal places). Please enter it like...
     - 100.0 would be 1000
     - 75.0 would be 750
     - etc
Title: Re: Maddog's Skill Locker
Post by: Fabolous1 on April 27, 2020, 12:36:13 PM
Doesn't support going down in skill. For example, if my template is maxed and I want to reduce to 99 necromancy it locks at 99.5 instead of 99.0 with 990 in the field.
Title: Re: Maddog's Skill Locker
Post by: UOMaddog on August 19, 2020, 05:38:32 PM
Correct, it will only do it if skill >= to cap.

You COULD alter the script on line 72 from:

if ( ( #skill >= %2 ) && ( #skilllock <> locked ) )

to:

if ( ( #skill = %2 ) && ( #skilllock <> locked ) )

but the risk of doing that is if it SKIPS the exact number, (like if a skill goes up 0.4 and forces your other skill down 0.4) then it won't lock!