Fixes an issue with DropReq where an old client was sending in 14 bytes, but the server was expecting 15 bytes. To fix this we introduced a new packet handler, `ContainerGridPacketHandler` and changed the code to determine the length of the packet dynamically using `GetLength(NetState)`. Also fixed throttling so dropped packets are properly skipped.
17 lines
471 B
C#
17 lines
471 B
C#
using Server.Network;
|
|
|
|
namespace Server.Engines.UltimaStore
|
|
{
|
|
public static class UltimaStorePackets
|
|
{
|
|
public static void Configure()
|
|
{
|
|
IncomingPackets.Register(0xFA, 1, true, UltimaStoreOpenRequest);
|
|
}
|
|
|
|
public static void UltimaStoreOpenRequest(NetState state, CircularBufferReader reader, int packetLength)
|
|
{
|
|
state.Mobile.SendMessage("Ultima Store is not currently available.");
|
|
}
|
|
}
|
|
}
|