diff options
author | ossi0110 <maikkempkes@alice.de> | 2015-10-21 12:24:32 +0200 |
---|---|---|
committer | ossi0110 <maikkempkes@alice.de> | 2015-10-21 20:58:40 +0200 |
commit | ce6e0f537fe2f513bb8881d07b37d0d6211e654b (patch) | |
tree | c7b3c8b7f39204de6e2ef5990cc1a754405e45f0 /src/map/packets_struct.h | |
parent | b993924a4b5e82f3961d6b5a579c0204c9e36809 (diff) | |
download | hercules-ce6e0f537fe2f513bb8881d07b37d0d6211e654b.tar.gz hercules-ce6e0f537fe2f513bb8881d07b37d0d6211e654b.tar.bz2 hercules-ce6e0f537fe2f513bb8881d07b37d0d6211e654b.tar.xz hercules-ce6e0f537fe2f513bb8881d07b37d0d6211e654b.zip |
Fixed Typos (+1 squashed commits)
Squashed commits:
[18d0374] Fixed Quest Log Packet for 2014-10-22 + Clients
Added log Folder to be able to capture Map Server Logs see map-server.conf for it
Added save folder to be able to dump unknown packets
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 8f9747747..58c17ef0a 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -257,6 +257,13 @@ enum packet_headers { rouletteinfoackType = 0xa1c, roulettgenerateackType = 0xa20, roulettercvitemackType = 0xa22, +#if 0 // Unknown + questListType = 0x9f8, ///< ZC_ALL_QUEST_LIST3 +#elif PACKETVER >= 20141022 + questListType = 0x97a, ///< ZC_ALL_QUEST_LIST2 +#else // PACKETVER < 20141022 + questListType = 0x2b1, ///< ZC_ALL_QUEST_LIST +#endif // PACKETVER >= 20141022 }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -1101,6 +1108,47 @@ struct packet_hotkey { } hotkey[MAX_HOTKEYS]; } __attribute__((packed)); +/** + * MISSION_HUNT_INFO + */ +struct packet_mission_info_sub { + int32 mob_id; + int16 huntCount; + int16 maxCount; + char mobName[NAME_LENGTH]; +} __attribute__((packed)); + +/** + * PACKET_ZC_ALL_QUEST_LIST2_INFO (PACKETVER >= 20141022) + * PACKET_ZC_ALL_QUEST_LIST3_INFO (PACKETVER Unknown) / unused + */ +struct packet_quest_list_info { + int32 questID; + int8 active; +#if PACKETVER >= 20141022 + int32 quest_svrTime; + int32 quest_endTime; + int16 hunting_count; + struct packet_mission_info_sub objectives[]; // Note: This will be < MAX_QUEST_OBJECTIVES +#endif // PACKETVER >= 20141022 +} __attribute__((packed)); + +/** + * Header for: + * PACKET_ZC_ALL_QUEST_LIST (PACKETVER < 20141022) + * PACKET_ZC_ALL_QUEST_LIST2 (PACKETVER >= 20141022) + * PACKET_ZC_ALL_QUEST_LIST3 (PACKETVER Unknown) / unused + * + * @remark + * Contains (is followed by) a variable-length array of packet_quest_list_info + */ +struct packet_quest_list_header { + uint16 PacketType; + uint16 PacketLength; + int32 questCount; + //struct packet_quest_list_info list[]; // Variable-length +} __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 |