From f556a5a740396ae44b6f4318d4bbb3bebfaae6f0 Mon Sep 17 00:00:00 2001 From: WarrentyExpired Date: Fri, 7 Aug 2026 18:09:01 -0400 Subject: [PATCH] #W# Added bandage self command. --- Scripts/Commands/BandSelf.cs | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/Scripts/Commands/BandSelf.cs b/Scripts/Commands/BandSelf.cs index 1094120..f05b447 100644 --- a/Scripts/Commands/BandSelf.cs +++ b/Scripts/Commands/BandSelf.cs @@ -24,39 +24,6 @@ namespace Server.Commands from.SendMessage( 33, "You are already applying a bandage." ); return; } - - EnchantedBandage enchanted = from.Backpack.FindItemByType(); - - if (enchanted != null && enchanted.Charges > 0) - { - if ( EnchantedBandage.CooldownTable.ContainsKey( from ) && EnchantedBandage.CooldownTable[from] > DateTime.UtcNow ) - { - from.SendMessage( 33, "You must wait a moment before using an enchanted bandage again." ); - return; - } - - if (Utility.RandomDouble() < 0.30) - { - from.Poison = null; - from.Hits = from.HitsMax; - - from.PlaySound(0x1F2); - from.FixedParticles(0x376A, 9, 32, 5030, EffectLayer.Waist); - from.SendMessage(63, "The enchanted bandage glows brightly, instantly curing and fully healing you!"); - - EnchantedBandage.CooldownTable[from] = DateTime.UtcNow + TimeSpan.FromSeconds( 5 ); - } - else - { - if (BandageContext.BeginHeal(from, from) != null) - { - enchanted.Charges--; - } - } - - return; - } - Bandage bandage = from.Backpack.FindItemByType(); if (bandage != null)