diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-25 23:05:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-25 23:05:23 +0300 |
commit | 3f5414baed89f0ca2d06a9f91d8f9993bb125a78 (patch) | |
tree | 444ce3b9368122b71ededf135edc33cedcddf66b /src/net/eathena/playerhandler.cpp | |
parent | f726b2f2e39711fc043a36518601d81b57294efd (diff) | |
download | manaverse-3f5414baed89f0ca2d06a9f91d8f9993bb125a78.tar.gz manaverse-3f5414baed89f0ca2d06a9f91d8f9993bb125a78.tar.bz2 manaverse-3f5414baed89f0ca2d06a9f91d8f9993bb125a78.tar.xz manaverse-3f5414baed89f0ca2d06a9f91d8f9993bb125a78.zip |
Add packet CMSG_PLAYER_SET_TITLE 0x0a2e.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index a70d130cf..e8cfe7374 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -812,6 +812,14 @@ void PlayerHandler::selectStyle(const int headColor, outMsg.writeInt16(CAST_S16(bodyStyle), "body style"); } +void PlayerHandler::setTitle(const int titleId) const +{ + if (packetVersion < 20140903) + return; + createOutPacket(CMSG_PLAYER_SET_TITLE); + outMsg.writeInt32(titleId, "title"); +} + #undef setStatComplex } // namespace EAthena |