2016-06-08 22:29:04 +01:00
|
|
|
|
using System;
|
2016-04-02 17:56:01 -04:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
2016-08-22 10:43:04 -04:00
|
|
|
|
using FFXIVClassic.Common;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send.actor
|
2016-04-02 17:56:01 -04:00
|
|
|
|
{
|
2016-04-07 22:34:10 -04:00
|
|
|
|
class SetActorQuestGraphicPacket
|
2016-04-02 17:56:01 -04:00
|
|
|
|
{
|
|
|
|
|
public const int NONE = 0x0;
|
|
|
|
|
public const int QUEST = 0x2;
|
|
|
|
|
public const int NOGRAPHIC = 0x3;
|
|
|
|
|
public const int QUEST_IMPORTANT = 0x4;
|
|
|
|
|
|
|
|
|
|
public const ushort OPCODE = 0x00E3;
|
|
|
|
|
public const uint PACKET_SIZE = 0x28;
|
|
|
|
|
|
2016-06-15 00:08:05 +01:00
|
|
|
|
public static SubPacket BuildPacket(uint playerActorID, uint targetActorID, int iconCode)
|
2016-04-02 17:56:01 -04:00
|
|
|
|
{
|
|
|
|
|
byte[] data = new byte[PACKET_SIZE - 0x20];
|
|
|
|
|
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
|
|
|
|
{
|
|
|
|
|
binWriter.Write((Int32)iconCode);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-15 00:08:05 +01:00
|
|
|
|
return new SubPacket(OPCODE, targetActorID, playerActorID, data);
|
2016-04-02 17:56:01 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|