diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/charserverhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index 021d12811..2d89bb7d0 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -561,4 +561,12 @@ void CharServerHandler::processCharRename(Net::MessageIn &msg) } } +void CharServerHandler::changeSlot(const int oldSlot, const int newSlot) +{ + createOutPacket(CMSG_CHAR_CHANGE_SLOT); + outMsg.writeInt16(oldSlot, "old slot"); + outMsg.writeInt16(newSlot, "new slot"); + outMsg.writeInt16(0, "unused"); +} + } // namespace EAthena diff --git a/src/net/eathena/charserverhandler.h b/src/net/eathena/charserverhandler.h index 7f03e3093..ed27534bf 100644 --- a/src/net/eathena/charserverhandler.h +++ b/src/net/eathena/charserverhandler.h @@ -79,6 +79,8 @@ class CharServerHandler final : public MessageHandler, void setCharCreateDialog(CharCreateDialog *const window) override final; + void changeSlot(const int oldSlot, const int newSlot) override final; + protected: void readPlayerData(Net::MessageIn &msg, Net::Character *const character, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 71baa43be..29b372a1f 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -295,6 +295,7 @@ #define CMSG_CHAR_CREATE_PIN 0x08ba #define CMSG_CHAR_CHECK_RENAME 0x08fc #define CMSG_CHAR_RENAME 0x028f +#define CMSG_CHAR_CHANGE_SLOT 0x08d4 #define CMSG_MAP_SERVER_CONNECT 0x089c #define CMSG_MAP_PING 0x035f /**< Send to server with tick */ |