summaryrefslogtreecommitdiff
path: root/src/net/eathena/tradehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-04 19:03:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commitd3dda64049f13ca95bb86fe13c707b14039a7595 (patch)
tree78708e8730a03f435ad69dfc9a0818581d8ae948 /src/net/eathena/tradehandler.cpp
parent964fd34057c27c5b9ba0df94a6114968433bbf7e (diff)
downloadplus-d3dda64049f13ca95bb86fe13c707b14039a7595.tar.gz
plus-d3dda64049f13ca95bb86fe13c707b14039a7595.tar.bz2
plus-d3dda64049f13ca95bb86fe13c707b14039a7595.tar.xz
plus-d3dda64049f13ca95bb86fe13c707b14039a7595.zip
eathena: impliment packet SMSG_TRADE_RESPONSE2 0x01f5.
Diffstat (limited to 'src/net/eathena/tradehandler.cpp')
-rw-r--r--src/net/eathena/tradehandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp
index 0e893caf9..f73584deb 100644
--- a/src/net/eathena/tradehandler.cpp
+++ b/src/net/eathena/tradehandler.cpp
@@ -46,6 +46,7 @@ TradeHandler::TradeHandler() :
{
SMSG_TRADE_REQUEST,
SMSG_TRADE_RESPONSE,
+ SMSG_TRADE_RESPONSE2,
SMSG_TRADE_ITEM_ADD,
SMSG_TRADE_ITEM_ADD_RESPONSE,
SMSG_TRADE_OK,
@@ -70,6 +71,10 @@ void TradeHandler::handleMessage(Net::MessageIn &msg)
processTradeResponse(msg);
break;
+ case SMSG_TRADE_RESPONSE2:
+ processTradeResponse2(msg);
+ break;
+
case SMSG_TRADE_ITEM_ADD:
processTradeItemAdd(msg);
break;
@@ -154,4 +159,11 @@ void TradeHandler::processTradeRequest(Net::MessageIn &msg) const
processTradeRequestContinue(partner);
}
+void TradeHandler::processTradeResponse2(Net::MessageIn &msg) const
+{
+ msg.readUInt8("type");
+ msg.readInt32("char id");
+ msg.readInt16("base level");
+}
+
} // namespace EAthena