diff --git a/Scripts/Engines/Help/PageQueue.cs b/Scripts/Engines/Help/PageQueue.cs index c0fab1397..253dd4afa 100644 --- a/Scripts/Engines/Help/PageQueue.cs +++ b/Scripts/Engines/Help/PageQueue.cs @@ -345,7 +345,7 @@ namespace Server.Engines.Help if ( !isStaffOnline ) entry.Sender.SendMessage( "We are sorry, but no staff members are currently available to assist you. Your page will remain in the queue until one becomes available, or until you cancel it manually." ); - if ( Email.SpeechLogPageAddresses != null && entry.SpeechLog != null ) + if ( Email.FromAddress != null && Email.SpeechLogPageAddresses != null && entry.SpeechLog != null ) SendEmail( entry ); } @@ -354,7 +354,7 @@ namespace Server.Engines.Help Mobile sender = entry.Sender; DateTime time = DateTime.Now; - MailMessage mail = new MailMessage( "RunUO", Email.SpeechLogPageAddresses ); + MailMessage mail = new MailMessage( Email.FromAddress, Email.SpeechLogPageAddresses ); mail.Subject = "RunUO Speech Log Page Forwarding"; diff --git a/Scripts/Misc/CrashGuard.cs b/Scripts/Misc/CrashGuard.cs index e6c64454b..8d7ea55cf 100644 --- a/Scripts/Misc/CrashGuard.cs +++ b/Scripts/Misc/CrashGuard.cs @@ -44,7 +44,7 @@ namespace Server.Misc { Console.Write( "Crash: Sending email..." ); - MailMessage message = new MailMessage( "RunUO", Email.CrashAddresses ); + MailMessage message = new MailMessage( Email.FromAddress, Email.CrashAddresses ); message.Subject = "Automated RunUO Crash Report"; @@ -237,7 +237,7 @@ namespace Server.Misc Console.WriteLine( "done" ); - if ( Email.CrashAddresses != null ) + if ( Email.FromAddress != null && Email.CrashAddresses != null ) SendEmail( filePath ); } catch diff --git a/Scripts/Misc/DataPath.cs b/Scripts/Misc/DataPath.cs index 08fcae297..e993c36b7 100644 --- a/Scripts/Misc/DataPath.cs +++ b/Scripts/Misc/DataPath.cs @@ -9,9 +9,9 @@ namespace Server.Misc { /* If you have not installed Ultima Online, * or wish the server to use a separate set of datafiles, - * change the 'CustomPath' value, example: - * - * private const string CustomPath = @"C:\Program Files\Ultima Online"; + * change the 'CustomPath' value. + * Example: + * private static string CustomPath = @"C:\Program Files\Ultima Online"; */ private static string CustomPath = null; @@ -21,7 +21,7 @@ namespace Server.Misc * Multi.mul * VerData.mul * TileData.mul - * Map*.mul + * Map*.mul or Map*LegacyMUL.uop * StaIdx*.mul * Statics*.mul * MapDif*.mul diff --git a/Scripts/Misc/Email.cs b/Scripts/Misc/Email.cs index 9f0dd0dc6..2f2b3bb76 100644 --- a/Scripts/Misc/Email.cs +++ b/Scripts/Misc/Email.cs @@ -8,25 +8,27 @@ namespace Server.Misc { public class Email { - /* In order to support emailing, fill in EmailServer: + /* In order to support emailing, fill in EmailServer and FromAddress: * Example: * public static readonly string EmailServer = "mail.domain.com"; + * public static readonly string FromAddress = "runuo@domain.com"; * * If you want to add crash reporting emailing, fill in CrashAddresses: * Example: - * public static readonly string CrashAddresses = "first@email.here;second@email.here;third@email.here"; + * public static readonly string CrashAddresses = "first@email.here,second@email.here,third@email.here"; * * If you want to add speech log page emailing, fill in SpeechLogPageAddresses: * Example: - * public static readonly string SpeechLogPageAddresses = "first@email.here;second@email.here;third@email.here"; + * public static readonly string SpeechLogPageAddresses = "first@email.here,second@email.here,third@email.here"; */ public static readonly string EmailServer = null; + public static readonly string FromAddress = null; public static readonly string CrashAddresses = null; public static readonly string SpeechLogPageAddresses = null; - private static Regex _pattern = new Regex( @"^[a-z0-9.+_-]+@([a-z0-9-]+.)+[a-z]+$", RegexOptions.IgnoreCase ); + private static Regex _pattern = new Regex( @"^[a-z0-9.+_-]+@([a-z0-9-]+\.)+[a-z]+$", RegexOptions.Compiled | RegexOptions.IgnoreCase ); public static bool IsValid( string address ) { diff --git a/Scripts/Misc/MapDefinitions.cs b/Scripts/Misc/MapDefinitions.cs index ba397ede1..b15d904ba 100644 --- a/Scripts/Misc/MapDefinitions.cs +++ b/Scripts/Misc/MapDefinitions.cs @@ -30,9 +30,10 @@ namespace Server.Misc * Defined: * RegisterMap( , , , , , , , ); * - : An unreserved unique index for this map - * - : An identification number used in client communications. For any visible maps, this value must be from 0-3 - * - : A file identification number. For any visible maps, this value must be 0, 2, 3, or 4 + * - : An identification number used in client communications. For any visible maps, this value must be from 0-5 + * - : A file identification number. For any visible maps, this value must be from 0-5 * - , : Size of the map (in tiles) + * - : Season of the map. 0 = Spring, 1 = Summer, 2 = Fall, 3 = Winter, 4 = Desolation * - : Reference name for the map, used in props gump, get/set commands, region loading, etc * - : Rules and restrictions associated with the map. See documentation for details */