From 2b164edff18d15e87c16cbc0c77973154489d854 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Apr 2020 04:41:12 +0300 Subject: Add packet CZ_LAPINEUPGRADE_CLOSE --- src/map/clif.c | 8 ++++++++ src/map/clif.h | 1 + src/map/packets.h | 4 ++++ src/map/packets_struct.h | 7 +++++++ 4 files changed, 20 insertions(+) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index 5c8e71a73..fcbd29388 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -23883,6 +23883,13 @@ static bool clif_lapineUpgrade_open(struct map_session_data *sd, int item_id) #endif // PACKETVER_MAIN_NUM >= 20170726 || PACKETVER_RE_NUM >= 20170621 || defined(PACKETVER_ZERO) } +static void clif_parse_lapineUpgrade_close(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); +static void clif_parse_lapineUpgrade_close(int fd, struct map_session_data *sd) +{ +#if PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) +#endif // PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) +} + /*========================================== * Main client packet processing function *------------------------------------------*/ @@ -25129,5 +25136,6 @@ void clif_defaults(void) clif->plapineDdukDdak_ack = clif_parse_lapineDdukDdak_ack; clif->plapineDdukDdak_close = clif_parse_lapineDdukDdak_close; clif->lapineUpgrade_open = clif_lapineUpgrade_open; + clif->pLapineUpgrade_close = clif_parse_lapineUpgrade_close; clif->pReqGearOff = clif_parse_reqGearOff; } diff --git a/src/map/clif.h b/src/map/clif.h index 882e8691f..f2bbdc661 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -1691,6 +1691,7 @@ struct clif_interface { void (*plapineDdukDdak_ack) (int fd, struct map_session_data *sd); void (*plapineDdukDdak_close) (int fd, struct map_session_data *sd); bool (*lapineUpgrade_open) (struct map_session_data *sd, int item_id); + void (*pLapineUpgrade_close) (int fd, struct map_session_data *sd); void (*pReqGearOff) (int fd, struct map_session_data *sd); }; diff --git a/src/map/packets.h b/src/map/packets.h index 1e6dc71bc..a27d0c4f8 100644 --- a/src/map/packets.h +++ b/src/map/packets.h @@ -1824,6 +1824,10 @@ packet(0x96e,clif->ackmergeitems); packet(0x0aa4, clif->pRefineryUIClose); #endif +#if PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) + packet(0x0ab5, clif->pLapineUpgrade_close); +#endif + // 2017-02-28aRagexeRE #if PACKETVER >= 20170228 // new packets diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index f4c4dd1bc..13a78fb21 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3903,6 +3903,13 @@ struct PACKET_ZC_LAPINEUPGRADE_OPEN { DEFINE_PACKET_HEADER(ZC_LAPINEUPGRADE_OPEN, 0x0ab4); #endif +#if PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) +struct PACKET_CZ_LAPINEUPGRADE_CLOSE { + int16 packetType; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_LAPINEUPGRADE_CLOSE, 0x0ab5); +#endif // PACKETVER_MAIN_NUM >= 20160504 || PACKETVER_RE_NUM >= 20160504 || defined(PACKETVER_ZERO) + #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 -- cgit v1.2.3-70-g09d2