From eee2f72b047262cbb6478c67f2e5293a85ce79e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Dec 2013 17:56:43 +0300 Subject: allow to owner talk from own pet. New chat command: /talkpet text --- src/commands.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 75347a9aa..8b25984b5 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1252,6 +1252,15 @@ impHandler1(talkRaw) Net::getChatHandler()->talkRaw(args); } +impHandler1(talkPet) +{ + // in future probably need add channel detection + if (player_node->getPet()) + Net::getChatHandler()->talkPet(args, GENERAL_CHANNEL); + else + Net::getChatHandler()->talk(args, GENERAL_CHANNEL); +} + impHandler0(testsdlfont) { #if defined USE_OPENGL && defined DEBUG_SDLFONT -- cgit v1.2.3-60-g2f50