Support for > 6.0.1.7 (Containers, SecureTrade, SpellBook, Vendors, etc)

WarningGump Fixed
This commit is contained in:
mark 2007-08-08 20:30:14 +00:00
parent 3f839ed5bf
commit 57293771a2
12 changed files with 290 additions and 48 deletions

View file

@ -200,6 +200,11 @@ namespace Server.Network {
}
set {
m_Version = value;
if ( value >= m_Version6017 )
m_Post6017 = true;
else
m_Post6017 = false;
}
}
@ -211,6 +216,16 @@ namespace Server.Network {
}
}
private static ClientVersion m_Version6017 = new ClientVersion( "6.0.1.7" );
private bool m_Post6017;
public bool IsPost6017 {
get {
return m_Post6017;
}
}
public List<SecureTrade> Trades {
get {
return m_Trades;
@ -531,6 +546,14 @@ namespace Server.Network {
}
}
public PacketHandler GetHandler( int packetID )
{
if ( IsPost6017 )
return PacketHandlers.Get6017Handler( packetID );
else
return PacketHandlers.GetHandler( packetID );
}
public virtual void Send( Packet p ) {
if ( m_Socket == null || m_BlockAllPackets ) {
p.OnSend();