summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/homunculushandler.cpp6
-rw-r--r--src/net/eathena/homunculushandler.h2
-rw-r--r--src/net/eathena/protocol.h2
3 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp
index 8030bf4bb..567bad3e4 100644
--- a/src/net/eathena/homunculushandler.cpp
+++ b/src/net/eathena/homunculushandler.cpp
@@ -179,4 +179,10 @@ void HomunculusHandler::processHomunculusInfo(Net::MessageIn &msg)
PlayerInfo::setHomunculusBeing(dstBeing);
}
+void HomunculusHandler::setName(const std::string &name) const
+{
+ createOutPacket(CMSG_HOMUNCULUS_SET_NAME);
+ outMsg.writeString(name, 24, "name");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/homunculushandler.h b/src/net/eathena/homunculushandler.h
index 6fa49a451..77cffb3d5 100644
--- a/src/net/eathena/homunculushandler.h
+++ b/src/net/eathena/homunculushandler.h
@@ -39,6 +39,8 @@ class HomunculusHandler final : public MessageHandler,
void handleMessage(Net::MessageIn &msg) override final;
+ void setName(const std::string &name) const override final;
+
protected:
void processHomunculusSkills(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 5e059a3b9..ad53b9269 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -417,6 +417,8 @@
#define CMSG_PET_SELECT_EGG 0x01a7
#define CMSG_PET_MENU_ACTION 0x01a1
+#define CMSG_HOMUNCULUS_SET_NAME 0x0231
+
#define CMSG_DORI_DORI 0x01e7
#define CMSG_EXPLOSION_SPIRITS 0x01ed
#define CMSG_PVP_INFO 0x020f