Running Fatigue

Running Fatigue 1.1.0

Author
Felladrin
Downloads
52
Views
1,834
First release
Last update
Rating
0.00 star(s) 0 ratings
No permission to download Join the discussion More information

More resources from Felladrin

Running Fatigue

With this script, characters get tired regardless of their level when they run by foot.

screenshot.png


As it can unbalance UO combat, it's recommended only for RP shards.

Staff members are not affected.

Install

Drop this script anywhere inside your Scripts folder.

Then open Scripts/Misc/WeightOverloading.cs and, inside EventSink_Movement method, find:
Code:
if (((from.Stam * 100) / Math.Max(from.StamMax, 1)) < 10)
        --from.Stam;

if (from.Stam == 0)
{
        from.SendLocalizedMessage(500110); // You are too fatigued to move.
        e.Blocked = true;
        return;
}

if (from is PlayerMobile)
{
        int amt = (from.Mounted ? 48 : 16);
        PlayerMobile pm = (PlayerMobile)from;

        if ((++pm.StepsTaken % amt) == 0)
                --from.Stam;
}

Replace this block with the following:
Code:
Felladrin.Automations.RunningFatigue.Apply(from);

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back