Support for > 6.0.1.7 (Containers, SecureTrade, SpellBook, Vendors, etc)
WarningGump Fixed
This commit is contained in:
parent
3f839ed5bf
commit
57293771a2
12 changed files with 290 additions and 48 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue