diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 12:55:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 12:55:03 +0300 |
commit | e7f2216326c3fba6a76d0ee3af1fba9a7782cec6 (patch) | |
tree | 18d1097e36a1905031255ae6dfdc301148eb2e2e /src/net | |
parent | a5199d9d9af28d7a2b5472b02c72445c25a5a3f9 (diff) | |
download | manaplus-e7f2216326c3fba6a76d0ee3af1fba9a7782cec6.tar.gz manaplus-e7f2216326c3fba6a76d0ee3af1fba9a7782cec6.tar.bz2 manaplus-e7f2216326c3fba6a76d0ee3af1fba9a7782cec6.tar.xz manaplus-e7f2216326c3fba6a76d0ee3af1fba9a7782cec6.zip |
eathena: add support for packet CMSG_PLAYER_MAPMOVE 0x0140.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 1fbc30ee1..56f69feeb 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -99,8 +99,10 @@ void AdminHandler::kick(const int playerId) const void AdminHandler::warp(const std::string &map, const int x, const int y) const { - Net::getChatHandler()->talk(strprintf( - "@warp %s %d %d", map.c_str(), x, y), GENERAL_CHANNEL); + MessageOut outMsg(CMSG_PLAYER_MAPMOVE); + outMsg.writeString(map, 16, "map"); + outMsg.writeInt16(x, "x"); + outMsg.writeInt16(y, "y"); } } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 560bf02d9..4fcf75ce7 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -309,6 +309,7 @@ #define CMSG_REQUEST_RANKS 0x097c #define CMSG_SET_SHORTCUTS 0x02ba #define CMSG_NPC_COMPLETE_PROGRESS_BAR 0x02f1 +#define CMSG_PLAYER_MAPMOVE 0x0140 #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb |