From 7b2fbfb1f4384cb0e86d4c7cca81a526444d54b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Dec 2013 19:21:37 +0300 Subject: add pet emote command. New chat command: /emotepet emote --- src/net/tmwa/pethandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/net/tmwa/pethandler.cpp') diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp index e71420f15..d260cea3a 100644 --- a/src/net/tmwa/pethandler.cpp +++ b/src/net/tmwa/pethandler.cpp @@ -20,8 +20,11 @@ #include "net/tmwa/pethandler.h" +#include "gui/widgets/tabs/chattab.h" + #include "net/net.h" +#include "net/tmwa/chathandler.h" #include "net/tmwa/protocol.h" #include "debug.h" @@ -59,4 +62,10 @@ void PetHandler::spawn(const Being *const being A_UNUSED, { } +void PetHandler::emote(const uint8_t emoteId) const +{ + Net::getChatHandler()->talk("\302\202\302e" + toString( + static_cast(emoteId)), GENERAL_CHANNEL); +} + } // namespace TmwAthena -- cgit v1.2.3-70-g09d2