diff options
author | Ibrahem Hossam <hemagx2@gmail.com> | 2016-04-23 17:29:59 +0200 |
---|---|---|
committer | Ibrahem Hossam <hemagx2@gmail.com> | 2016-04-23 17:29:59 +0200 |
commit | 242c506676d3a8a42547992241dda7331f982d81 (patch) | |
tree | b42a95009620c3ba71329ac57b30c22d9af848a2 /src/map/packets_struct.h | |
parent | 2dc732fe12f9748a2601f06ea8e4c2848de4b6f1 (diff) | |
parent | 654a8c90afe0671323b75bb2d718912a0abf6ac7 (diff) | |
download | hercules-242c506676d3a8a42547992241dda7331f982d81.tar.gz hercules-242c506676d3a8a42547992241dda7331f982d81.tar.bz2 hercules-242c506676d3a8a42547992241dda7331f982d81.tar.xz hercules-242c506676d3a8a42547992241dda7331f982d81.zip |
Merge pull request #1263 from HerculesWS/chatmessage_terminator
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 25b20cddf..888d893b6 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -1215,6 +1215,19 @@ struct packet_quest_list_header { //struct packet_quest_list_info list[]; // Variable-length } __attribute__((packed)); +struct packet_chat_message { + uint16 packet_id; + int16 packet_len; + char message[]; +} __attribute__((packed)); + +struct packet_whisper_message { + uint16 packet_id; + int16 packet_len; + char name[NAME_LENGTH]; + char message[]; +} __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 |