diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-18 17:36:25 +0530 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-03-13 07:52:57 +0000 |
commit | d02ebf0532fe251bfac6c6aec78e72eb64156bd7 (patch) | |
tree | 44f4b87e9a429a97008386026a04beee7bb786a5 /src/map/packets_struct.h | |
parent | 974c7f982484341b58bf85c517bc81ab3b0e5ebe (diff) | |
download | hercules-d02ebf0532fe251bfac6c6aec78e72eb64156bd7.tar.gz hercules-d02ebf0532fe251bfac6c6aec78e72eb64156bd7.tar.bz2 hercules-d02ebf0532fe251bfac6c6aec78e72eb64156bd7.tar.xz hercules-d02ebf0532fe251bfac6c6aec78e72eb64156bd7.zip |
Added quest_notify_objective and its packet
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index e7920aba4..d8a2c6b31 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -367,6 +367,7 @@ enum packet_headers { #else questUpdateType = 0x2b5, #endif // PACKETVER < 20150513 + questUpdateType2 = 0x8fe, }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -1675,7 +1676,28 @@ struct packet_quest_update_header { uint16 PacketLength; int16 count; struct packet_quest_update_hunt objectives[]; -} __attribute__((packed)); +} __attribute__((packed)); + +/** + * Header for: + * PACKET_MOB_HUNTING (PACKETVER >= 20150513) + */ +struct packet_quest_hunt_info_sub { + uint32 questID; + uint32 mob_id; + int16 maxCount; + int16 count; +} __attribute__((packed)); + +/** + * Header for: + * ZC_HUNTING_QUEST_INFO (PACKETVER >= 20150513) + */ +struct packet_quest_hunt_info { + uint16 PacketType; + uint16 PacketLength; + struct packet_quest_hunt_info_sub info[]; +} __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) |