Home screen, some places unblocked slightly (shop, friends)

This commit is contained in:
Kyle Belanger
2024-02-21 00:42:34 -05:00
parent 920a08a4b8
commit 7d79f3c007
8 changed files with 72 additions and 4 deletions

View File

@@ -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,

View File

@@ -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

View File

@@ -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

View File

@@ -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());
}
}
}

View File

@@ -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

View File

@@ -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
{

View File

@@ -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());
}
}
}

View File

@@ -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)
{