diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-18 12:22:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-18 12:22:19 +0300 |
commit | c9418c55fab6be4151d7a540daa01542d16a2ddd (patch) | |
tree | 5a29b442d56791ad82b254ceae3323bd36950f33 /src/net/eathena/cashshophandler.cpp | |
parent | f1e11793e780d41f2200fa7344328488d9275dfd (diff) | |
download | manaplus-c9418c55fab6be4151d7a540daa01542d16a2ddd.tar.gz manaplus-c9418c55fab6be4151d7a540daa01542d16a2ddd.tar.bz2 manaplus-c9418c55fab6be4151d7a540daa01542d16a2ddd.tar.xz manaplus-c9418c55fab6be4151d7a540daa01542d16a2ddd.zip |
eathena: add partial support for packet SMSG_NPC_CASH_POINTS 0x0845.
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 67d50cd21..5cc0529a7 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -47,6 +47,7 @@ CashShopHandler::CashShopHandler() : { SMSG_NPC_CASH_SHOP_OPEN, SMSG_NPC_CASH_BUY_ACK, + SMSG_NPC_CASH_POINTS, 0 }; handledMessages = _messages; @@ -66,6 +67,10 @@ void CashShopHandler::handleMessage(Net::MessageIn &msg) processCashShopBuyAck(msg); break; + case SMSG_NPC_CASH_POINTS: + processCashShopPoints(msg); + break; + default: break; } @@ -100,6 +105,13 @@ void CashShopHandler::processCashShopBuyAck(Net::MessageIn &msg) msg.readInt16("error"); } +void CashShopHandler::processCashShopPoints(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("cash points"); + msg.readInt32("kafra points"); +} + void CashShopHandler::buyItem(const int points, const int itemId, const unsigned char color A_UNUSED, |