diff options
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 12 |
1 files changed, 12 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 |