From e7f2216326c3fba6a76d0ee3af1fba9a7782cec6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 12:55:03 +0300 Subject: eathena: add support for packet CMSG_PLAYER_MAPMOVE 0x0140. --- src/net/eathena/adminhandler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/adminhandler.cpp') 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 -- cgit v1.2.3-60-g2f50