- Removed the ASCII 0x7F control character from safe character lists.
- Added the TraceLockdown command. - Fixed a missing conflicting layer check for FishingPole. - Controlled and summoned creatures are no longer affected by the confusion blast potion effect.
This commit is contained in:
parent
512ab4bfbf
commit
11f84a33cd
8 changed files with 69 additions and 8 deletions
|
|
@ -58,6 +58,7 @@ namespace Server.Commands.Generic
|
|||
Register( new Factions.FactionKickCommand( Factions.FactionKickType.Ban ) );
|
||||
Register( new Factions.FactionKickCommand( Factions.FactionKickType.Unban ) );
|
||||
Register( new BringToPackCommand() );
|
||||
Register( new TraceLockdownCommand() );
|
||||
}
|
||||
|
||||
private static List<BaseCommand> m_AllCommands = new List<BaseCommand>();
|
||||
|
|
@ -1079,4 +1080,42 @@ namespace Server.Commands.Generic
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class TraceLockdownCommand : BaseCommand
|
||||
{
|
||||
public TraceLockdownCommand()
|
||||
{
|
||||
AccessLevel = AccessLevel.Administrator;
|
||||
Supports = CommandSupport.Simple;
|
||||
Commands = new string[] { "TraceLockdown" };
|
||||
ObjectTypes = ObjectTypes.Items;
|
||||
Usage = "TraceLockdown";
|
||||
Description = "Finds the BaseHouse for which a targeted item is locked down or secured.";
|
||||
}
|
||||
|
||||
public override void Execute( CommandEventArgs e, object obj )
|
||||
{
|
||||
Item item = obj as Item;
|
||||
|
||||
if ( item == null )
|
||||
return;
|
||||
|
||||
if ( !item.IsLockedDown && !item.IsSecure )
|
||||
{
|
||||
LogFailure( "That is not locked down." );
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ( BaseHouse house in BaseHouse.AllHouses )
|
||||
{
|
||||
if ( house.IsSecure( item ) || house.IsLockedDown( item ) )
|
||||
{
|
||||
e.Mobile.SendGump( new PropertiesGump( e.Mobile, house ) );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
LogFailure( "No house was found." );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue