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,44 @@
using System;
using Server;
using Server.Items;
using Server.Commands;
namespace Server.Commands
{
public class Bandself
{
public static void Initialize()
{
CommandSystem.Register( "BandSelf", AccessLevel.Player, new CommandEventHandler( BandSelf_OnCommand ) );
}
[Usage( "BandSelf" )]
public static void BandSelf_OnCommand( CommandEventArgs e )
{
Mobile from = e.Mobile;
if( from != null)
{
Container backpack = from.Backpack;
if( backpack != null )
{
Bandage bandage = (Bandage) backpack.FindItemByType( typeof( Bandage ) );
if ( bandage != null )
{
Targeting.Target.Cancel( from );
from.RevealingAction();
if ( BandageContext.BeginHeal( from, from ) != null )
bandage.Consume();
}
else
e.Mobile.SendMessage( "Cannot find bandage." );
}
else
from.SendMessage( "You don't have a Backpack." );
}
}
}
}