Server.Items.Ankhs.Resurrect C# (CSharp) Method

Resurrect() public static method

public static Resurrect ( Server.Mobile m, Item item ) : void
m Server.Mobile
item Item
return void
		public static void Resurrect( Mobile m, Item item )
		{
			if ( m.Alive )
				return;

			if ( !m.InRange( item.GetWorldLocation(), ResurrectRange ) )
				m.SendLocalizedMessage( 500446 ); // That is too far away.
			else if( m.Map != null && m.Map.CanFit( m.Location, 16, false, false ) )
			{
				m.CloseGump( typeof( ResurrectGump ) );
				m.SendGump( new ResurrectGump( m, ResurrectMessage.VirtueShrine ) );
			}
			else
				m.SendLocalizedMessage( 502391 ); // Thou can not be resurrected there!
		}

Usage Example

コード例 #1
0
ファイル: Ankhs.cs プロジェクト: tflynt91/TrueUO
 public override void OnMovement(Mobile m, Point3D oldLocation)
 {
     if (Parent == null && Utility.InRange(Location, m.Location, 1) && !Utility.InRange(Location, oldLocation, 1))
     {
         Ankhs.Resurrect(m, this);
     }
 }
All Usage Examples Of Server.Items.Ankhs::Resurrect