summaryrefslogtreecommitdiff
path: root/src/net/eathena/markethandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/markethandler.cpp')
-rw-r--r--src/net/eathena/markethandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/markethandler.cpp b/src/net/eathena/markethandler.cpp
index 915b850fd..4631abf03 100644
--- a/src/net/eathena/markethandler.cpp
+++ b/src/net/eathena/markethandler.cpp
@@ -73,4 +73,14 @@ void MarketHandler::close()
createOutPacket(CMSG_NPC_MARKET_CLOSE);
}
+void MarketHandler::buyItem(const int itemId,
+ const unsigned char color A_UNUSED,
+ const int amount) const
+{
+ createOutPacket(CMSG_NPC_MARKET_BUY);
+ outMsg.writeInt16(8, "len");
+ outMsg.writeInt16(static_cast<int16_t>(itemId), "item id");
+ outMsg.writeInt16(static_cast<int16_t>(amount), "amount");
+}
+
} // namespace EAthena