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 )
{
}
}
}