summaryrefslogtreecommitdiff
path: root/src/net/eathena/auctionhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 01:53:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 01:53:15 +0300
commit6ace9d3915924faf32340efba799deba2acc69ee (patch)
tree707a93bb9126cd0747014479c7dd75999c6c2c49 /src/net/eathena/auctionhandler.cpp
parent98daaa2544a5c0d907e438ce72913202c2c3c6ce (diff)
downloadmv-6ace9d3915924faf32340efba799deba2acc69ee.tar.gz
mv-6ace9d3915924faf32340efba799deba2acc69ee.tar.bz2
mv-6ace9d3915924faf32340efba799deba2acc69ee.tar.xz
mv-6ace9d3915924faf32340efba799deba2acc69ee.zip
eathena: add partial support for packet SMSG_AUCTION_SET_ITEM 0x0256.
Diffstat (limited to 'src/net/eathena/auctionhandler.cpp')
-rw-r--r--src/net/eathena/auctionhandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp
index be2a55067..4a4ebbb99 100644
--- a/src/net/eathena/auctionhandler.cpp
+++ b/src/net/eathena/auctionhandler.cpp
@@ -36,6 +36,7 @@ AuctionHandler::AuctionHandler() :
{
SMSG_AUCTION_OPEN_WINDOW,
SMSG_AUCTION_RESULTS,
+ SMSG_AUCTION_SET_ITEM,
0
};
handledMessages = _messages;
@@ -54,6 +55,10 @@ void AuctionHandler::handleMessage(Net::MessageIn &msg)
processAuctionResults(msg);
break;
+ case SMSG_AUCTION_SET_ITEM:
+ processAuctionSetItem(msg);
+ break;
+
default:
break;
}
@@ -88,4 +93,10 @@ void AuctionHandler::processAuctionResults(Net::MessageIn &msg)
}
}
+void AuctionHandler::processAuctionSetItem(Net::MessageIn &msg)
+{
+ msg.readInt16("index");
+ msg.readUInt8("flag");
+}
+
} // namespace EAthena