diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-25 20:09:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-25 20:09:07 +0300 |
commit | 393865bc4af7d3a7f96ff66480f6b7f7085fb41f (patch) | |
tree | a027cb78c6b9467153f139cd9ea1e19513dba245 /src/net/eathena | |
parent | a69c102e06d14fa9071788d6d17b6e019d9b594b (diff) | |
download | plus-393865bc4af7d3a7f96ff66480f6b7f7085fb41f.tar.gz plus-393865bc4af7d3a7f96ff66480f6b7f7085fb41f.tar.bz2 plus-393865bc4af7d3a7f96ff66480f6b7f7085fb41f.tar.xz plus-393865bc4af7d3a7f96ff66480f6b7f7085fb41f.zip |
eathena: add packet CMSG_HOMMERC_EMOTE 0x0b14.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/homunculushandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/homunculushandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/mercenaryhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/mercenaryhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
5 files changed, 17 insertions, 0 deletions
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 |