Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,66 @@
// une petite commande .hungry parce que j'en ai marre de pas savoir si j'ai faim ou pas
// j'aurais pu faire plus simple pour la commande mais je voulais quelle soit integrable dans le Help
// elle affiche un pti gump mimi , qui vous donne num<75>riquement la valeur de votre faim et soif
/* a small hungry order because I have some enough of step knowledge if I am hungry or not
I could have made simpler for the order but I wanted which is integrable in Help it posts
a pti gump mimi, which numerically gives you the value of your hunger and thirst */
using System;
using Server;
using Server.Mobiles;
using Server.Network;
using Server.Gumps;
using Server.Commands;
namespace Server.Commands
{
public class Hungry
{
public static void Initialize()
{
CommandSystem.Register( "Hunger", AccessLevel.Player, new CommandEventHandler( Hungry_OnCommand ) );
CommandSystem.Register( "Thirst", AccessLevel.Player, new CommandEventHandler( Hungry_OnCommand ) );
}
[Usage( "Hunger || Thirst" )]
[Description( "Show your level of hunger and thirst." )]
public static void Hungry_OnCommand( CommandEventArgs e )
{
Mobile from = e.Mobile;
from.CloseGump( typeof( gumpfaim ) );
from.SendGump( new gumpfaim ( from ) );
}
}
}
namespace Server.Gumps
{
public class gumpfaim : Gump
{
public gumpfaim(Mobile caller) : base(0,0)
{
PlayerMobile from = (PlayerMobile)caller;
Closable = true;
Dragable = true;
AddPage(0);
AddBackground( 0, 0, /*295*/ 245, 144, 5054);
AddBackground( 14, 27, /*261*/ 211, 100, 3500);
AddLabel( 60, 62, from.Hunger < 6 ? 33 : 0, string.Format( "Hunger: {0} / 20", from.Hunger));
AddLabel( 60, 81, from.Thirst < 6 ? 33 : 0, string.Format( "Thirst: {0} / 20", from.Thirst));
AddItem( 8, 78, 8093);
AddItem( 19, 60, 4155);
}
public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
{
}
}
}

View File

@@ -0,0 +1,47 @@
// ___|========================|___
// \ | Written by Felladrin | / This script was released on RunUO Community under the GPL licensing terms.
// > | August 2013 | <
// /__|========================|__\ [Running Fatigue] - Current version: 1.0 (August 12, 2013)
namespace Server.Mobiles
{
public class RunningFatigue
{
public static void Initialize()
{
EventSink.Movement += new MovementEventHandler(EventSink_Movement);
}
public static void EventSink_Movement(MovementEventArgs e)
{
if (!(e.Mobile is PlayerMobile) || e.Mobile.AccessLevel > AccessLevel.Player || e.Mobile.Mount != null || !e.Mobile.Alive)
return;
if ((e.Direction & Direction.Running) != 0)
{
PlayerMobile pm = e.Mobile as PlayerMobile;
int steps;
if (pm.Skills.Focus.Value < 20)
steps = 8;
else if (pm.Skills.Focus.Value < 40)
steps = 7;
else if (pm.Skills.Focus.Value < 60)
steps = 6;
else if (pm.Skills.Focus.Value < 80)
steps = 4;
else
steps = 3;
if ((pm.StepsTaken % steps) == 0)
{
--pm.Stam;
if (pm.Stam == 1)
pm.PlaySound(pm.Female ? 816 : 1090);
}
}
}
}
}