diff options
author | Haru <haru@dotalux.com> | 2017-10-21 17:48:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-21 17:48:13 +0200 |
commit | d1691ef81112667c2cfb3ae74a074a6debd4af53 (patch) | |
tree | c8c1126b5407fcfe8fe43b1db14e3970c656eda8 /src/map/packets_struct.h | |
parent | e5d9b3768241a7e91bf8dd9bf8b776d4cee310d7 (diff) | |
parent | ec9f4b20aca50905d635db6d1e5398918a6dba5d (diff) | |
download | hercules-d1691ef81112667c2cfb3ae74a074a6debd4af53.tar.gz hercules-d1691ef81112667c2cfb3ae74a074a6debd4af53.tar.bz2 hercules-d1691ef81112667c2cfb3ae74a074a6debd4af53.tar.xz hercules-d1691ef81112667c2cfb3ae74a074a6debd4af53.zip |
Merge pull request #1859 from 4144/newpackets
Add shuffle packets for latest clients, fix rodex in 2017 clients, fix exp packets.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 207c345da..03b555e2b 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -318,10 +318,12 @@ enum packet_headers { rodexadditem = 0x0A05, rodexremoveitem = 0x0A07, rodexopenwrite = 0x0A12, -#if PACKETVER < 20160600 +#if PACKETVER < 20160601 rodexmailList = 0x09F0, -#else // PACKETVER >= 20160600 +#elif PACKETVER < 20170419 rodexmailList = 0x0A7D, +#else // PACKETVER >= 20170419 + rodexmailList = 0x0Ac2, #endif #if PACKETVER < 20160316 rodexcheckplayer = 0x0A14, @@ -1369,11 +1371,16 @@ struct PACKET_ZC_NOTIFY_UNREADMAIL { } __attribute__((packed)); struct maillistinfo { +#if PACKETVER >= 20170419 + uint8 openType; +#endif int64 MailID; int8 Isread; uint8 type; char SenderName[24]; +#if PACKETVER < 20170419 int32 regDateTime; +#endif int32 expireDateTime; int16 Titlelength; char title[]; @@ -1382,8 +1389,10 @@ struct maillistinfo { struct PACKET_ZC_MAIL_LIST { int16 PacketType; int16 PacketLength; +#if PACKETVER < 20170419 int8 opentype; int8 cnt; +#endif int8 IsEnd; } __attribute__((packed)); @@ -1395,8 +1404,13 @@ struct PACKET_CZ_REQ_NEXT_MAIL_LIST { struct PACKET_CZ_REQ_OPEN_MAIL { int16 PacketType; +#if PACKETVER >= 20170419 + int64 Upper_MailID; + int8 unknown[16]; +#else int8 opentype; int64 Upper_MailID; +#endif } __attribute__((packed)); struct PACKET_CZ_REQ_READ_MAIL { @@ -1429,8 +1443,13 @@ struct PACKET_ZC_ACK_DELETE_MAIL { struct PACKET_CZ_REQ_REFRESH_MAIL_LIST { int16 PacketType; +#if PACKETVER >= 20170419 + int64 Upper_MailID; + int8 unknown[16]; +#else int8 opentype; int64 Upper_MailID; +#endif } __attribute__((packed)); struct PACKET_CZ_REQ_ZENY_FROM_MAIL { |