diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-26 19:31:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-05 22:24:25 +0300 |
commit | 19a162b61f14883ae0a2e25b6252796cc4c77cb9 (patch) | |
tree | 1c74fe43af0cd31bd7d26b63ff5501b3e7b74ec3 /src/map/packets_struct.h | |
parent | 554072b191c0aadab9e874d6ec0e7b954477e595 (diff) | |
download | hercules-19a162b61f14883ae0a2e25b6252796cc4c77cb9.tar.gz hercules-19a162b61f14883ae0a2e25b6252796cc4c77cb9.tar.bz2 hercules-19a162b61f14883ae0a2e25b6252796cc4c77cb9.tar.xz hercules-19a162b61f14883ae0a2e25b6252796cc4c77cb9.zip |
Move packet ZC_SE_PC_BUY_CASHITEM_RESULT into separate function and convert to struct
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index a660de67b..45683596f 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3308,6 +3308,17 @@ struct PACKET_ZC_MERGE_ITEM_OPEN { DEFINE_PACKET_HEADER(ZC_MERGE_ITEM_OPEN, 0x096d); #endif +#if PACKETVER_MAIN_NUM >= 20101123 || PACKETVER_RE_NUM >= 20120328 || defined(PACKETVER_ZERO) +struct PACKET_ZC_SE_PC_BUY_CASHITEM_RESULT { + int16 packetType; + uint32 itemId; // unused + uint16 result; + uint32 cashPoints; + uint32 kafraPoints; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_SE_PC_BUY_CASHITEM_RESULT, 0x0849); +#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 |