mirror of
https://github.com/EpinelPS/EpinelPS.git
synced 2025-12-13 23:44:45 +01:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using nksrv.Utils;
|
|
using Swan;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
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 });
|
|
|
|
WriteData(r);
|
|
}
|
|
}
|
|
}
|