diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-06 12:58:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-06 12:58:40 +0300 |
commit | ff86d5fbc7db586c05e51c99f052bbae4ebe44cc (patch) | |
tree | 32a30c479f00ba66b13732d09e0f35f55cd6cedb /src/net/eathena/charserverhandler.cpp | |
parent | cb8de74ca982c59387f83047201ecd75ee1ed533 (diff) | |
download | mv-ff86d5fbc7db586c05e51c99f052bbae4ebe44cc.tar.gz mv-ff86d5fbc7db586c05e51c99f052bbae4ebe44cc.tar.bz2 mv-ff86d5fbc7db586c05e51c99f052bbae4ebe44cc.tar.xz mv-ff86d5fbc7db586c05e51c99f052bbae4ebe44cc.zip |
eathena: add partial support for packet SMSG_CHAR_CHANGE_SLOT 0x08d5.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 2d89bb7d0..5308fdaea 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -84,6 +84,7 @@ CharServerHandler::CharServerHandler() : SMSG_CHAR_PINCODE_STATUS, SMSG_CHAR_CHECK_RENAME, SMSG_CHAR_RENAME, + SMSG_CHAR_CHANGE_SLOT, 0 }; handledMessages = _messages; @@ -142,6 +143,10 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg) processCharRename(msg); break; + case SMSG_CHAR_CHANGE_SLOT: + processCharChangeSlot(msg); + break; + default: break; } @@ -569,4 +574,11 @@ void CharServerHandler::changeSlot(const int oldSlot, const int newSlot) outMsg.writeInt16(0, "unused"); } +void CharServerHandler::processCharChangeSlot(Net::MessageIn &msg) +{ + msg.readInt16("len"); + msg.readInt16("flag"); // 0 - ok, 1 - error + msg.readInt16("unused"); +} + } // namespace EAthena |