Server.SkillHandlers.Stealing.OnUse C# (CSharp) Méthode

OnUse() public static méthode

public static OnUse ( Mobile m ) : System.TimeSpan
m Mobile
Résultat System.TimeSpan
		public static TimeSpan OnUse( Mobile m )
		{
			if ( !IsEmptyHanded( m ) )
			{
				m.SendLocalizedMessage( 1005584 ); // Both hands must be free to steal.
			}
			else
			{
				m.Target = new Stealing.StealingTarget( m );
				m.RevealingAction();

				m.SendLocalizedMessage( 502698 ); // Which item do you want to steal?
			}

			return TimeSpan.FromSeconds( 10.0 );
		}
	}