diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-13 20:08:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-05 22:22:04 +0300 |
commit | 3852f2b2759f203622361f8e420d59a40ccdc5bf (patch) | |
tree | 7a636c4b4ac83a7c324982c90d867536ec5a991e /src/map/packets_struct.h | |
parent | b3523d70ebf3c69dc7f2410651be235bdac7232b (diff) | |
download | hercules-3852f2b2759f203622361f8e420d59a40ccdc5bf.tar.gz hercules-3852f2b2759f203622361f8e420d59a40ccdc5bf.tar.bz2 hercules-3852f2b2759f203622361f8e420d59a40ccdc5bf.tar.xz hercules-3852f2b2759f203622361f8e420d59a40ccdc5bf.zip |
Rename packet_reqnameall_ack into PACKET_ZC_ACK_REQNAMEALL
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index ed31c6c59..875c7ccbd 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -418,11 +418,6 @@ enum packet_headers { buyingStoreUpdateItemType = 0x81b, #endif reqName = 0x95, -#if PACKETVER_MAIN_NUM >= 20150225 || PACKETVER_RE_NUM >= 20141126 || defined(PACKETVER_ZERO) - reqNameAllType = 0xA30, -#else - reqNameAllType = 0x195, -#endif #if PACKETVER_MAIN_NUM >= 20170502 || PACKETVER_RE_NUM >= 20170419 || defined(PACKETVER_ZERO) skilWarpPointType = 0xabe, #else @@ -2787,17 +2782,28 @@ struct packet_reqname_ack { } __attribute__((packed)); // ZC_ACK_REQNAMEALL / ZC_ACK_REQNAMEALL2 -struct packet_reqnameall_ack { +#if PACKETVER_MAIN_NUM >= 20150225 || PACKETVER_RE_NUM >= 20141126 || defined(PACKETVER_ZERO) +struct PACKET_ZC_ACK_REQNAMEALL { uint16 packet_id; int32 gid; char name[NAME_LENGTH]; char party_name[NAME_LENGTH]; char guild_name[NAME_LENGTH]; char position_name[NAME_LENGTH]; -#if PACKETVER_MAIN_NUM >= 20150225 || PACKETVER_RE_NUM >= 20141126 || defined(PACKETVER_ZERO) int32 title_id; -#endif } __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_ACK_REQNAMEALL, 0x0a30); +#else +struct PACKET_ZC_ACK_REQNAMEALL { + uint16 packet_id; + int32 gid; + char name[NAME_LENGTH]; + char party_name[NAME_LENGTH]; + char guild_name[NAME_LENGTH]; + char position_name[NAME_LENGTH]; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_ACK_REQNAMEALL, 0x0195); +#endif struct PACKET_ZC_OVERWEIGHT_PERCENT { int16 packetType; |