Lots of fixes, changes, rewrites of various things, including but not limited to:

Logging of staff crafting items,
Fixes for the OSI client changes
The potion stacking stuff
BaseWeapon fix, so that damage increase things don't multiply themselves.
admin gump fixes for Firewall
Various display tweaks for weight
SoS no longer spawn in Tokuno
Hiryu hues happified to OSI standards
staff now see alliance chat correctly
Play barkeeper text increased per OSI
Various other OSI skill requirement changes
Various unimplemented features of the SE moves
EventSink for when the client version is received from client.
Client validation moved out of the core.
Client version validation now has options to ignore/kick/warn/annoy.  Automagically tries to detect current client.
Reverted the delayeddamagecontext back to OSI standards.
Can no longer use bags of sending in jail.

MagerySpell implemented. Now only Magery spells have a circle, and various other properties of 'em.
TransformationSpellHelper now implemented.  Things moved around for this.
Spells now need a Timespan for the cast delay, instead of arbitrarily based on Circle.  Circle doesn't make sense for non-Magery spells!
Alot of the spellweaving spells added to OSI standards.
This commit is contained in:
asayre 2007-05-26 03:12:41 +00:00
parent f12e9745c6
commit 2ad37d54aa
214 changed files with 4881 additions and 1243 deletions

View file

@ -1759,66 +1759,8 @@ namespace Server.Network
public static void ClientVersion( NetState state, PacketReader pvSrc )
{
CV version = state.Version = new CV( pvSrc.ReadString() );
string kickMessage = null;
if ( CV.Required != null && version < CV.Required )
{
kickMessage = String.Format( "This server requires your client version be at least {0}.", CV.Required );
}
else if ( !CV.AllowGod || !CV.AllowRegular || !CV.AllowUOTD )
{
if ( !CV.AllowGod && version.Type == ClientType.God )
kickMessage = "This server does not allow god clients to connect.";
else if ( !CV.AllowRegular && version.Type == ClientType.Regular )
kickMessage = "This server does not allow regular clients to connect.";
else if ( !CV.AllowUOTD && state.IsUOTDClient )
kickMessage = "This server does not allow UO:TD clients to connect.";
if ( !CV.AllowGod && !CV.AllowRegular && !CV.AllowUOTD )
{
kickMessage = "This server does not allow any clients to connect.";
}
else if ( CV.AllowGod && !CV.AllowRegular && !CV.AllowUOTD && version.Type != ClientType.God )
{
kickMessage = "This server requires you to use the god client.";
}
else if ( kickMessage != null )
{
if ( CV.AllowRegular && CV.AllowUOTD )
kickMessage += " You can use regular or UO:TD clients.";
else if ( CV.AllowRegular )
kickMessage += " You can use regular clients.";
else if ( CV.AllowUOTD )
kickMessage += " You can use UO:TD clients.";
}
}
if ( kickMessage != null )
{
state.Mobile.SendMessage( 0x22, kickMessage );
state.Mobile.SendMessage( 0x22, "You will be disconnected in {0} seconds.", CV.KickDelay.TotalSeconds );
new KickTimer( state, CV.KickDelay ).Start();
}
}
private class KickTimer : Timer
{
private NetState m_State;
public KickTimer( NetState state, TimeSpan delay ) : base( delay )
{
m_State = state;
}
protected override void OnTick()
{
if ( m_State.Socket != null )
{
Console.WriteLine( "Client: {0}: Disconnecting, bad version", m_State );
m_State.Dispose();
}
}
EventSink.InvokeClientVersionRecieved( new ClientVersionRecievedArgs( state, version ) );
}
public static void MobileQuery( NetState state, PacketReader pvSrc )