From c0a8672db356198f4ace26f7825c6f6f878a23f9 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Sat, 21 Aug 2021 00:14:40 -0700 Subject: [PATCH] fix(network): Don't crash the user when they click the UO Store button (#710) --- .../Engines/UltimaStore/UltimaStorePackets.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Projects/UOContent/Engines/UltimaStore/UltimaStorePackets.cs diff --git a/Projects/UOContent/Engines/UltimaStore/UltimaStorePackets.cs b/Projects/UOContent/Engines/UltimaStore/UltimaStorePackets.cs new file mode 100644 index 000000000..cb40edc26 --- /dev/null +++ b/Projects/UOContent/Engines/UltimaStore/UltimaStorePackets.cs @@ -0,0 +1,17 @@ +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, ref int packetLength) + { + state.Mobile.SendMessage("Ultima Store is not currently available."); + } + } +}