summaryrefslogtreecommitdiff
path: root/src/net/eathena/barterrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/barterrecv.cpp')
-rw-r--r--src/net/eathena/barterrecv.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/barterrecv.cpp b/src/net/eathena/barterrecv.cpp
index b1b46f528..254bf9d85 100644
--- a/src/net/eathena/barterrecv.cpp
+++ b/src/net/eathena/barterrecv.cpp
@@ -37,4 +37,19 @@ namespace BarterRecv
} // namespace BarterRecv
+void BarterRecv::processOpenShop(Net::MessageIn &msg)
+{
+ const int count = (msg.readInt16("len") - 4) / (itemIdLen * 2 + 17);
+ for (int f = 0; f < count; f ++)
+ {
+ msg.readItemId("item id");
+ msg.readUInt8("item type");
+ msg.readInt32("amount");
+ msg.readItemId("currency item id");
+ msg.readInt32("currency amount");
+ msg.readInt32("weight");
+ msg.readInt32("shop index");
+ }
+}
+
} // namespace EAthena