diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-04 19:03:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:57 +0300 |
commit | d3dda64049f13ca95bb86fe13c707b14039a7595 (patch) | |
tree | 78708e8730a03f435ad69dfc9a0818581d8ae948 /src | |
parent | 964fd34057c27c5b9ba0df94a6114968433bbf7e (diff) | |
download | manaplus-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')
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/eathena/tradehandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/tradehandler.h | 2 |
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 |