summaryrefslogtreecommitdiff
path: root/src/net/eathena/homunculushandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-25 17:26:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-25 17:26:54 +0300
commitbdcc5c75d62f1c8f7dc61604a922a3cc3541d62b (patch)
treec0af9fd066c82880f0bc5bdfa3a00b12ac710087 /src/net/eathena/homunculushandler.cpp
parente68643a3d46e6092727c21a751b86c7f03414710 (diff)
downloadplus-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.gz
plus-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.bz2
plus-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.tar.xz
plus-bdcc5c75d62f1c8f7dc61604a922a3cc3541d62b.zip
eathena: add packet CMSG_HOMUNCULUS_MENU 0x022d.
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r--src/net/eathena/homunculushandler.cpp14
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