From 72ce92cf34dcefc5da853b1e9a9f50577a2b9b1e Mon Sep 17 00:00:00 2001 From: WarrentyExpired Date: Wed, 30 Sep 2026 08:10:01 -0400 Subject: [PATCH] #W# Added: Added a new [bandself command. --- .../Configuration/FeatureFlags/flags.json | 6 +-- .../Decoration/Underworld/Shame_Doors.cfg | 54 +++++++++++++++++++ Projects/UOContent/Commands/BandSelf.cs | 42 +++++++++++++++ 3 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 Distribution/Data/Decoration/Underworld/Shame_Doors.cfg create mode 100644 Projects/UOContent/Commands/BandSelf.cs diff --git a/Distribution/Configuration/FeatureFlags/flags.json b/Distribution/Configuration/FeatureFlags/flags.json index 08bf9ab8e..2ded58411 100644 --- a/Distribution/Configuration/FeatureFlags/flags.json +++ b/Distribution/Configuration/FeatureFlags/flags.json @@ -110,11 +110,11 @@ { "Key": "young_player_system", "Description": "Enable the young player system", - "Enabled": true, + "Enabled": false, "DefaultEnabled": true, "Category": "System", - "LastModified": "2026-09-21T12:58:21.3413169Z", - "LastModifiedBy": "System" + "LastModified": "2026-09-29T17:27:58.2253397Z", + "LastModifiedBy": "Dungeon Keeper" }, { "Key": "bitmap_pathfinding_cache", diff --git a/Distribution/Data/Decoration/Underworld/Shame_Doors.cfg b/Distribution/Data/Decoration/Underworld/Shame_Doors.cfg new file mode 100644 index 000000000..1a2e32759 --- /dev/null +++ b/Distribution/Data/Decoration/Underworld/Shame_Doors.cfg @@ -0,0 +1,54 @@ +#Level 3 +DarkWoodDoor 1709 (Facing=EastCCW) +1391 243 0 + +DarkWoodDoor 1711 (Facing=NorthCW) +1391 242 0 + +DarkWoodDoor 1701 (Facing=WestCW) +1378 246 0 + +DarkWoodDoor 1711 (Facing=NorthCCW) +1386 250 0 + +DarkWoodDoor 1711 (Facing=NorthCW) +1387 250 22 + +DarkWoodDoor 1701 (Facing=WestCCW) +1379 246 22 + +DarkWoodDoor 1709 (Facing=SouthCW) +1383 243 22 + +DarkWoodDoor 1703 (Facing=EastCW) +1389 239 22 + +DarkWoodDoor 1711 (Facing=NorthCW) +1385 236 22 + +DarkWoodDoor 1711 (Facing=NorthCCW) +1387 235 0 + +MetalDoor 1655 (Facing=EastCW) +1325 226 0 + +MetalDoor 1653 (Facing=WestCW) +1315 230 0 + +MetalDoor 1655 (Facing=EastCCW) +1316 230 0 + +MetalDoor 1661 (Facing=SouthCCW) +1312 227 0 + +MetalDoor 1663 (Facing=NorthCW) +1312 226 0 + +MetalDoor 1653 (Facing=WestCCW) +1314 215 0 + +MetalDoor 1653 (Facing=WestCCW) +1249 236 5 + +MetalDoor 1655 (Facing=EastCW) +1250 236 5 diff --git a/Projects/UOContent/Commands/BandSelf.cs b/Projects/UOContent/Commands/BandSelf.cs new file mode 100644 index 000000000..f05b44792 --- /dev/null +++ b/Projects/UOContent/Commands/BandSelf.cs @@ -0,0 +1,42 @@ +using System; +using Server; +using Server.Items; +using Server.Commands; +using Server.Mobiles; + +namespace Server.Commands +{ + public class BandSelf + { + public static void Initialize() + { + CommandSystem.Register("Bandself", AccessLevel.Player, new CommandEventHandler(Bandself_OnCommand)); + } + + [Usage("Bandself")] + [Description("Uses a bandage from the player's backpack on themselves.")] + public static void Bandself_OnCommand(CommandEventArgs e) + { + Mobile from = e.Mobile; + + if (BandageContext.GetContext(from) != null) + { + from.SendMessage( 33, "You are already applying a bandage." ); + return; + } + Bandage bandage = from.Backpack.FindItemByType(); + + if (bandage != null) + { + if (BandageContext.BeginHeal(from, from) != null) + { + bandage.Consume(); + } + } + else + { + from.SendMessage("You do not have any bandages in your backpack."); + } + } + } +}