diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 02:58:13 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-22 02:58:13 +0200 |
commit | 98cdd80b545645fe8c5d398e37575f182fd0d4d8 (patch) | |
tree | fddd0317e322e5cbcaba76ab46471d9abc85145b /src/map/packets_struct.h | |
parent | 9a06857cc3ad2ad8f00b52ccc33f6c07342ad985 (diff) | |
download | hercules-98cdd80b545645fe8c5d398e37575f182fd0d4d8.tar.gz hercules-98cdd80b545645fe8c5d398e37575f182fd0d4d8.tar.bz2 hercules-98cdd80b545645fe8c5d398e37575f182fd0d4d8.tar.xz hercules-98cdd80b545645fe8c5d398e37575f182fd0d4d8.zip |
Implement PACKET_ZC_PERSONAL_INFOMATION (0x097b)
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 3129a05d9..031a23b6d 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3927,6 +3927,24 @@ struct PACKET_CZ_LAPINEUPGRADE_MAKE_ITEM { DEFINE_PACKET_HEADER(CZ_LAPINEUPGRADE_MAKE_ITEM, 0x0ab6); #endif // PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) +#if PACKETVER_MAIN_NUM >= 20120503 || PACKETVER_RE_NUM >= 20120502 || defined(PACKETVER_ZERO) +struct PACKET_ZC_PERSONAL_INFOMATION_SUB { + int8 type; + int32 exp; + int32 death; + int32 drop; +} __attribute__((packed)); +struct PACKET_ZC_PERSONAL_INFOMATION { + int16 packetType; + int16 length; + int32 total_exp; + int32 total_death; + int32 total_drop; + struct PACKET_ZC_PERSONAL_INFOMATION_SUB details[]; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_PERSONAL_INFOMATION, 0x097b); +#endif // PACKETVER_MAIN_NUM >= 20120503 || PACKETVER_RE_NUM >= 20120502 || defined(PACKETVER_ZERO) + #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute #pragma pack(pop) #endif // not NetBSD < 6 / Solaris |