summaryrefslogtreecommitdiff
path: root/src/net/eathena/adminhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 17:09:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 17:09:27 +0300
commita6d493e5b9336be4265f9359d0f78fa7e6e0e856 (patch)
treeb5a336ddf2c558b7aee6a7c991da7d0d25cd0542 /src/net/eathena/adminhandler.cpp
parent4e1b5c8844c393cab1158911e9e633df7a896dbf (diff)
downloadmanaplus-a6d493e5b9336be4265f9359d0f78fa7e6e0e856.tar.gz
manaplus-a6d493e5b9336be4265f9359d0f78fa7e6e0e856.tar.bz2
manaplus-a6d493e5b9336be4265f9359d0f78fa7e6e0e856.tar.xz
manaplus-a6d493e5b9336be4265f9359d0f78fa7e6e0e856.zip
eathena: add packet CMSG_ADMIN_RESET_PLAYER 0x0197.
Also add functions resetStats and resetSkills.
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r--src/net/eathena/adminhandler.cpp12
1 files changed, 12 insertions, 0 deletions
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