diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-24 15:22:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-24 15:22:18 +0300 |
commit | 1f7122e76f28ec851ef7d9361396575dde381287 (patch) | |
tree | cd77ab798b0f525b8870acb9c3bd87ee3ca62ab7 /src/net/eathena/cashshophandler.cpp | |
parent | 8f49aa549ba451768c6748ca0ffb2d5bdb5a0eaf (diff) | |
download | manaverse-1f7122e76f28ec851ef7d9361396575dde381287.tar.gz manaverse-1f7122e76f28ec851ef7d9361396575dde381287.tar.bz2 manaverse-1f7122e76f28ec851ef7d9361396575dde381287.tar.xz manaverse-1f7122e76f28ec851ef7d9361396575dde381287.zip |
eathena: add partial support for packet SMSG_NPC_CASH_BUY_ACK 0x0289.
Diffstat (limited to 'src/net/eathena/cashshophandler.cpp')
-rw-r--r-- | src/net/eathena/cashshophandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index 56e7bac25..2ae0c67be 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -36,6 +36,7 @@ CashShopHandler::CashShopHandler() : static const uint16_t _messages[] = { SMSG_NPC_CASH_SHOP_OPEN, + SMSG_NPC_CASH_BUY_ACK, 0 }; handledMessages = _messages; @@ -50,6 +51,10 @@ void CashShopHandler::handleMessage(Net::MessageIn &msg) processCashShopOpen(msg); break; + case SMSG_NPC_CASH_BUY_ACK: + processCashShopBuyAck(msg); + break; + default: break; } @@ -69,6 +74,13 @@ void CashShopHandler::processCashShopOpen(Net::MessageIn &msg) } } +void CashShopHandler::processCashShopBuyAck(Net::MessageIn &msg) +{ + msg.readInt32("cash points"); + msg.readInt32("kafra points"); + msg.readInt16("error"); +} + void CashShopHandler::buy(const int points, const int itemId, const unsigned char color A_UNUSED, |