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