diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-18 16:48:12 +0530 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-03-12 18:06:07 +0000 |
commit | 8e8e0a2da0f9696c5965e79237642b3dee36dd78 (patch) | |
tree | df585afc832dbb90887b3940cb11a187bcc4dd92 /src/map/packets_struct.h | |
parent | 6234d9e5a1c7ef248efc743a0e14ec7758f1fdac (diff) | |
download | hercules-8e8e0a2da0f9696c5965e79237642b3dee36dd78.tar.gz hercules-8e8e0a2da0f9696c5965e79237642b3dee36dd78.tar.bz2 hercules-8e8e0a2da0f9696c5965e79237642b3dee36dd78.tar.xz hercules-8e8e0a2da0f9696c5965e79237642b3dee36dd78.zip |
Changed ADD_QUEST packet to structure form
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index f75d0f24a..c8ed85947 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -357,6 +357,7 @@ enum packet_headers { clanLeave = 0x0989, ///< ZC_ACK_CLAN_LEAVE clanMessage = 0x098E, ///< ZC_NOTIFY_CLAN_CHAT #endif + questAddType = 0x2b3, }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -1607,6 +1608,30 @@ struct PACKET_ZC_NOTIFY_CLAN_CHAT { char Message[]; } __attribute__((packed)); +/** + * PACKET_ZC_MISSION_HUNT (PACKETVER < 20150513) + */ +struct packet_quest_hunt_sub { + int32 mob_id; + int16 huntCount; + char mobName[NAME_LENGTH]; +} __attribute__((packed)); + +/** + * Header for: + * PACKET_ZC_ADD_QUEST (PACKETVER < 20150513) + * + */ +struct packet_quest_add_header { + uint16 PacketType; + uint32 questID; + uint8 active; + int32 quest_svrTime; + int32 quest_endTime; + int16 count; + struct packet_quest_hunt_sub 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 |