2016-06-08 22:29:04 +01:00
|
|
|
|
using System;
|
2016-03-28 11:30:02 -04:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
2016-08-22 10:43:04 -04:00
|
|
|
|
using FFXIVClassic.Common;
|
|
|
|
|
|
2016-03-28 11:30:02 -04:00
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send
|
|
|
|
|
{
|
|
|
|
|
class _0x02Packet
|
|
|
|
|
{
|
|
|
|
|
public const ushort OPCODE = 0x0002;
|
|
|
|
|
public const uint PACKET_SIZE = 0x30;
|
|
|
|
|
|
2016-06-14 21:29:10 +01:00
|
|
|
|
public static SubPacket BuildPacket(uint playerActorId, int val)
|
2016-03-28 11:30:02 -04:00
|
|
|
|
{
|
|
|
|
|
byte[] data = new byte[PACKET_SIZE - 0x20];
|
|
|
|
|
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
|
|
|
|
{
|
|
|
|
|
binWriter.Seek(8, SeekOrigin.Begin);
|
|
|
|
|
binWriter.Write((UInt32)playerActorId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new SubPacket(OPCODE, playerActorId, playerActorId, data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|