From 7d79f3c0077c806a6546a498bac2b36307dbd8f7 Mon Sep 17 00:00:00 2001 From: Kyle Belanger Date: Wed, 21 Feb 2024 00:42:34 -0500 Subject: [PATCH] Home screen, some places unblocked slightly (shop, friends) --- BLHX.Server.Game/Handlers/P11.cs | 2 +- BLHX.Server.Game/Handlers/P13.cs | 8 +++++++- BLHX.Server.Game/Handlers/P16.cs | 14 +++++++++++++- BLHX.Server.Game/Handlers/P18.cs | 6 ++++++ BLHX.Server.Game/Handlers/P22.cs | 14 +++++++++++++- BLHX.Server.Game/Handlers/P26.cs | 6 ++++++ BLHX.Server.Game/Handlers/P50.cs | 20 ++++++++++++++++++++ BLHX.Server.Game/Handlers/P60.cs | 6 ++++++ 8 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 BLHX.Server.Game/Handlers/P50.cs diff --git a/BLHX.Server.Game/Handlers/P11.cs b/BLHX.Server.Game/Handlers/P11.cs index b153e2b..fe3f702 100644 --- a/BLHX.Server.Game/Handlers/P11.cs +++ b/BLHX.Server.Game/Handlers/P11.cs @@ -60,7 +60,7 @@ namespace BLHX.Server.Game.Handlers EquipBagMax = 350, GmFlag = 1, Rank = 1, - GuideIndex = 1, + GuideIndex = 1000000, ChatRoomId = 1, RegisterTime = (uint)new DateTimeOffset(connection.player.CreatedAt).ToUnixTimeSeconds(), ShipCount = (uint)connection.player.Ships.Count, diff --git a/BLHX.Server.Game/Handlers/P13.cs b/BLHX.Server.Game/Handlers/P13.cs index 86794c2..c71db5d 100644 --- a/BLHX.Server.Game/Handlers/P13.cs +++ b/BLHX.Server.Game/Handlers/P13.cs @@ -1,9 +1,15 @@ -using BLHX.Server.Common.Proto.p13; +using BLHX.Server.Common.Proto; +using BLHX.Server.Common.Proto.p13; namespace BLHX.Server.Game.Handlers { internal static class P13 { + [PacketHandler(Command.Cs13505)] + static void RemasterInfoRequestHandler(Connection connection, Packet packet) + { + connection.Send(new Sc13506()); + } } static class P13ConnectionNotifyExtensions diff --git a/BLHX.Server.Game/Handlers/P16.cs b/BLHX.Server.Game/Handlers/P16.cs index 99d56ce..7de16d6 100644 --- a/BLHX.Server.Game/Handlers/P16.cs +++ b/BLHX.Server.Game/Handlers/P16.cs @@ -1,9 +1,21 @@ -using BLHX.Server.Common.Proto.p16; +using BLHX.Server.Common.Proto; +using BLHX.Server.Common.Proto.p16; namespace BLHX.Server.Game.Handlers { internal static class P16 { + [PacketHandler(Command.Cs16104)] + static void GetChargeListHandler(Connection connection, Packet packet) + { + connection.Send(new Sc16105()); + } + + [PacketHandler(Command.Cs16106)] + static void GetExchangeItemHandler(Connection connection, Packet packet) + { + connection.Send(new Sc16107()); + } } static class P16ConnectionNotifyExtensions diff --git a/BLHX.Server.Game/Handlers/P18.cs b/BLHX.Server.Game/Handlers/P18.cs index 48be597..8e55349 100644 --- a/BLHX.Server.Game/Handlers/P18.cs +++ b/BLHX.Server.Game/Handlers/P18.cs @@ -13,5 +13,11 @@ namespace BLHX.Server.Game.Handlers Rank = 1 }); } + + [PacketHandler(Command.Cs18100)] + static void GetMilitaryShopHandler(Connection connection, Packet packet) + { + connection.Send(new Sc18101()); + } } } diff --git a/BLHX.Server.Game/Handlers/P22.cs b/BLHX.Server.Game/Handlers/P22.cs index 8b02c75..a008aec 100644 --- a/BLHX.Server.Game/Handlers/P22.cs +++ b/BLHX.Server.Game/Handlers/P22.cs @@ -1,9 +1,21 @@ -using BLHX.Server.Common.Proto.p22; +using BLHX.Server.Common.Proto; +using BLHX.Server.Common.Proto.p22; namespace BLHX.Server.Game.Handlers { internal static class P22 { + [PacketHandler(Command.Cs22101)] + static void GetShopStreetHandler(Connection connection, Packet packet) + { + connection.Send(new Sc22102() + { + Street = new() + { + Lv = 1 + } + }); + } } static class P22ConnectionNotifyExtensions diff --git a/BLHX.Server.Game/Handlers/P26.cs b/BLHX.Server.Game/Handlers/P26.cs index 8d965b3..d289da1 100644 --- a/BLHX.Server.Game/Handlers/P26.cs +++ b/BLHX.Server.Game/Handlers/P26.cs @@ -10,6 +10,12 @@ namespace BLHX.Server.Game.Handlers { connection.Send(new Sc26102()); } + + [PacketHandler(Command.Cs26150)] + static void GetMinigameShopHandler(Connection connection, Packet packet) + { + connection.Send(new Sc26151()); + } } static class P26ConnectionNotifyExtensions { diff --git a/BLHX.Server.Game/Handlers/P50.cs b/BLHX.Server.Game/Handlers/P50.cs new file mode 100644 index 0000000..2bc4374 --- /dev/null +++ b/BLHX.Server.Game/Handlers/P50.cs @@ -0,0 +1,20 @@ +using BLHX.Server.Common.Proto; +using BLHX.Server.Common.Proto.p50; + +namespace BLHX.Server.Game.Handlers +{ + internal static class P50 + { + [PacketHandler(Command.Cs50014)] + static void SearchFriendCommandHandler(Connection connection, Packet packet) + { + connection.Send(new Sc50015()); + } + + [PacketHandler(Command.Cs50016)] + static void GetBlacklistHandler(Connection connection, Packet packet) + { + connection.Send(new Sc50017()); + } + } +} diff --git a/BLHX.Server.Game/Handlers/P60.cs b/BLHX.Server.Game/Handlers/P60.cs index af069c0..49cd445 100644 --- a/BLHX.Server.Game/Handlers/P60.cs +++ b/BLHX.Server.Game/Handlers/P60.cs @@ -5,6 +5,12 @@ namespace BLHX.Server.Game.Handlers { internal static class P60 { + [PacketHandler(Command.Cs60033)] + static void GetGuildShopHandler(Connection connection, Packet packet) + { + connection.Send(new Sc60034()); + } + [PacketHandler(Command.Cs60037)] static void GuildInfoHandler(Connection connection, Packet packet) {