summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-12 17:44:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-12 17:44:36 +0300
commit48c215204404187e69b60c912c345429bcd37934 (patch)
treef9706240e8414636100fd481d7bc6febc8a6a27f /src
parentee3321098ab5ffd71a4809b035a39c06884da2d2 (diff)
downloadmanaverse-48c215204404187e69b60c912c345429bcd37934.tar.gz
manaverse-48c215204404187e69b60c912c345429bcd37934.tar.bz2
manaverse-48c215204404187e69b60c912c345429bcd37934.tar.xz
manaverse-48c215204404187e69b60c912c345429bcd37934.zip
Add packet SMSG_BUYINGSTORE_REPORT 0x09e6.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/buyingstorerecv.cpp12
-rw-r--r--src/net/eathena/packetsin.inc1
2 files changed, 12 insertions, 1 deletions
diff --git a/src/net/eathena/buyingstorerecv.cpp b/src/net/eathena/buyingstorerecv.cpp
index 71396df4c..4480a01bf 100644
--- a/src/net/eathena/buyingstorerecv.cpp
+++ b/src/net/eathena/buyingstorerecv.cpp
@@ -196,7 +196,17 @@ void BuyingStoreRecv::processBuyingStoreReport(Net::MessageIn &msg)
UNIMPLIMENTEDPACKET;
msg.readInt16("item id");
msg.readInt16("amount");
- msg.readInt32("money limit");
+ if (msg.getVersion() >= 20141016)
+ {
+ msg.readInt32("money");
+ msg.readInt32("money limit");
+ msg.readInt32("char id");
+ msg.readInt32("date");
+ }
+ else
+ {
+ msg.readInt32("money limit");
+ }
}
void BuyingStoreRecv::processBuyingStoreDeleteItem(Net::MessageIn &msg)
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index 2058857b7..44482a2eb 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -777,6 +777,7 @@ packet(SMSG_ROULETTE_RECV_ITEM_ACK, 0x0a22, 5, &RouletteRecv::processRo
if (packetVersion >= 20141016)
{
packet(SMSG_VENDING_REPORT, 0x09e5, 18, &VendingRecv::processReport, 20141016);
+ packet(SMSG_BUYINGSTORE_REPORT, 0x09e6, 22, &BuyingStoreRecv::processBuyingStoreReport, 20141016);
}
// 20141022