summaryrefslogtreecommitdiff
path: root/src/net/eathena/homunculushandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r--src/net/eathena/homunculushandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp
index 54c64cf59..320af387e 100644
--- a/src/net/eathena/homunculushandler.cpp
+++ b/src/net/eathena/homunculushandler.cpp
@@ -194,4 +194,14 @@ void HomunculusHandler::moveToMaster() const
outMsg.writeInt32(id);
}
+void HomunculusHandler::move(const int x, const int y) const
+{
+ const int id = PlayerInfo::getHomunculusId();
+ if (!id)
+ return;
+ createOutPacket(CMSG_HOMMERC_MOVE_TO);
+ outMsg.writeInt32(id);
+ outMsg.writeCoordinates(x, y, 0U);
+}
+
} // namespace EAthena