summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/eathena/protocol.h2
-rw-r--r--src/net/eathena/tradehandler.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index eba7edc77..da630fae0 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -126,7 +126,7 @@
#define SMSG_WALK_RESPONSE 0x0087
// Receiving a request to trade
-#define SMSG_TRADE_REQUEST 0x00e5
+#define SMSG_TRADE_REQUEST 0x01f4
#define SMSG_TRADE_RESPONSE 0x00e7
#define SMSG_TRADE_ITEM_ADD 0x00e9
#define SMSG_TRADE_ITEM_ADD_RESPONSE 0x01b1 /**< Not standard eAthena! */
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp
index 1d9fabaa0..0e893caf9 100644
--- a/src/net/eathena/tradehandler.cpp
+++ b/src/net/eathena/tradehandler.cpp
@@ -148,7 +148,10 @@ void TradeHandler::cancel() const
void TradeHandler::processTradeRequest(Net::MessageIn &msg) const
{
- processTradeRequestContinue(msg.readString(24, "name"));
+ const std::string &partner = msg.readString(24, "name");
+ msg.readInt32("char id");
+ msg.readInt16("base level");
+ processTradeRequestContinue(partner);
}
} // namespace EAthena