PSO2SERVER/Server/Protocol/Handlers/4A-ARKSMisionsHandler/4A-00-MissionListRequest.cs

47 lines
1.2 KiB
C#
Raw Normal View History

2024-09-22 00:08:44 +08:00
using System;
2024-12-11 03:39:12 +08:00
using System.Collections.Generic;
2024-09-22 00:08:44 +08:00
using PSO2SERVER.Models;
using PSO2SERVER.Protocol.Packets;
2024-09-22 00:08:44 +08:00
namespace PSO2SERVER.Protocol.Handlers
2024-09-22 00:08:44 +08:00
{
[PacketHandlerAttr(0x4A, 0x00)]
2024-12-03 13:18:58 +08:00
public class MissionListRequest : PacketHandler
2024-09-22 00:08:44 +08:00
{
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{
if(context.Character == null)
return;
2024-12-11 03:39:12 +08:00
var info = string.Format("[<--] 接收到的数据 (hex): {0} 字节", data.Length);
Logger.WriteHex(info, data);
2024-09-22 00:08:44 +08:00
2024-12-11 03:39:12 +08:00
var mission = new Mission
{
MissionType = 5,
StartDate = 0,
EndDate = 0,
Id = 6040309,
Unk5 = 0,
CompletionDate = 1615045153,
Unk7 = 0,
Unk8 = 0,
Unk9 = 0,
Unk10 = 1,
Unk11 = 1023,
Unk12 = 0,
Unk13 = 0,
Unk14 = 1,
Unk15 = 0,
};
2024-09-22 00:08:44 +08:00
2024-12-11 03:39:12 +08:00
List<Mission> Missions = new List<Mission>
{
mission
};
context.SendPacket(new ARKSMissionListPacket(Missions));
2024-09-22 00:08:44 +08:00
}
}
}