summaryrefslogtreecommitdiff
path: root/src/net/eathena/cashshophandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-24 14:09:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-24 14:09:35 +0300
commit8f49aa549ba451768c6748ca0ffb2d5bdb5a0eaf (patch)
tree81583fc68b7886262c2caaa9d258372d15bb5852 /src/net/eathena/cashshophandler.cpp
parent21a671a5de9876ae79112b7a6da1259c2198300f (diff)
downloadplus-8f49aa549ba451768c6748ca0ffb2d5bdb5a0eaf.tar.gz
plus-8f49aa549ba451768c6748ca0ffb2d5bdb5a0eaf.tar.bz2
plus-8f49aa549ba451768c6748ca0ffb2d5bdb5a0eaf.tar.xz
plus-8f49aa549ba451768c6748ca0ffb2d5bdb5a0eaf.zip
eathena: add packet CMSG_NPC_CASH_SHOP_BUY 0x0288.
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 39db23b04..56e7bac25 100644
--- a/src/net/eathena/cashshophandler.cpp
+++ b/src/net/eathena/cashshophandler.cpp
@@ -20,6 +20,7 @@
#include "net/eathena/cashshophandler.h"
+#include "net/eathena/messageout.h"
#include "net/eathena/protocol.h"
#include "debug.h"
@@ -68,4 +69,17 @@ void CashShopHandler::processCashShopOpen(Net::MessageIn &msg)
}
}
+void CashShopHandler::buy(const int points,
+ const int itemId,
+ const unsigned char color A_UNUSED,
+ const int amount) const
+{
+ createOutPacket(CMSG_NPC_CASH_SHOP_BUY);
+ outMsg.writeInt16(10 + 4, "len");
+ outMsg.writeInt32(points, "points");
+ outMsg.writeInt16(1, "count");
+ outMsg.writeInt16(amount, "amount");
+ outMsg.writeInt16(itemId, "item id");
+}
+
} // namespace EAthena