summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp11
-rw-r--r--src/net/eathena/buyingstorehandler.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/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp
index 29d6c86c5..519c30aae 100644
--- a/src/net/eathena/buyingstorehandler.cpp
+++ b/src/net/eathena/buyingstorehandler.cpp
@@ -45,6 +45,7 @@ BuyingStoreHandler::BuyingStoreHandler() :
SMSG_BUYINGSTORE_OPEN,
SMSG_BUYINGSTORE_CREATE_FAILED,
SMSG_BUYINGSTORE_OWN_ITEMS,
+ SMSG_BUYINGSTORE_SHOW_BOARD,
0
};
handledMessages = _messages;
@@ -67,6 +68,10 @@ void BuyingStoreHandler::handleMessage(Net::MessageIn &msg)
processBuyingStoreOwnItems(msg);
break;
+ case SMSG_BUYINGSTORE_SHOW_BOARD:
+ processBuyingStoreShowBoard(msg);
+ break;
+
default:
break;
}
@@ -113,6 +118,12 @@ void BuyingStoreHandler::processBuyingStoreOwnItems(Net::MessageIn &msg)
}
}
+void BuyingStoreHandler::processBuyingStoreShowBoard(Net::MessageIn &msg)
+{
+ msg.readInt32("account id");
+ msg.readString(80, "board name");
+}
+
void BuyingStoreHandler::create(const std::string &name,
const int maxMoney,
const bool flag,
diff --git a/src/net/eathena/buyingstorehandler.h b/src/net/eathena/buyingstorehandler.h
index a61074219..1a647a67c 100644
--- a/src/net/eathena/buyingstorehandler.h
+++ b/src/net/eathena/buyingstorehandler.h
@@ -48,6 +48,8 @@ class BuyingStoreHandler final : public MessageHandler,
static void processBuyingStoreCreateFailed(Net::MessageIn &msg);
static void processBuyingStoreOwnItems(Net::MessageIn &msg);
+
+ static void processBuyingStoreShowBoard(Net::MessageIn &msg);
};
} // namespace EAthena
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 1a3d3de2d..147e6ac67 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -216,7 +216,7 @@ int16_t packet_lengths[] =
//0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// #0x0800
-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 20,
- 3, 0, 8, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 22, 8, 0,
+ 3, 0, 8, -1, 86, -1, 0, 0, 0, 0, 0, 0, 0, 22, 8, 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, 66, 0, 0, 0, 0, 26, 0,
// #0x0840
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 41d43bc2a..1f5d913a3 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -170,6 +170,7 @@
#define SMSG_BUYINGSTORE_OPEN 0x0810
#define SMSG_BUYINGSTORE_CREATE_FAILED 0x0812
#define SMSG_BUYINGSTORE_OWN_ITEMS 0x0813
+#define SMSG_BUYINGSTORE_SHOW_BOARD 0x0814
// Receiving a request to trade
#define SMSG_TRADE_REQUEST 0x01f4