diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-10 22:03:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:27 +0300 |
commit | fd081fbacb8cc1a8fdcbacfa1923c4b7c17510a4 (patch) | |
tree | 6a2897782bf46bcacdaced9a713d3150087d58d4 /src/map/packets_struct.h | |
parent | 8c62eb43def49ebd089b4287d78f9b64ea673090 (diff) | |
download | hercules-fd081fbacb8cc1a8fdcbacfa1923c4b7c17510a4.tar.gz hercules-fd081fbacb8cc1a8fdcbacfa1923c4b7c17510a4.tar.bz2 hercules-fd081fbacb8cc1a8fdcbacfa1923c4b7c17510a4.tar.xz hercules-fd081fbacb8cc1a8fdcbacfa1923c4b7c17510a4.zip |
Update packet ZC_NOTIFY_WEAPONITEMLIST.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 1a2bcec76..f86d87f2f 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -2442,6 +2442,23 @@ struct PACKET_ZC_REPAIRITEMLIST { struct PACKET_ZC_REPAIRITEMLIST_sub items[]; } __attribute__((packed)); +struct PACKET_ZC_NOTIFY_WEAPONITEMLIST_sub { + int16 index; +#if PACKETVER_RE_NUM >= 20180704 + uint32 itemId; +#else + uint16 itemId; +#endif + uint8 refine; // unused? + struct EQUIPSLOTINFO slot; // unused? +} __attribute__((packed)); + +struct PACKET_ZC_NOTIFY_WEAPONITEMLIST { + int16 packetType; + int16 packetLength; + struct PACKET_ZC_NOTIFY_WEAPONITEMLIST_sub items[]; +} __attribute__((packed)); + #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 |