summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/homunculushandler.cpp14
-rw-r--r--src/net/eathena/homunculushandler.h4
-rw-r--r--src/net/eathena/protocol.h1
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