This commit is contained in:
parent
9c5abc3b0d
commit
ea0e037770
3 changed files with 19 additions and 6 deletions
|
|
@ -48,8 +48,8 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
pl.Leaving = DateTime.Now;
|
pl.Leaving = DateTime.Now;
|
||||||
|
|
||||||
if ( Faction.LeavePeriod == TimeSpan.FromDays( 7.0 ) )
|
if ( Faction.LeavePeriod == TimeSpan.FromDays( 3.0 ) )
|
||||||
m_From.SendLocalizedMessage( 1005065 ); // You will be removed from the faction in 7 days
|
m_From.SendLocalizedMessage( 1005065 ); // You will be removed from the faction in 3 days
|
||||||
else
|
else
|
||||||
m_From.SendMessage( "You will be removed from the faction in {0} days.", Faction.LeavePeriod.TotalDays );
|
m_From.SendMessage( "You will be removed from the faction in {0} days.", Faction.LeavePeriod.TotalDays );
|
||||||
}
|
}
|
||||||
|
|
@ -71,8 +71,8 @@ namespace Server.Factions
|
||||||
{
|
{
|
||||||
pl.Leaving = DateTime.Now;
|
pl.Leaving = DateTime.Now;
|
||||||
|
|
||||||
if ( Faction.LeavePeriod == TimeSpan.FromDays( 7.0 ) )
|
if ( Faction.LeavePeriod == TimeSpan.FromDays( 3.0 ) )
|
||||||
mob.SendLocalizedMessage( 1005060 ); // Your guild will quit the faction in 7 days
|
mob.SendLocalizedMessage( 1005060 ); // Your guild will quit the faction in 3 days
|
||||||
else
|
else
|
||||||
mob.SendMessage( "Your guild will quit the faction in {0} days.", Faction.LeavePeriod.TotalDays );
|
mob.SendMessage( "Your guild will quit the faction in {0} days.", Faction.LeavePeriod.TotalDays );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,8 @@ namespace Server.Items
|
||||||
|
|
||||||
m.MoveToWorld( m_Target, m_TargetMap );
|
m.MoveToWorld( m_Target, m_TargetMap );
|
||||||
|
|
||||||
m.PlaySound( 0x1FE );
|
if ( m.AccessLevel == AccessLevel.Player || !m.Hidden )
|
||||||
|
m.PlaySound( 0x1FE );
|
||||||
|
|
||||||
OnGateUsed( m );
|
OnGateUsed( m );
|
||||||
}
|
}
|
||||||
|
|
@ -192,7 +193,8 @@ namespace Server.Items
|
||||||
{
|
{
|
||||||
if ( IsInTown( from.Location, from.Map ) && !IsInTown( m_Target, m_TargetMap ) || (from.Map != Map.Felucca && TargetMap == Map.Felucca && ShowFeluccaWarning) )
|
if ( IsInTown( from.Location, from.Map ) && !IsInTown( m_Target, m_TargetMap ) || (from.Map != Map.Felucca && TargetMap == Map.Felucca && ShowFeluccaWarning) )
|
||||||
{
|
{
|
||||||
from.Send( new PlaySound( 0x20E, from.Location ) );
|
if ( from.AccessLevel == AccessLevel.Player || !from.Hidden )
|
||||||
|
from.Send( new PlaySound( 0x20E, from.Location ) );
|
||||||
from.CloseGump( typeof( MoongateConfirmGump ) );
|
from.CloseGump( typeof( MoongateConfirmGump ) );
|
||||||
from.SendGump( new MoongateConfirmGump( from, this ) );
|
from.SendGump( new MoongateConfirmGump( from, this ) );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Net.Mail;
|
using System.Net.Mail;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using Server;
|
using Server;
|
||||||
|
|
||||||
|
|
@ -25,6 +26,16 @@ namespace Server.Misc
|
||||||
public static readonly string CrashAddresses = null;
|
public static readonly string CrashAddresses = null;
|
||||||
public static readonly string SpeechLogPageAddresses = null;
|
public static readonly string SpeechLogPageAddresses = null;
|
||||||
|
|
||||||
|
private static Regex _pattern = new Regex( @"^[a-z0-9.+_-]+@([a-z0-9-]+.)+[a-z]+$", RegexOptions.IgnoreCase );
|
||||||
|
|
||||||
|
public static bool IsValid( string address )
|
||||||
|
{
|
||||||
|
if ( address == null || address.Length > 320 )
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return _pattern.IsMatch( address );
|
||||||
|
}
|
||||||
|
|
||||||
public static SmtpClient Client;
|
public static SmtpClient Client;
|
||||||
|
|
||||||
public static void Configure()
|
public static void Configure()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue