diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-25 16:54:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-25 17:03:55 +0300 |
commit | 74b96285c2ad2f07af0af9f8926bcd5e253dcde9 (patch) | |
tree | 6569048c204a9df2aa03a26e456ed5d3ee4bfe74 /src/net/eathena/homunculushandler.cpp | |
parent | d5fa4f03b3f09efd0551b0dfd8bc2dc7de4d4acc (diff) | |
download | mv-74b96285c2ad2f07af0af9f8926bcd5e253dcde9.tar.gz mv-74b96285c2ad2f07af0af9f8926bcd5e253dcde9.tar.bz2 mv-74b96285c2ad2f07af0af9f8926bcd5e253dcde9.tar.xz mv-74b96285c2ad2f07af0af9f8926bcd5e253dcde9.zip |
eathena: add packet CMSG_HOMMERC_MOVE_TO 0x0232.
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r-- | src/net/eathena/homunculushandler.cpp | 10 |
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 |