diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 10 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 4 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 14 insertions, 1 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 7ef2dc645..2883ff524 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -40,7 +40,8 @@ namespace EAthena AdminHandler::AdminHandler() : MessageHandler(), - Ea::AdminHandler() + Ea::AdminHandler(), + mStatsName() { static const uint16_t _messages[] = { @@ -198,4 +199,11 @@ void AdminHandler::processSetTileType(Net::MessageIn &msg) msg.readString(16, "map name"); } +void AdminHandler::requestStats(const std::string &name) +{ + mStatsName = name; + MessageOut outMsg(CMSG_ADMIN_REQUEST_STATS); + outMsg.writeString(name, 24); +} + } // namespace EAthena diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index 3a98e16bc..cfb33f7f4 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -73,10 +73,14 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void unequipAll(const Being *const being) const override final; + void requestStats(const std::string &name) override final; + protected: void processAdminGetLoginAck(Net::MessageIn &msg); void processSetTileType(Net::MessageIn &msg); + + std::string mStatsName; }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 97bc7c7e4..123b36ef0 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -316,6 +316,7 @@ #define CMSG_ADMIN_ID_TO_LOGIN 0x01df #define CMSG_ADMIN_SET_TILE_TYPE 0x0198 #define CMSG_ADMIN_UNEQUIP_ALL 0x07f5 +#define CMSG_ADMIN_REQUEST_STATS 0x0213 #define CMSG_GUILD_CHECK_MASTER 0x014d #define CMSG_GUILD_REQUEST_INFO 0x014f |