summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-05 18:43:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-05 18:43:08 +0300
commitb0361de1fcfc26b4bb497473e9fe1ef0f5013c98 (patch)
treec991970041797901ced68c5c62a53e5911a556ea /src
parenta355e8aff74337706d8a0d5cf920809e3ecb975f (diff)
downloadmanaplus-b0361de1fcfc26b4bb497473e9fe1ef0f5013c98.tar.gz
manaplus-b0361de1fcfc26b4bb497473e9fe1ef0f5013c98.tar.bz2
manaplus-b0361de1fcfc26b4bb497473e9fe1ef0f5013c98.tar.xz
manaplus-b0361de1fcfc26b4bb497473e9fe1ef0f5013c98.zip
eathena: add partial support for packet SMSG_CHAR_RENAME 0x028e.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/charserverhandler.cpp10
-rw-r--r--src/net/eathena/charserverhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 22c9ee849..323fa681c 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -75,6 +75,7 @@ CharServerHandler::CharServerHandler() :
SMSG_CHAR_MAP_INFO,
SMSG_CHANGE_MAP_SERVER,
SMSG_CHAR_PINCODE_STATUS,
+ SMSG_CHAR_RENAME,
0
};
handledMessages = _messages;
@@ -125,6 +126,10 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg)
processPincodeStatus(msg);
break;
+ case SMSG_CHAR_RENAME:
+ processCharRename(msg);
+ break;
+
default:
break;
}
@@ -482,4 +487,9 @@ void CharServerHandler::renameCharacter(Net::Character *const character,
outMsg.writeString(newName, 24, "name");
}
+void CharServerHandler::processCharRename(Net::MessageIn &msg)
+{
+ msg.readInt16("flag");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/charserverhandler.h b/src/net/eathena/charserverhandler.h
index 8fe6a27a4..b88c96778 100644
--- a/src/net/eathena/charserverhandler.h
+++ b/src/net/eathena/charserverhandler.h
@@ -90,6 +90,8 @@ class CharServerHandler final : public MessageHandler,
void processCharCreate(Net::MessageIn &msg);
+ void processCharRename(Net::MessageIn &msg);
+
private:
uint32_t mPinSeed;
uint32_t mPinAccountId;
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 7e9de4e8f..0d2d39547 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -39,6 +39,7 @@
#define SMSG_CHAR_LOGIN_ERROR 0x006c
#define SMSG_CHAR_CREATE_SUCCEEDED 0x006d
#define SMSG_CHAR_PINCODE_STATUS 0x08b9
+#define SMSG_CHAR_RENAME 0x028e
#define SMSG_CHAR_CREATE_FAILED 0x006e
#define SMSG_CHAR_DELETE_SUCCEEDED 0x006f