summaryrefslogtreecommitdiff
path: root/src/net
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
parent964fd34057c27c5b9ba0df94a6114968433bbf7e (diff)
downloadmanaplus-d3dda64049f13ca95bb86fe13c707b14039a7595.tar.gz
manaplus-d3dda64049f13ca95bb86fe13c707b14039a7595.tar.bz2
manaplus-d3dda64049f13ca95bb86fe13c707b14039a7595.tar.xz
manaplus-d3dda64049f13ca95bb86fe13c707b14039a7595.zip
eathena: impliment packet SMSG_TRADE_RESPONSE2 0x01f5.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/tradehandler.cpp12
-rw-r--r--src/net/eathena/tradehandler.h2
3 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index da630fae0..12381a15e 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -128,6 +128,7 @@
// Receiving a request to trade
#define SMSG_TRADE_REQUEST 0x01f4
#define SMSG_TRADE_RESPONSE 0x00e7
+#define SMSG_TRADE_RESPONSE2 0x01f5
#define SMSG_TRADE_ITEM_ADD 0x00e9
#define SMSG_TRADE_ITEM_ADD_RESPONSE 0x01b1 /**< Not standard eAthena! */
#define SMSG_TRADE_OK 0x00ec
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
diff --git a/src/net/eathena/tradehandler.h b/src/net/eathena/tradehandler.h
index eb50d65c0..f112c8426 100644
--- a/src/net/eathena/tradehandler.h
+++ b/src/net/eathena/tradehandler.h
@@ -56,6 +56,8 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler
protected:
void processTradeRequest(Net::MessageIn &msg) const;
+
+ void processTradeResponse2(Net::MessageIn &msg) const;
};
} // namespace EAthena