summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-07 15:34:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-07 15:34:58 +0300
commit64ed5cd18dca0d5eb08302d552a09f03d9ceeb10 (patch)
treeb608836a222dc7af4c5d9e4da0af01717ca28b12 /src/net/eathena/vendinghandler.cpp
parent9f37c6e32dedd9b91aae09038de5e3fa1ab84513 (diff)
downloadManaVerse-64ed5cd18dca0d5eb08302d552a09f03d9ceeb10.tar.gz
ManaVerse-64ed5cd18dca0d5eb08302d552a09f03d9ceeb10.tar.bz2
ManaVerse-64ed5cd18dca0d5eb08302d552a09f03d9ceeb10.tar.xz
ManaVerse-64ed5cd18dca0d5eb08302d552a09f03d9ceeb10.zip
eathena: add packet CMSG_VENDING_BUY2 0x0801.
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r--src/net/eathena/vendinghandler.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index e16e26fd8..e01040055 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -182,4 +182,20 @@ void VendingHandler::buy(const Being *const being,
outMsg.writeInt16(index, "index");
}
+void VendingHandler::buy2(const Being *const being,
+ const int vendId,
+ const int index,
+ const int amount) const
+{
+ if (!being)
+ return;
+
+ createOutPacket(CMSG_VENDING_BUY2);
+ outMsg.writeInt16(16, "len");
+ outMsg.writeInt32(being->getId(), "account id");
+ outMsg.writeInt32(vendId, "vend id");
+ outMsg.writeInt16(amount, "amount");
+ outMsg.writeInt16(index, "index");
+}
+
} // namespace EAthena