27 lines
No EOL
557 B
C#
27 lines
No EOL
557 B
C#
using System;
|
|
using Server;
|
|
|
|
namespace Server
|
|
{
|
|
public static class MondainsLegacy
|
|
{
|
|
public static bool CheckML( Mobile from )
|
|
{
|
|
return CheckML( from, true );
|
|
}
|
|
|
|
public static bool CheckML( Mobile from, bool message )
|
|
{
|
|
if ( from == null || from.NetState == null )
|
|
return false;
|
|
|
|
if ( from.NetState.SupportsExpansion( Expansion.ML ) )
|
|
return true;
|
|
|
|
if ( message )
|
|
from.SendLocalizedMessage( 1072791 ); // You must upgrade to Mondain's Legacy in order to use that item.
|
|
|
|
return false;
|
|
}
|
|
}
|
|
} |