mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-14 16:04:36 +01:00
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using nksrv.Utils;
|
|
using Swan;
|
|
|
|
namespace nksrv.LobbyServer.Msgs.User
|
|
{
|
|
[PacketPath("/mail/get")]
|
|
public class GetMail : LobbyMsgHandler
|
|
{
|
|
protected override async Task HandleAsync()
|
|
{
|
|
var req = await ReadData<ReqGetMailData>();
|
|
|
|
var r = new ResGetMailData();
|
|
r.Mail.Add(new NetUserMailData()
|
|
{
|
|
|
|
Msn = 3,
|
|
Nickname = "nick",
|
|
Title = new() { IsPlain = true, String = "Our Server Fell" },
|
|
Text = new() { IsPlain = true, String = "Our Game Was Down For 1 Second because the HP Laptop Which Hosted the Server Got Shut Down by the Lid Closing. As for the Reward for the Inconvience, free paid gems" },
|
|
HasReward = true,
|
|
Sender = 102
|
|
|
|
});
|
|
|
|
r.Mail[0].Items.Add(new NetMailRewardItem() { ExpiredAt = DateTime.UtcNow.AddYears(10).ToUnixEpochDate(), RewardID = 1, RewardType = (int)CurrencyType.ChargeCash, RewardValue = 100000 });
|
|
|
|
await WriteDataAsync(r);
|
|
}
|
|
}
|
|
}
|