2024-09-18 01:50:29 +08:00
|
|
|
|
using PSO2SERVER.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2024-11-27 18:05:53 +08:00
|
|
|
|
namespace PSO2SERVER.Protocol.Packets
|
2024-09-18 01:50:29 +08:00
|
|
|
|
{
|
2024-12-05 23:13:55 +08:00
|
|
|
|
public class CreateCharacterInviteNicknameResponsePacket : Packet
|
2024-09-18 01:50:29 +08:00
|
|
|
|
{
|
2024-12-05 23:13:55 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creation status.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint Status;
|
|
|
|
|
|
|
|
|
|
public uint Unk2;
|
|
|
|
|
|
|
|
|
|
public uint UsedSmth;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required AC to buy a character creation pass.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public uint ReqAc;
|
2024-09-18 01:50:29 +08:00
|
|
|
|
|
2024-12-05 23:13:55 +08:00
|
|
|
|
public CreateCharacterInviteNicknameResponsePacket(uint status, uint unk2, uint usedSmth, uint reqAc)
|
2024-09-18 01:50:29 +08:00
|
|
|
|
{
|
2024-12-05 23:13:55 +08:00
|
|
|
|
Status = status;
|
|
|
|
|
Unk2 = unk2;
|
|
|
|
|
UsedSmth = usedSmth;
|
|
|
|
|
ReqAc = reqAc;
|
2024-09-18 01:50:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region implemented abstract members of Packet
|
|
|
|
|
|
|
|
|
|
public override byte[] Build()
|
|
|
|
|
{
|
|
|
|
|
var pkt = new PacketWriter();
|
2024-12-05 23:13:55 +08:00
|
|
|
|
pkt.Write(Status);
|
|
|
|
|
pkt.Write(Unk2);
|
|
|
|
|
pkt.Write(UsedSmth);
|
|
|
|
|
pkt.Write(ReqAc);
|
2024-09-18 01:50:29 +08:00
|
|
|
|
return pkt.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override PacketHeader GetHeader()
|
|
|
|
|
{
|
2024-11-27 18:05:53 +08:00
|
|
|
|
return new PacketHeader(0x11, 0x53, PacketFlags.None);
|
2024-09-18 01:50:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|