diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-25 17:26:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-25 17:26:54 +0300 |
commit | bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b (patch) | |
tree | c0af9fd066c82880f0bc5bdfa3a00b12ac710087 /src/net/eathena | |
parent | e68643a3d46e6092727c21a751b86c7f03414710 (diff) | |
download | mv-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.gz mv-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.bz2 mv-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.xz mv-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.zip |
eathena: add packet CMSG_HOMUNCULUS_MENU 0x022d.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/homunculushandler.cpp | 14 | ||||
-rw-r--r-- | src/net/eathena/homunculushandler.h | 4 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index bbddc4412..5a6d3e5fa 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -215,4 +215,18 @@ void HomunculusHandler::attack(const int targetId, const bool keep) const outMsg.writeInt8(keep ? 1 : 0); } +void HomunculusHandler::feed() const +{ + createOutPacket(CMSG_HOMUNCULUS_MENU); + outMsg.writeInt16(0, "type"); + outMsg.writeInt8(1, "command"); // feed +} + +void HomunculusHandler::fire() const +{ + createOutPacket(CMSG_HOMUNCULUS_MENU); + outMsg.writeInt16(0, "type"); + outMsg.writeInt8(2, "command"); // delete +} + } // namespace EAthena diff --git a/src/net/eathena/homunculushandler.h b/src/net/eathena/homunculushandler.h index 53ad59f4a..3b7a82ace 100644 --- a/src/net/eathena/homunculushandler.h +++ b/src/net/eathena/homunculushandler.h @@ -47,6 +47,10 @@ class HomunculusHandler final : public MessageHandler, void attack(const int targetId, const bool keep) const override final; + void feed() const override final; + + void fire() const override final; + protected: void processHomunculusSkills(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 65257b904..13a5f5132 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -418,6 +418,7 @@ #define CMSG_PET_MENU_ACTION 0x01a1 #define CMSG_HOMUNCULUS_SET_NAME 0x0231 +#define CMSG_HOMUNCULUS_MENU 0x022d #define CMSG_HOMMERC_MOVE_TO_MASTER 0x0234 #define CMSG_HOMMERC_MOVE_TO 0x0232 #define CMSG_HOMMERC_ATTACK 0x0233 |