diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 1ee373043..cc1465ee0 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -28,6 +28,7 @@ #include "net/eathena/protocolout.h" #include "utils/gmfunctions.h" +#include "utils/stringutils.h" #include "debug.h" @@ -325,4 +326,15 @@ void AdminHandler::unjail(const std::string &name) const Gm::runCommand("unjail", name); } +void AdminHandler::npcMove(const std::string &name, + const int x, + const int y) const +{ + Gm::runCommand("npcmove", + strprintf("%d %d %s", + x, + y, + name.c_str())); +} + } // namespace EAthena diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index 995669f76..60103ea24 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -138,6 +138,10 @@ class AdminHandler final : public Ea::AdminHandler void unjail(const std::string &name) const override final; + void npcMove(const std::string &name, + const int x, + const int y) const override final; + protected: static std::string mStatsName; }; |