diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-05 22:58:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-05 22:58:06 +0300 |
commit | bc815d9c4667734c9855a83e71d963c3bd740145 (patch) | |
tree | 39e05368d9c584b2799af6af1a6f97b70f7fc074 /src/net/eathena/buyingstorehandler.cpp | |
parent | 037a653c92fca6e34f6f27c05efe70b8d4d95178 (diff) | |
download | manaverse-bc815d9c4667734c9855a83e71d963c3bd740145.tar.gz manaverse-bc815d9c4667734c9855a83e71d963c3bd740145.tar.bz2 manaverse-bc815d9c4667734c9855a83e71d963c3bd740145.tar.xz manaverse-bc815d9c4667734c9855a83e71d963c3bd740145.zip |
eathena: add packet CMSG_BUYINGSTORE_SELL 0x0811.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 42bd41c7b..4bbfce091 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -187,4 +187,22 @@ void BuyingStoreHandler::open(const Being *const being) const outMsg.writeInt32(being->getId(), "account id"); } +void BuyingStoreHandler::sell(const Being *const being, + const int storeId, + const int index, + const int itemId, + const int amount) const +{ + if (!being) + return; + + createOutPacket(CMSG_BUYINGSTORE_SELL); + outMsg.writeInt16(16, "len"); + outMsg.writeInt32(being->getId(), "account id"); + outMsg.writeInt32(storeId, "store id"); + outMsg.writeInt16(static_cast<int16_t>(index), "index"); + outMsg.writeInt16(static_cast<int16_t>(itemId), "item id"); + outMsg.writeInt16(static_cast<int16_t>(amount), "amount"); +} + } // namespace EAthena |