using System;
using Server;
using System.Reflection;
using Server.Network;
using Server.Commands;
namespace Server.Commands
{
public class OwnerHideCommand
{
public static void Initialize()
{
CommandSystem.Register( "FHide", AccessLevel.Counselor, new CommandEventHandler( FHide_OnCommand ) );
}
[Usage( "FHide" )]
[Description( "Hides and Shows a gm with a Flame efect." )]
private static void FHide_OnCommand( CommandEventArgs e )
{
Mobile m = e.Mobile;
m.PlaySound( 0x208 );
Effects.SendLocationEffect(new Point3D(m.X, m.Y, m.Z + 1), m.Map, 0x3709, 12 ); // 0
Effects.SendLocationEffect(new Point3D(m.X + 1, m.Y - 1, m.Z), m.Map, 0x3709, 13 ); // 1
Effects.SendLocationEffect(new Point3D(m.X + 1, m.Y + 1, m.Z), m.Map, 0x3709, 13 ); // 3
Effects.SendLocationEffect(new Point3D(m.X - 1, m.Y + 1, m.Z), m.Map, 0x3709, 13 ); // 5
Effects.SendLocationEffect(new Point3D(m.X - 1, m.Y - 1, m.Z), m.Map, 0x3709, 13 ); // 7
Effects.SendLocationEffect(new Point3D(m.X + 2, m.Y - 2, m.Z), m.Map, 0x3709, 14 ); // 1
Effects.SendLocationEffect(new Point3D(m.X + 2, m.Y + 2, m.Z), m.Map, 0x3709, 14 ); // 3
Effects.SendLocationEffect(new Point3D(m.X - 2, m.Y + 2, m.Z), m.Map, 0x3709, 14 ); // 5
Effects.SendLocationEffect(new Point3D(m.X - 2, m.Y - 2, m.Z), m.Map, 0x3709, 14 ); // 7
if( e.Mobile.Hidden == false )
e.Mobile.Hidden = true;
else
e.Mobile.Hidden = false;
}
}
}