Server.Spells.SpellHelper.SendInvalidMessage C# (CSharp) Метод

SendInvalidMessage() публичный статический Метод

public static SendInvalidMessage ( Mobile caster, TravelCheckType type ) : void
caster Mobile
type TravelCheckType
Результат void
		public static void SendInvalidMessage( Mobile caster, TravelCheckType type )
		{
			if( type == TravelCheckType.RecallTo || type == TravelCheckType.GateTo )
				caster.SendLocalizedMessage( 1019004 ); // You are not allowed to travel there.
			else if( type == TravelCheckType.TeleportTo )
				caster.SendLocalizedMessage( 501035 ); // You cannot teleport from here to the destination.
			else
				caster.SendLocalizedMessage( 501802 ); // Thy spell doth not appear to work...
		}