From a69c102e06d14fa9071788d6d17b6e019d9b594b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Feb 2015 18:02:39 +0300 Subject: Add command for homunculus/mercenary talk. New command: /homuntalk text Alias: /merctalk text --- src/actions/commands.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index ea9ef59e7..c879916a1 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -805,4 +805,16 @@ impHandler(warp) return true; } +impHandler(homunTalk) +{ + if (!serverFeatures->haveTalkPet()) + return false; + + std::string args = event.args; + if (findCutFirst(args, "/me ")) + args = textToMe(args); + homunculusHandler->talk(args); + return true; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50