diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-12-13 20:43:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-14 01:23:00 +0300 |
commit | aee153a9a56ab05464779082a711adc95fb28663 (patch) | |
tree | e99fd877d4a333c7265176d38d9f478918fa6751 /src/map/clif.c | |
parent | c34b4fbb432350c3632800b53a143a8f54ab7dbc (diff) | |
download | hercules-aee153a9a56ab05464779082a711adc95fb28663.tar.gz hercules-aee153a9a56ab05464779082a711adc95fb28663.tar.bz2 hercules-aee153a9a56ab05464779082a711adc95fb28663.tar.xz hercules-aee153a9a56ab05464779082a711adc95fb28663.zip |
Add packet ZC_ACK_INVENTORY_EXPAND
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index e1e06d890..34bdb4a2a 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3078,6 +3078,21 @@ static void clif_inventoryExpansionInfo(struct map_session_data *sd) #endif } +static void clif_inventoryExpandAck(struct map_session_data *sd, enum expand_inventory result, int itemId) +{ +#if PACKETVER_ZERO_NUM >= 20181212 + nullpo_retv(sd); + + const int fd = sd->fd; + WFIFOHEAD(fd, sizeof(struct PACKET_ZC_ACK_INVENTORY_EXPAND)); + struct PACKET_ZC_ACK_INVENTORY_EXPAND *p = WFIFOP(fd, 0); + p->packetType = HEADER_ZC_ACK_INVENTORY_EXPAND; + p->result = result; + p->itemId = itemId; + WFIFOSET(fd, sizeof(struct PACKET_ZC_ACK_INVENTORY_EXPAND)); +#endif +} + /// Removes cart (ZC_CARTOFF). /// 012b /// Client behavior: @@ -22544,6 +22559,7 @@ void clif_defaults(void) clif->cartList = clif_cartList; clif->cartItems = clif_cartItems; clif->inventoryExpansionInfo = clif_inventoryExpansionInfo; + clif->inventoryExpandAck = clif_inventoryExpandAck; clif->favorite_item = clif_favorite_item; clif->clearcart = clif_clearcart; clif->item_identify_list = clif_item_identify_list; |