1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-06-01 22:07:45 +00:00

Moved desynth packet type to a common enum

This commit is contained in:
Supamiu 2019-10-08 22:04:50 +02:00
parent c7baa29d9c
commit 7f46f5769b
2 changed files with 8 additions and 1 deletions

View file

@ -1005,6 +1005,13 @@ namespace Sapphire::Common
Gatherer Gatherer
}; };
enum DesynthPacketType : uint32_t
{
ItemConsumed = 4921,
ItemObtained = 4922,
ExpObtained = 4925,
};
using PlayerStateFlagList = std::vector< PlayerStateFlag >; using PlayerStateFlagList = std::vector< PlayerStateFlag >;
} }

View file

@ -519,7 +519,7 @@ namespace Sapphire::Network::Packets::Server
{ {
/* 0000 */ uint16_t category; /* 0000 */ uint16_t category;
/* 0002 */ uint16_t padding; /* 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; /* 0008 */ uint32_t param2;
/* 000C */ uint32_t itemId; /* 000C */ uint32_t itemId;
/* 0010 */ uint32_t param4; /* 0010 */ uint32_t param4;