From 4da62584cdd495b7256271066f3da4576e03a21a Mon Sep 17 00:00:00 2001 From: Mordred Date: Sun, 24 Mar 2019 16:08:08 +0100 Subject: [PATCH] Added HuntingLog Packet --- src/common/Network/PacketDef/Ipcs.h | 2 ++ src/common/Network/PacketDef/Zone/ServerZoneDef.h | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/common/Network/PacketDef/Ipcs.h b/src/common/Network/PacketDef/Ipcs.h index ef8db6ec..87b1e8e9 100644 --- a/src/common/Network/PacketDef/Ipcs.h +++ b/src/common/Network/PacketDef/Ipcs.h @@ -155,6 +155,8 @@ namespace Sapphire::Network::Packets InventoryActionAck = 0x019D, // updated 4.5 UpdateInventorySlot = 0x019E, // updated 4.5 + HuntingLogEntry = 0x01A9, // added 4.5 + EventPlay = 0x01AB, // updated 4.5 DirectorPlayScene = 0x01AF, // updated 4.5 EventOpenGilShop = 0x01B2, // updated 4.5 diff --git a/src/common/Network/PacketDef/Zone/ServerZoneDef.h b/src/common/Network/PacketDef/Zone/ServerZoneDef.h index d24d8452..d27d0df2 100644 --- a/src/common/Network/PacketDef/Zone/ServerZoneDef.h +++ b/src/common/Network/PacketDef/Zone/ServerZoneDef.h @@ -1228,6 +1228,20 @@ struct FFXIVIpcEventStart : /* 0014 */ uint32_t padding1; }; +/** +* Structural representation of the packet sent by the server +* to fill a huntin log entry +*/ +struct FFXIVIpcHuntingLogEntry : FFXIVIpcBasePacket< HuntingLogEntry > +{ + int32_t u0; // -1 for all normal classes + uint8_t rank; // starting from 0 + uint8_t index; // classes and gcs + uint8_t entries[10][4]; + uint16_t pad; + uint64_t completeFlags; // 4 bit for each potential entry and the 5th bit for completion of the section + uint64_t pad1; +}; /** * Structural representation of the packet sent by the server