summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 13:56:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 13:56:17 +0300
commitd9467cf2772464a05c08baabd3ffa3d9d396f2d6 (patch)
treeb477298e0c370374065c7aa3bb2b90d79b473662
parent2452dcf6d7a55fbccccfd7ea426d0e976023a52a (diff)
downloadmv-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.gz
mv-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.bz2
mv-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.xz
mv-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.zip
eathena: add partial support for packet SMSG_AUCTION_MESSAGE 0x0250.
-rw-r--r--src/net/eathena/auctionhandler.cpp10
-rw-r--r--src/net/eathena/auctionhandler.h2
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
4 files changed, 14 insertions, 1 deletions
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp
index bcdc94aea..bbc6258bb 100644
--- a/src/net/eathena/auctionhandler.cpp
+++ b/src/net/eathena/auctionhandler.cpp
@@ -42,6 +42,7 @@ AuctionHandler::AuctionHandler() :
SMSG_AUCTION_OPEN_WINDOW,
SMSG_AUCTION_RESULTS,
SMSG_AUCTION_SET_ITEM,
+ SMSG_AUCTION_MESSAGE,
0
};
handledMessages = _messages;
@@ -64,6 +65,10 @@ void AuctionHandler::handleMessage(Net::MessageIn &msg)
processAuctionSetItem(msg);
break;
+ case SMSG_AUCTION_MESSAGE:
+ processAuctionMessage(msg);
+ break;
+
default:
break;
}
@@ -104,6 +109,11 @@ void AuctionHandler::processAuctionSetItem(Net::MessageIn &msg)
msg.readUInt8("flag");
}
+void AuctionHandler::processAuctionMessage(Net::MessageIn &msg)
+{
+ msg.readUInt8("message");
+}
+
void AuctionHandler::cancelRequest() const
{
createOutPacket(CMSG_AUCTION_CANCEL_REQUEST);
diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h
index d1c4a2b53..d784b5cf9 100644
--- a/src/net/eathena/auctionhandler.h
+++ b/src/net/eathena/auctionhandler.h
@@ -47,6 +47,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
static void processAuctionResults(Net::MessageIn &msg);
static void processAuctionSetItem(Net::MessageIn &msg);
+
+ static void processAuctionMessage(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 1cfb4c94b..305c5a945 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -89,7 +89,7 @@ int16_t packet_lengths[] =
12, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// #0x0240
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, -1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 6,
+ 3, 0, -1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 6,
6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// #0x0280
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index e57cfd197..dc2061607 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -303,6 +303,7 @@
#define SMSG_AUCTION_OPEN_WINDOW 0x025f
#define SMSG_AUCTION_RESULTS 0x0252
#define SMSG_AUCTION_SET_ITEM 0x0256
+#define SMSG_AUCTION_MESSAGE 0x0250
#define SMSG_ELEMENTAL_UPDATE_STATUS 0x081e
#define SMSG_ELEMENTAL_INFO 0x081d