summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r--src/net/eathena/vendinghandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index 10ced1a07..e342ccea8 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -38,6 +38,7 @@ VendingHandler::VendingHandler() :
SMSG_VENDING_SHOW_BOARD,
SMSG_VENDING_HIDE_BOARD,
SMSG_VENDING_ITEMS_LIST,
+ SMSG_VENDING_BUY_ACK,
0
};
handledMessages = _messages;
@@ -64,6 +65,10 @@ void VendingHandler::handleMessage(Net::MessageIn &msg)
processItemsList(msg);
break;
+ case SMSG_VENDING_BUY_ACK:
+ processBuyAck(msg);
+ break;
+
default:
break;
}
@@ -103,4 +108,11 @@ void VendingHandler::processItemsList(Net::MessageIn &msg)
}
}
+void VendingHandler::processBuyAck(Net::MessageIn &msg)
+{
+ msg.readInt16("inv index");
+ msg.readInt16("amount");
+ msg.readUInt8("flag");
+}
+
} // namespace EAthena