From a7f88de7bbea019bf443da0aa31b03d2273739df Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Feb 2016 23:24:54 +0300 Subject: Add chat command /hidenpc. 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 ec377be79..52855d06e 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1491,4 +1491,13 @@ impHandler(commandNpcMove) return true; } +impHandler(commandNpcHide) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->hideNpc(args); + return true; +} + } // namespace Actions -- cgit v1.2.3-70-g09d2