diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-06 01:32:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-06 01:32:56 +0300 |
commit | cb8de74ca982c59387f83047201ecd75ee1ed533 (patch) | |
tree | 91ad32decc7adc291ab729f8c664780306aa01b8 /src/net/eathena | |
parent | ec914ceb5f421019a54b442e6fc0a0a2cfe8d627 (diff) | |
download | plus-cb8de74ca982c59387f83047201ecd75ee1ed533.tar.gz plus-cb8de74ca982c59387f83047201ecd75ee1ed533.tar.bz2 plus-cb8de74ca982c59387f83047201ecd75ee1ed533.tar.xz plus-cb8de74ca982c59387f83047201ecd75ee1ed533.zip |
eathena: add packet CMSG_CHAR_CHANGE_SLOT 0x08d4.
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 */ |