Running Fatigue

Running Fatigue 1.1.0

Author
Felladrin
Downloads
55
Views
2,264
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

  • Unchained
    Custom (Classic)
    • Players
    • 138 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 90 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 87 Online
    • 190 Peak
  • Insane UO
    Endless Journey
    • Players
    • 83 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 33 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 28 Online
    • 30 Peak
  • Arth
    Custom (Modern)
    • Players
    • 22 Online
    • 34 Peak
  • Heritage
    New Legacy
    • Players
    • 20 Online
    • 41 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 19 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 19 Online
    • 172 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back