summaryrefslogtreecommitdiff
path: root/src/net/eathena/buyingstorehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-06 21:55:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-06 21:55:38 +0300
commit23a6cfe6fd8af082d2bb296f3a5efae9d1f834c9 (patch)
tree0fdb35a7b33ad0ad6fac6a3ff76f9592fb3e555f /src/net/eathena/buyingstorehandler.cpp
parent97a8156a1252806f8789fb6d4ae333b0e4cf88f6 (diff)
downloadManaVerse-23a6cfe6fd8af082d2bb296f3a5efae9d1f834c9.tar.gz
ManaVerse-23a6cfe6fd8af082d2bb296f3a5efae9d1f834c9.tar.bz2
ManaVerse-23a6cfe6fd8af082d2bb296f3a5efae9d1f834c9.tar.xz
ManaVerse-23a6cfe6fd8af082d2bb296f3a5efae9d1f834c9.zip
eathena: add partial support for packet SMSG_BUYINGSTORE_REPORT 0x081b.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp
index 4ce4378bc..2356f6546 100644
--- a/src/net/eathena/buyingstorehandler.cpp
+++ b/src/net/eathena/buyingstorehandler.cpp
@@ -51,6 +51,7 @@ BuyingStoreHandler::BuyingStoreHandler() :
SMSG_BUYINGSTORE_HIDE_BOARD,
SMSG_BUYINGSTORE_ITEMS_LIST,
SMSG_BUYINGSTORE_SELL_FAILED,
+ SMSG_BUYINGSTORE_REPORT,
0
};
handledMessages = _messages;
@@ -89,6 +90,10 @@ void BuyingStoreHandler::handleMessage(Net::MessageIn &msg)
processBuyingStoreSellFailed(msg);
break;
+ case SMSG_BUYINGSTORE_REPORT:
+ processBuyingStoreReport(msg);
+ break;
+
default:
break;
}
@@ -179,6 +184,13 @@ void BuyingStoreHandler::processBuyingStoreSellFailed(Net::MessageIn &msg)
}
}
+void BuyingStoreHandler::processBuyingStoreReport(Net::MessageIn &msg)
+{
+ msg.readInt16("item id");
+ msg.readInt16("amount");
+ msg.readInt32("money limit");
+}
+
void BuyingStoreHandler::create(const std::string &name,
const int maxMoney,
const bool flag,