From f8a668055872b0c542e0a8bf7b4637bc2f6ae9f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Apr 2020 06:34:18 +0300 Subject: Add packet CZ_LAPINEUPGRADE_MAKE_ITEM (unimplimented) --- src/map/clif.c | 9 +++++++++ src/map/clif.h | 1 + src/map/packets.h | 1 + src/map/packets_struct.h | 13 ++++++++++++- 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/map/clif.c b/src/map/clif.c index fcbd29388..c16de60e2 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -23890,6 +23890,14 @@ static void clif_parse_lapineUpgrade_close(int fd, struct map_session_data *sd) #endif // PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) } +static void clif_parse_lapineUpgrade_makeItem(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); +static void clif_parse_lapineUpgrade_makeItem(int fd, struct map_session_data *sd) +{ +#if PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) + ShowError("Lapin upgrade not implimented yet"); +#endif // PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) +} + /*========================================== * Main client packet processing function *------------------------------------------*/ @@ -25137,5 +25145,6 @@ void clif_defaults(void) clif->plapineDdukDdak_close = clif_parse_lapineDdukDdak_close; clif->lapineUpgrade_open = clif_lapineUpgrade_open; clif->pLapineUpgrade_close = clif_parse_lapineUpgrade_close; + clif->pLapineUpgrade_makeItem = clif_parse_lapineUpgrade_makeItem; clif->pReqGearOff = clif_parse_reqGearOff; } diff --git a/src/map/clif.h b/src/map/clif.h index f2bbdc661..6a5db8ab4 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -1692,6 +1692,7 @@ struct clif_interface { 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 (*pLapineUpgrade_makeItem) (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 a27d0c4f8..e30acbdf7 100644 --- a/src/map/packets.h +++ b/src/map/packets.h @@ -1826,6 +1826,7 @@ packet(0x96e,clif->ackmergeitems); #if PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || defined(PACKETVER_ZERO) packet(0x0ab5, clif->pLapineUpgrade_close); + packet(0x0ab6, clif->pLapineUpgrade_makeItem); #endif // 2017-02-28aRagexeRE diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 13a78fb21..7ddddcc8b 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3908,7 +3908,18 @@ 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) + +struct PACKET_CZ_LAPINEUPGRADE_MAKE_ITEM { + int16 packetType; +#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114 + uint32 itemId; +#else + uint16 itemId; +#endif + uint16 index; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_LAPINEUPGRADE_MAKE_ITEM, 0x0ab6); +#endif // PACKETVER_MAIN_NUM >= 20170111 || PACKETVER_RE_NUM >= 20170111 || 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) -- cgit v1.2.3-60-g2f50