diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-10-17 23:11:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-10-22 01:42:43 +0300 |
commit | bf5b2da6f9a395e280c5806456cfe3f7ccf3aaa6 (patch) | |
tree | 12d88f7ca0cf846b2e1cec987b3e3117b442a057 /src/map/packets_struct.h | |
parent | 152e4ee83f5637a25c1e7adb13d34cd10a4686d4 (diff) | |
download | hercules-bf5b2da6f9a395e280c5806456cfe3f7ccf3aaa6.tar.gz hercules-bf5b2da6f9a395e280c5806456cfe3f7ccf3aaa6.tar.bz2 hercules-bf5b2da6f9a395e280c5806456cfe3f7ccf3aaa6.tar.xz hercules-bf5b2da6f9a395e280c5806456cfe3f7ccf3aaa6.zip |
Add packet ZC_ITEM_PREVIEW.
It allow show item preview in already opened preview window.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 6f3f3aeb1..c786e2457 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -451,6 +451,11 @@ enum packet_headers { #else guildLeave = 0x15a, #endif +#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 + itemPreview = 0xb13, +#else + itemPreview = 0xab9, +#endif }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -2872,6 +2877,17 @@ struct PACKET_ZC_CAMERA_INFO { float latitude; } __attribute__((packed)); +struct PACKET_ZC_ITEM_PREVIEW { + int16 packetType; + int16 index; +#if PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 + int8 isDamaged; +#endif + int16 refiningLevel; + struct EQUIPSLOTINFO slot; + struct ItemOptions option_data[MAX_ITEM_OPTIONS]; +} __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) |