2024-09-10 01:13:20 +08:00
|
|
|
|
using PSO2SERVER.Models;
|
2024-09-10 00:31:40 +08:00
|
|
|
|
|
2024-09-10 01:13:20 +08:00
|
|
|
|
namespace PSO2SERVER.Packets.PSOPackets
|
2024-09-10 00:31:40 +08:00
|
|
|
|
{
|
|
|
|
|
public class SetCurrencyPacket : Packet
|
|
|
|
|
{
|
|
|
|
|
public int NewAcAmount = 0;
|
|
|
|
|
public int NewFunAmount = 0;
|
|
|
|
|
|
|
|
|
|
#region implemented abstract members of Packet
|
|
|
|
|
|
|
|
|
|
public override byte[] Build()
|
|
|
|
|
{
|
|
|
|
|
var writer = new PacketWriter();
|
|
|
|
|
|
|
|
|
|
// AC
|
|
|
|
|
writer.Write(NewAcAmount);
|
|
|
|
|
|
|
|
|
|
// Padding?
|
|
|
|
|
for (var i = 0; i < 20; i++)
|
|
|
|
|
writer.Write((byte) 0);
|
|
|
|
|
|
|
|
|
|
// FUN
|
|
|
|
|
writer.Write(NewFunAmount);
|
|
|
|
|
|
|
|
|
|
// Padding?
|
|
|
|
|
for (var i = 0; i < 4; i++)
|
|
|
|
|
writer.Write((byte) 0);
|
|
|
|
|
|
|
|
|
|
return writer.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override PacketHeader GetHeader()
|
|
|
|
|
{
|
|
|
|
|
return new PacketHeader(0x11, 0x1C);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|