From 25bf3308cf490313b4a86b78643226f078ce4f7e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Feb 2016 19:37:31 +0300 Subject: Add chat command /gotonpc. Also add it to npc context menu. --- src/actions/commands.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index c317af86a..13bb0b622 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1387,4 +1387,13 @@ impHandler(commandRandomWarp) return true; } +impHandler(commandGotoNpc) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->gotoNpc(args); + return true; +} + } // namespace Actions -- cgit v1.2.3-70-g09d2