diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-25 13:45:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-25 13:45:37 +0300 |
commit | 0ef4d8b885bf98735dbf800fc7385f625f18a9e4 (patch) | |
tree | 69c6370ab94d675251aa99f4b2396c293c9c1498 /src/net/eathena/homunculushandler.cpp | |
parent | 0416def34b70d89754006fa96a49c1180b5bbacf (diff) | |
download | manaplus-0ef4d8b885bf98735dbf800fc7385f625f18a9e4.tar.gz manaplus-0ef4d8b885bf98735dbf800fc7385f625f18a9e4.tar.bz2 manaplus-0ef4d8b885bf98735dbf800fc7385f625f18a9e4.tar.xz manaplus-0ef4d8b885bf98735dbf800fc7385f625f18a9e4.zip |
eathena: add packet CMSG_HOMMERC_MOVE_TO_MASTER 0x0234.
Diffstat (limited to 'src/net/eathena/homunculushandler.cpp')
-rw-r--r-- | src/net/eathena/homunculushandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index 567bad3e4..54c64cf59 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -185,4 +185,13 @@ void HomunculusHandler::setName(const std::string &name) const outMsg.writeString(name, 24, "name"); } +void HomunculusHandler::moveToMaster() const +{ + const int id = PlayerInfo::getHomunculusId(); + if (!id) + return; + createOutPacket(CMSG_HOMMERC_MOVE_TO_MASTER); + outMsg.writeInt32(id); +} + } // namespace EAthena |