From 393865bc4af7d3a7f96ff66480f6b7f7085fb41f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Feb 2015 20:09:07 +0300 Subject: eathena: add packet CMSG_HOMMERC_EMOTE 0x0b14. --- src/net/eathena/homunculushandler.cpp | 6 ++++++ src/net/eathena/homunculushandler.h | 2 ++ src/net/eathena/mercenaryhandler.cpp | 6 ++++++ src/net/eathena/mercenaryhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 5 files changed, 17 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index 7eafac3cc..42426b57f 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -300,4 +300,10 @@ void HomunculusHandler::talk(const std::string &restrict text) const outMsg.writeInt8(0, "zero byte"); } +void HomunculusHandler::emote(const uint8_t emoteId) const +{ + createOutPacket(CMSG_HOMMERC_EMOTE); + outMsg.writeInt8(emoteId, "emote id"); +} + } // namespace EAthena diff --git a/src/net/eathena/homunculushandler.h b/src/net/eathena/homunculushandler.h index c8f42f6b6..f3c7a48aa 100644 --- a/src/net/eathena/homunculushandler.h +++ b/src/net/eathena/homunculushandler.h @@ -51,6 +51,8 @@ class HomunculusHandler final : public MessageHandler, void talk(const std::string &restrict text) const override final; + void emote(const uint8_t emoteId) const override final; + protected: static void processHomunculusSkills(Net::MessageIn &msg); diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp index 27c1e361c..857890bd7 100644 --- a/src/net/eathena/mercenaryhandler.cpp +++ b/src/net/eathena/mercenaryhandler.cpp @@ -230,4 +230,10 @@ void MercenaryHandler::talk(const std::string &restrict text) const outMsg.writeInt8(0, "zero byte"); } +void MercenaryHandler::emote(const uint8_t emoteId) const +{ + createOutPacket(CMSG_HOMMERC_EMOTE); + outMsg.writeInt8(emoteId, "emote id"); +} + } // namespace EAthena diff --git a/src/net/eathena/mercenaryhandler.h b/src/net/eathena/mercenaryhandler.h index b4e1cd48d..c2a1b18f1 100644 --- a/src/net/eathena/mercenaryhandler.h +++ b/src/net/eathena/mercenaryhandler.h @@ -49,6 +49,8 @@ class MercenaryHandler final : public MessageHandler, void talk(const std::string &restrict text) const override final; + void emote(const uint8_t emoteId) const override final; + protected: static void processMercenaryUpdate(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index b46b8ef12..d42ec59fb 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -525,6 +525,7 @@ #define CMSG_HOMMERC_MOVE_TO 0x0232 #define CMSG_HOMMERC_ATTACK 0x0233 #define CMSG_HOMMERC_TALK 0x0b13 +#define CMSG_HOMMERC_EMOTE 0x0b14 #define CMSG_DORI_DORI 0x01e7 #define CMSG_EXPLOSION_SPIRITS 0x01ed -- cgit v1.2.3-70-g09d2