summaryrefslogtreecommitdiff
path: root/src/net/eathena/cashshophandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-18 12:34:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-18 12:34:33 +0300
commit0b5fa147dc1f6a808ef3c645d03bcb9eb0a1b17f (patch)
tree5bd50c61e2dfe5e936da44c779a38dff115391df /src/net/eathena/cashshophandler.cpp
parentc9418c55fab6be4151d7a540daa01542d16a2ddd (diff)
downloadmanaverse-0b5fa147dc1f6a808ef3c645d03bcb9eb0a1b17f.tar.gz
manaverse-0b5fa147dc1f6a808ef3c645d03bcb9eb0a1b17f.tar.bz2
manaverse-0b5fa147dc1f6a808ef3c645d03bcb9eb0a1b17f.tar.xz
manaverse-0b5fa147dc1f6a808ef3c645d03bcb9eb0a1b17f.zip
eathena: add partial support for packet SMSG_NPC_CASH_BUY 0x0849.
Diffstat (limited to 'src/net/eathena/cashshophandler.cpp')
-rw-r--r--src/net/eathena/cashshophandler.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp
index 5cc0529a7..a001b1f2e 100644
--- a/src/net/eathena/cashshophandler.cpp
+++ b/src/net/eathena/cashshophandler.cpp
@@ -48,6 +48,7 @@ CashShopHandler::CashShopHandler() :
SMSG_NPC_CASH_SHOP_OPEN,
SMSG_NPC_CASH_BUY_ACK,
SMSG_NPC_CASH_POINTS,
+ SMSG_NPC_CASH_BUY,
0
};
handledMessages = _messages;
@@ -71,6 +72,10 @@ void CashShopHandler::handleMessage(Net::MessageIn &msg)
processCashShopPoints(msg);
break;
+ case SMSG_NPC_CASH_BUY:
+ processCashShopBuy(msg);
+ break;
+
default:
break;
}
@@ -112,6 +117,15 @@ void CashShopHandler::processCashShopPoints(Net::MessageIn &msg)
msg.readInt32("kafra points");
}
+void CashShopHandler::processCashShopBuy(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readInt32("id");
+ msg.readInt16("result");
+ msg.readInt32("cash points");
+ msg.readInt32("kafra points");
+}
+
void CashShopHandler::buyItem(const int points,
const int itemId,
const unsigned char color A_UNUSED,