diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-18 17:04:50 +0530 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-03-12 18:06:29 +0000 |
commit | 7a73c1cef1a60cc7282e1f60b5ed8e4a79d0dae7 (patch) | |
tree | 71f0db233a7f57923fdfca389b6a2867f778460f /src/map/packets_struct.h | |
parent | 4896facf53cf6d6ea60dba22f72389721d502673 (diff) | |
download | hercules-7a73c1cef1a60cc7282e1f60b5ed8e4a79d0dae7.tar.gz hercules-7a73c1cef1a60cc7282e1f60b5ed8e4a79d0dae7.tar.bz2 hercules-7a73c1cef1a60cc7282e1f60b5ed8e4a79d0dae7.tar.xz hercules-7a73c1cef1a60cc7282e1f60b5ed8e4a79d0dae7.zip |
Changed UPDATE_MISSION_HUNT packet to structure form
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 309c5f007..159aba98c 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -362,6 +362,7 @@ enum packet_headers { #else questAddType = 0x2b3, #endif // PACKETVER < 20150513 + questUpdateType = 0x2b5, }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -1645,6 +1646,27 @@ struct packet_quest_add_header { struct packet_quest_hunt_sub objectives[]; } __attribute__((packed)); +/** + * PACKET_MOB_HUNTING (PACKETVER < 20150513) + */ +struct packet_quest_update_hunt { + uint32 questID; + uint32 mob_id; + int16 maxCount; + int16 count; +} __attribute__((packed)); + +/** + * Header for: + * PACKET_ZC_UPDATE_MISSION_HUNT (PACKETVER < 20150513) + */ +struct packet_quest_update_header { + uint16 PacketType; + uint16 PacketLength; + int16 count; + struct packet_quest_update_hunt objectives[]; +} __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) #endif // not NetBSD < 6 / Solaris |