diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-25 17:10:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-25 17:10:07 +0300 |
commit | e68643a3d46e6092727c21a751b86c7f03414710 (patch) | |
tree | 786faeadb397ef5a542572bd6f5061b4d7d2b847 /src/net/eathena/mercenaryhandler.cpp | |
parent | 74b96285c2ad2f07af0af9f8926bcd5e253dcde9 (diff) | |
download | manaplus-e68643a3d46e6092727c21a751b86c7f03414710.tar.gz manaplus-e68643a3d46e6092727c21a751b86c7f03414710.tar.bz2 manaplus-e68643a3d46e6092727c21a751b86c7f03414710.tar.xz manaplus-e68643a3d46e6092727c21a751b86c7f03414710.zip |
eathena: add packet CMSG_HOMMERC_ATTACK 0x0233.
Diffstat (limited to 'src/net/eathena/mercenaryhandler.cpp')
-rw-r--r-- | src/net/eathena/mercenaryhandler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp index 1ec3628a8..6ac4072c5 100644 --- a/src/net/eathena/mercenaryhandler.cpp +++ b/src/net/eathena/mercenaryhandler.cpp @@ -205,4 +205,15 @@ void MercenaryHandler::move(const int x, const int y) const outMsg.writeCoordinates(x, y, 0U); } +void MercenaryHandler::attack(const int targetId, const bool keep) const +{ + const int id = PlayerInfo::getHomunculusId(); + if (!id) + return; + createOutPacket(CMSG_HOMMERC_ATTACK); + outMsg.writeInt32(id); + outMsg.writeInt32(targetId); + outMsg.writeInt8(keep ? 1 : 0); +} + } // namespace EAthena |