From 7f46f5769b4c0f162b49510ff868d42355c6e326 Mon Sep 17 00:00:00 2001 From: Supamiu Date: Tue, 8 Oct 2019 22:04:50 +0200 Subject: [PATCH] Moved desynth packet type to a common enum --- src/common/Common.h | 7 +++++++ src/common/Network/PacketDef/Zone/ServerZoneDef.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/Common.h b/src/common/Common.h index 7bb57000..46be4674 100644 --- a/src/common/Common.h +++ b/src/common/Common.h @@ -1005,6 +1005,13 @@ namespace Sapphire::Common Gatherer }; + enum DesynthPacketType : uint32_t + { + ItemConsumed = 4921, + ItemObtained = 4922, + ExpObtained = 4925, + }; + using PlayerStateFlagList = std::vector< PlayerStateFlag >; } diff --git a/src/common/Network/PacketDef/Zone/ServerZoneDef.h b/src/common/Network/PacketDef/Zone/ServerZoneDef.h index da2228eb..438de6ed 100644 --- a/src/common/Network/PacketDef/Zone/ServerZoneDef.h +++ b/src/common/Network/PacketDef/Zone/ServerZoneDef.h @@ -519,7 +519,7 @@ namespace Sapphire::Network::Packets::Server { /* 0000 */ uint16_t category; /* 0002 */ uint16_t padding; - /* 0004 */ uint32_t resultType; // 4321 => item used, 4922 => item obtained, 4925 => exp obtained + /* 0004 */ Common::DesynthPacketType resultType; /* 0008 */ uint32_t param2; /* 000C */ uint32_t itemId; /* 0010 */ uint32_t param4;