diff options
author | Haru <haru@dotalux.com> | 2020-06-28 03:32:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-28 03:32:35 +0200 |
commit | 92022a5728dbd3a2e95b007276cd4eb926885bac (patch) | |
tree | 942830c72893a6041d693371a1147a9023cec0bc /src/map/packets_struct.h | |
parent | 9b22213254d64b2c155c6700030303852fd5b912 (diff) | |
parent | ddf679b3808e56309a7352eead2cd1f93c9f99c9 (diff) | |
download | hercules-92022a5728dbd3a2e95b007276cd4eb926885bac.tar.gz hercules-92022a5728dbd3a2e95b007276cd4eb926885bac.tar.bz2 hercules-92022a5728dbd3a2e95b007276cd4eb926885bac.tar.xz hercules-92022a5728dbd3a2e95b007276cd4eb926885bac.zip |
Merge pull request #2757 from Kenpachi2k13/server_messages
Adjust server messages on login and map change
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 |