summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-12-13 08:23:29 +0300
committerAndrei Karas <akaras@inbox.ru>2019-12-13 08:36:08 +0300
commit3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3 (patch)
treebb255692e83f0c733692dc8932fdba307c1a2474 /src/map/packets_struct.h
parent1f78dc3468f1a4afe1f8bd09ea340a715af1d206 (diff)
downloadhercules-3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3.tar.gz
hercules-3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3.tar.bz2
hercules-3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3.tar.xz
hercules-3acb36c33e06a8a7e226e43ff8656c8cffa2eeb3.zip
Convert packet CZ_SE_CASHSHOP_OPEN to structure and add new packet version
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index fa9a0c873..a98317364 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -3748,6 +3748,19 @@ struct PACKET_ZC_NOTIFY_EFFECT3 {
DEFINE_PACKET_HEADER(ZC_NOTIFY_EFFECT3, 0x0284);
#endif
+#if PACKETVER >= 20190724
+struct PACKET_CZ_SE_CASHSHOP_OPEN {
+ int16 packetType;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(CZ_SE_CASHSHOP_OPEN, 0x0b4c);
+CHECK_PACKET_HEADER(CZ_SE_CASHSHOP_OPEN, 0x0844);
+#elif PACKETVER >= 20100824
+struct PACKET_CZ_SE_CASHSHOP_OPEN {
+ int16 packetType;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(CZ_SE_CASHSHOP_OPEN, 0x0844);
+#endif
+
#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