diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-10 17:09:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-10 17:09:27 +0300 |
commit | a6d493e5b9336be4265f9359d0f78fa7e6e0e856 (patch) | |
tree | b5a336ddf2c558b7aee6a7c991da7d0d25cd0542 /src | |
parent | 4e1b5c8844c393cab1158911e9e633df7a896dbf (diff) | |
download | manaverse-a6d493e5b9336be4265f9359d0f78fa7e6e0e856.tar.gz manaverse-a6d493e5b9336be4265f9359d0f78fa7e6e0e856.tar.bz2 manaverse-a6d493e5b9336be4265f9359d0f78fa7e6e0e856.tar.xz manaverse-a6d493e5b9336be4265f9359d0f78fa7e6e0e856.zip |
eathena: add packet CMSG_ADMIN_RESET_PLAYER 0x0197.
Also add functions resetStats and resetSkills.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/adminhandler.h | 4 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 4 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.h | 4 |
6 files changed, 33 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index 65c04c8b7..e5496cdfc 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -71,6 +71,10 @@ class AdminHandler notfinal virtual void reviveName(const std::string &name) const = 0; virtual void ipcheckName(const std::string &name) const = 0; + + virtual void resetStats() const = 0; + + virtual void resetSkills() const = 0; }; } // namespace Net diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 56f69feeb..aa4980fb9 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -105,4 +105,16 @@ void AdminHandler::warp(const std::string &map, const int x, const int y) const outMsg.writeInt16(y, "y"); } +void AdminHandler::resetStats() const +{ + MessageOut outMsg(CMSG_ADMIN_RESET_PLAYER); + outMsg.writeInt16(0, "flag"); +} + +void AdminHandler::resetSkills() const +{ + MessageOut outMsg(CMSG_ADMIN_RESET_PLAYER); + outMsg.writeInt16(1, "flag"); +} + } // namespace EAthena diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index 28f0ac1e8..99b59f135 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -49,6 +49,10 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void warp(const std::string &map, const int x, const int y) const override final; + + void resetStats() const override final; + + void resetSkills() const override final; }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 59efb161d..751bcf96d 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -293,6 +293,7 @@ #define CMSG_ADMIN_HIDE 0x019D #define CMSG_ADMIN_KICK 0x00CC #define CMSG_ADMIN_MUTE 0x0149 +#define CMSG_ADMIN_RESET_PLAYER 0x0197 #define CMSG_GUILD_CHECK_MASTER 0x014d #define CMSG_GUILD_REQUEST_INFO 0x014f diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp index a890ea5fc..7ca5e35e4 100644 --- a/src/net/tmwa/adminhandler.cpp +++ b/src/net/tmwa/adminhandler.cpp @@ -105,4 +105,12 @@ void AdminHandler::warp(const std::string &map, const int x, const int y) const "@warp %s %d %d", map.c_str(), x, y), GENERAL_CHANNEL); } +void AdminHandler::resetStats() const +{ +} + +void AdminHandler::resetSkills() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index c511ebd01..111601a24 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -49,6 +49,10 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler void warp(const std::string &map, const int x, const int y) const override final; + + void resetStats() const override final; + + void resetSkills() const override final; }; } // namespace TmwAthena |