Server.Items.BaseRejuvinationAnkh.OnMovement C# (CSharp) Method

OnMovement() public method

public OnMovement ( Mobile m, Point3D oldLocation ) : void
m Mobile
oldLocation Point3D
return void
		public override void OnMovement( Mobile m, Point3D oldLocation )
		{
			base.OnMovement( m, oldLocation );

			if ( m.Player && Utility.InRange( Location, m.Location, 3 ) && !Utility.InRange( Location, oldLocation, 3 ) )
			{
				if ( DateTime.Now >= m_NextMessage )
				{
					if ( Components.Count > 0 )
						((AddonComponent)Components[0]).SendLocalizedMessageTo( m, 1010061 ); // An overwhelming sense of peace fills you.

					m_NextMessage = DateTime.Now + TimeSpan.FromSeconds( 25.0 );
				}
			}
		}