summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-12-13 20:21:44 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-14 01:23:00 +0300
commitc34b4fbb432350c3632800b53a143a8f54ab7dbc (patch)
tree570fd3ce739af4cd364fd8880146f25300cfae60 /src/map/clif.c
parent8e1e7ee7fbf3785d77768ea36e63d4008293b0d0 (diff)
downloadhercules-c34b4fbb432350c3632800b53a143a8f54ab7dbc.tar.gz
hercules-c34b4fbb432350c3632800b53a143a8f54ab7dbc.tar.bz2
hercules-c34b4fbb432350c3632800b53a143a8f54ab7dbc.tar.xz
hercules-c34b4fbb432350c3632800b53a143a8f54ab7dbc.zip
Add packt ZC_INVENTORY_EXPANSION_INFO
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 45f029487..e1e06d890 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3064,6 +3064,20 @@ static void clif_cartItems(struct map_session_data *sd, enum inventory_type type
}
}
+static void clif_inventoryExpansionInfo(struct map_session_data *sd)
+{
+#if PACKETVER_ZERO_NUM >= 20181212
+ nullpo_retv(sd);
+
+ const int fd = sd->fd;
+ WFIFOHEAD(fd, sizeof(struct PACKET_ZC_INVENTORY_EXPANSION_INFO));
+ struct PACKET_ZC_INVENTORY_EXPANSION_INFO *p = WFIFOP(fd, 0);
+ p->packetType = HEADER_ZC_INVENTORY_EXPANSION_INFO;
+ p->expansionSize = sd->inventorySize - FIXED_INVENTORY_SIZE;
+ WFIFOSET(fd, sizeof(struct PACKET_ZC_INVENTORY_EXPANSION_INFO));
+#endif
+}
+
/// Removes cart (ZC_CARTOFF).
/// 012b
/// Client behavior:
@@ -22529,6 +22543,7 @@ void clif_defaults(void)
clif->equipItems = clif_equipItems;
clif->cartList = clif_cartList;
clif->cartItems = clif_cartItems;
+ clif->inventoryExpansionInfo = clif_inventoryExpansionInfo;
clif->favorite_item = clif_favorite_item;
clif->clearcart = clif_clearcart;
clif->item_identify_list = clif_item_identify_list;