mirror of
https://github.com/rafi1212122/BLHX.Server.git
synced 2025-12-13 06:54:51 +01:00
add item handling and some gacha stuff
This commit is contained in:
@@ -1,24 +1,28 @@
|
||||
using BLHX.Server.Common.Proto.p15;
|
||||
using BLHX.Server.Common.Data;
|
||||
using BLHX.Server.Common.Utils;
|
||||
|
||||
namespace BLHX.Server.Game.Handlers
|
||||
{
|
||||
internal static class P15
|
||||
{
|
||||
namespace BLHX.Server.Game.Handlers {
|
||||
internal static class P15 {
|
||||
}
|
||||
|
||||
static class P15ConnectionNotifyExtensions
|
||||
{
|
||||
public static void NotifyBagData(this Connection connection)
|
||||
{
|
||||
connection.Send(new Sc15001()
|
||||
{
|
||||
ItemLists = [
|
||||
new Iteminfo() { Id = 20001, Count = 5 },
|
||||
new Iteminfo() { Id = 15003, Count = 10 },
|
||||
new Iteminfo() { Id = 50002, Count = 10 },
|
||||
new Iteminfo() { Id = 50001, Count = 10 }
|
||||
]
|
||||
});
|
||||
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();
|
||||
List<Iteminfo> ItemLists = AllItemsKeys.Select(item_id => new Iteminfo { Id = (uint)item_id, Count = 3954783433 }).ToList();
|
||||
|
||||
connection.Send(new Sc15001() { ItemLists = ItemLists });
|
||||
|
||||
//connection.Send(new Sc15001() {
|
||||
// ItemLists = [
|
||||
// new Iteminfo() { Id = 20001, Count = 8394785 },
|
||||
// new Iteminfo() { Id = 15003, Count = 10 },
|
||||
// new Iteminfo() { Id = 50002, Count = 10 },
|
||||
// new Iteminfo() { Id = 50001, Count = 10 }
|
||||
// ]
|
||||
//});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user