#W# Exhuation system implimented. And Food has been tweaked.

This commit is contained in:
WarrentyExpired 2026-07-24 21:01:31 -04:00
parent 6cb014d51c
commit 15bb9dccb8
9 changed files with 211 additions and 181 deletions

View file

@ -9,46 +9,42 @@ namespace Server.Scripts.Commands
{
public static void Initialize()
{
// Register the command so players can use [Vitals
CommandSystem.Register("Vitals", AccessLevel.Player, new CommandEventHandler(Vitals_OnCommand));
}
[Usage("Vitals")]
[Description("Displays your current hunger and thirst status.")]
[Description("Displays your current hunger and thirst status.")
public static void Vitals_OnCommand(CommandEventArgs e)
{
Mobile m = e.Mobile;
if (m is PlayerMobile)
{
// Standard UO Hues
int greenHue = 63;
int orangeHue = 43;
int redHue = 33;
// --- Hunger Status ---
if (m.Hunger >= 16)
m.SendMessage(greenHue, "You are completely full and not hungry at all.");
else if (m.Hunger >= 11)
m.SendMessage(greenHue, "Your stomach gives a slight rumble.");
else if (m.Hunger >= 6)
m.SendMessage(orangeHue, "You are starting to feel hungry.");
if (m.Hunger >= 75)
m.SendMessage(greenHue, "You are completely full and feeling invigorated.");
else if (m.Hunger >= 50)
m.SendMessage(greenHue, "You are satiated and not hungry.");
else if (m.Hunger >= 25)
m.SendMessage(orangeHue, "Your stomach gives a slight rumble. You should eat soon.");
else if (m.Hunger >= 1)
m.SendMessage(redHue, "You are getting extremely hungry. You should eat soon!");
m.SendMessage(redHue, "You are getting extremely hungry and feel weak!");
else
m.SendMessage(redHue, "You are starving to death!");
m.SendMessage(redHue, "You are starving to death!");
// --- Thirst Status ---
if (m.Thirst >= 16)
m.SendMessage(greenHue, "You are perfectly hydrated and not thirsty.");
else if (m.Thirst >= 11)
m.SendMessage(greenHue, "Your mouth feels a little dry.");
else if (m.Thirst >= 6)
m.SendMessage(orangeHue, "You are starting to feel thirsty.");
if (m.Thirst >= 75)
m.SendMessage(greenHue, "You are perfectly hydrated and refreshed.");
else if (m.Thirst >= 50)
m.SendMessage(greenHue, "You are not thirsty.");
else if (m.Thirst >= 25)
m.SendMessage(orangeHue, "Your mouth feels dry. You should drink soon.");
else if (m.Thirst >= 1)
m.SendMessage(redHue, "You are getting extremely thirsty. You should drink soon!");
m.SendMessage(redHue, "You are terribly thirsty and feel sluggish!");
else
m.SendMessage(redHue, "You are exhausted from thirst!");
m.SendMessage(redHue, "You are exhausted from thirst!");
}
}
}