summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/auctionhandler.cpp11
-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, 15 insertions, 1 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
diff --git a/src/net/eathena/auctionhandler.h b/src/net/eathena/auctionhandler.h
index 2f24d16d6..c39f831fc 100644
--- a/src/net/eathena/auctionhandler.h
+++ b/src/net/eathena/auctionhandler.h
@@ -40,6 +40,8 @@ class AuctionHandler final : public MessageHandler, public Net::AuctionHandler
static void processOpenWindow(Net::MessageIn &msg);
static void processAuctionResults(Net::MessageIn &msg);
+
+ static void processAuctionSetItem(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 6d69f6778..1cfb4c94b 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
+ 0, 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 6a82f6265..81f517db0 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -302,6 +302,7 @@
#define SMSG_AUCTION_OPEN_WINDOW 0x025f
#define SMSG_AUCTION_RESULTS 0x0252
+#define SMSG_AUCTION_SET_ITEM 0x0256
#define SMSG_ELEMENTAL_UPDATE_STATUS 0x081e
#define SMSG_ELEMENTAL_INFO 0x081d