add dorm and random stuff for fun

This commit is contained in:
raphaeIl
2024-04-07 04:37:09 -04:00
parent 92907806b2
commit 00060fb310
6 changed files with 97 additions and 37 deletions

View File

@@ -1,12 +1,30 @@
using BLHX.Server.Common.Proto.p15;
using BLHX.Server.Common.Data;
using BLHX.Server.Common.Utils;
using BLHX.Server.Common.Proto;
namespace BLHX.Server.Game.Handlers {
internal static class P15 {
[PacketHandler(Command.Cs15002, SaveDataAfterRun = true)]
static void UseFudaiItemHandler(Connection connection, Packet packet) {
var req = packet.Decode<Cs15002>();
Logger.c.Log("Arg: ");
foreach (var arg in req.Args)
Logger.c.Log(arg + "");
Logger.c.Log(req.Count + "");
Logger.c.Log(req.Id + "");
connection.Send(new Sc15003() {
DropLists = [],
});
}
}
static class P15ConnectionNotifyExtensions {
public static void NotifyBagData(this Connection connection) {
//List<int> AllItemsKeys = Data.ItemDataStatistics.Where(data => data.Value.Type == 2 && data.Value.Rarity >= 6).ToDictionary().Keys.ToList();
List<int> AllItemsKeys = Data.ItemDataStatistics.ToDictionary().Keys.ToList();