diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-05 18:33:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-05 18:33:30 +0300 |
commit | c43d0ae7b171373f4ee352c8faa4ae6a7e93c49c (patch) | |
tree | 6ba7d58927ba02b3d564825de475233ed2efa98f /src/net/eathena/charserverhandler.cpp | |
parent | e282f887a203e46be91e1d1bf0024d95214ed98c (diff) | |
download | mv-c43d0ae7b171373f4ee352c8faa4ae6a7e93c49c.tar.gz mv-c43d0ae7b171373f4ee352c8faa4ae6a7e93c49c.tar.bz2 mv-c43d0ae7b171373f4ee352c8faa4ae6a7e93c49c.tar.xz mv-c43d0ae7b171373f4ee352c8faa4ae6a7e93c49c.zip |
eathena: add packet CMSG_CHAR_RENAME 0x08fc.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index b62ff5cf0..22c9ee849 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -471,4 +471,15 @@ void CharServerHandler::processCharCreate(Net::MessageIn &msg) BLOCK_END("CharServerHandler::processCharCreate") } +void CharServerHandler::renameCharacter(Net::Character *const character, + const std::string &newName) +{ + if (!character) + return; + + createOutPacket(CMSG_CHAR_RENAME); + outMsg.writeInt32(mSelectedCharacter->dummy->getId(), "char id"); + outMsg.writeString(newName, 24, "name"); +} + } // namespace EAthena |