summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 49a0b39fb..4ad6e409e 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -231,4 +231,17 @@ void InventoryHandler::identifyItem(const Item *const item) const
"item index");
}
+void InventoryHandler::mergeItemsAck(const std::vector<Item*> &items) const
+{
+ createOutPacket(CMSG_MERGE_ITEM_ACK);
+ const size_t sz = items.size();
+ outMsg.writeInt16(CAST_S16(sz * 2 + 4),
+ "len");
+ FOR_EACH (std::vector<Item*>::const_iterator, it, items)
+ {
+ outMsg.writeInt16((*it)->getInvIndex() + 2,
+ "item index");
+ }
+}
+
} // namespace EAthena