summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 14:11:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 14:11:47 +0300
commit0af4d61628a0b1d8d697101578ee90d3e2f90ea9 (patch)
treea0c56cbadbb9b760b932133015e30cb3fea73d07 /src/net
parentd9467cf2772464a05c08baabd3ffa3d9d396f2d6 (diff)
downloadManaVerse-0af4d61628a0b1d8d697101578ee90d3e2f90ea9.tar.gz
ManaVerse-0af4d61628a0b1d8d697101578ee90d3e2f90ea9.tar.bz2
ManaVerse-0af4d61628a0b1d8d697101578ee90d3e2f90ea9.tar.xz
ManaVerse-0af4d61628a0b1d8d697101578ee90d3e2f90ea9.zip
eathena: add partial support for packet SMSG_AUCTION_CLOSE 0x025d.
Diffstat (limited to 'src/net')
-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 bbc6258bb..e36785218 100644
--- a/src/net/eathena/auctionhandler.cpp
+++ b/src/net/eathena/auctionhandler.cpp
@@ -43,6 +43,7 @@ AuctionHandler::AuctionHandler() :
SMSG_AUCTION_RESULTS,
SMSG_AUCTION_SET_ITEM,
SMSG_AUCTION_MESSAGE,
+ SMSG_AUCTION_CLOSE,
0
};
handledMessages = _messages;
@@ -69,6 +70,10 @@ void AuctionHandler::handleMessage(Net::MessageIn &msg)
processAuctionMessage(msg);
break;
+ case SMSG_AUCTION_CLOSE:
+ processAuctionClose(msg);
+ break;
+
default:
break;
}
@@ -114,6 +119,11 @@ void AuctionHandler::processAuctionMessage(Net::MessageIn &msg)
msg.readUInt8("message");
}
+void AuctionHandler::processAuctionClose(Net::MessageIn &msg)
+{
+ msg.readInt16("flag");
+}
+
void AuctionHandler::cancelRequest() const
{
createOutPacket(CMSG_AUCTION_CANCEL_REQUEST);
diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h
index d784b5cf9..5cd5a4f43 100644
--- a/src/net/eathena/auctionhandler.h
+++ b/src/net/eathena/auctionhandler.h
@@ -49,6 +49,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
static void processAuctionSetItem(Net::MessageIn &msg);
static void processAuctionMessage(Net::MessageIn &msg);
+
+ static void processAuctionClose(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 305c5a945..8b9741ad1 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,
- 3, 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, 4, 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 dc2061607..532e9649a 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -304,6 +304,7 @@
#define SMSG_AUCTION_RESULTS 0x0252
#define SMSG_AUCTION_SET_ITEM 0x0256
#define SMSG_AUCTION_MESSAGE 0x0250
+#define SMSG_AUCTION_CLOSE 0x025d
#define SMSG_ELEMENTAL_UPDATE_STATUS 0x081e
#define SMSG_ELEMENTAL_INFO 0x081d