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/homunculushandler.cpp | |
parent | e68643a3d46e6092727c21a751b86c7f03414710 (diff) | |
download | manaplus-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.gz manaplus-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.bz2 manaplus-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.xz manaplus-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.zip |
eathena: add packet CMSG_HOMUNCULUS_MENU 0x022d.
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r-- | src/net/eathena/homunculushandler.cpp | 14 |
1 files changed, 14 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 |