ModernUO/Projects/UOContent/Engines/UltimaStore/UltimaStorePackets.cs
Kamron Batman 58b907d39e
fix: Fixes packet length checks (#953)
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.
2022-03-04 12:32:25 -08:00

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.");
}
}
}