From 74b96285c2ad2f07af0af9f8926bcd5e253dcde9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Sep 2014 16:54:25 +0300 Subject: eathena: add packet CMSG_HOMMERC_MOVE_TO 0x0232. --- src/net/eathena/homunculushandler.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/eathena/homunculushandler.cpp') 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 -- cgit v1.2.3-60-g2f50