diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 19:01:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 19:01:12 +0300 |
commit | c2df86167db6b7a70ca9377b8a0953a2d3513cb8 (patch) | |
tree | ac410e5f96ba82c9237cf289eb6794adc4fb13b5 /src/net | |
parent | 83455b8803cfaaa537c8d15c64b5553c664885f5 (diff) | |
download | ManaVerse-c2df86167db6b7a70ca9377b8a0953a2d3513cb8.tar.gz ManaVerse-c2df86167db6b7a70ca9377b8a0953a2d3513cb8.tar.bz2 ManaVerse-c2df86167db6b7a70ca9377b8a0953a2d3513cb8.tar.xz ManaVerse-c2df86167db6b7a70ca9377b8a0953a2d3513cb8.zip |
eathena: add packet CMSG_PLAYER_SET_MEMO 0x011d.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.h | 1 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/playerhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.h | 2 |
6 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 7dd217918..991dd71b4 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -258,6 +258,11 @@ void PlayerHandler::changeCart(const int type) const outMsg.writeInt16(type, "type"); } +void PlayerHandler::setMemo() const +{ + MessageOut outMsg(CMSG_PLAYER_SET_MEMO); +} + void PlayerHandler::processPlayerShortcuts(Net::MessageIn &msg) { for (int f = 0; f < 27; f ++) diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index 6a95e2091..5cb93688c 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -65,6 +65,7 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler const int level) const override final; void removeOption() const override final; void changeCart(const int type) const override final; + void setMemo() const override final; protected: void processPlayerStatUpdate5(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index a147897cd..31adc550f 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -316,6 +316,7 @@ #define CMSG_NPC_COMPLETE_PROGRESS_BAR 0x02f1 #define CMSG_PLAYER_MAPMOVE 0x0140 #define CMSG_REMOVE_OPTION 0x012a +#define CMSG_PLAYER_SET_MEMO 0x011d #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h index 0be9c0bf7..9cfc1d830 100644 --- a/src/net/playerhandler.h +++ b/src/net/playerhandler.h @@ -87,6 +87,8 @@ class PlayerHandler notfinal virtual void removeOption() const = 0; virtual void changeCart(const int type) const = 0; + + virtual void setMemo() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 44fe8836c..80d47b4ad 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -251,6 +251,10 @@ void PlayerHandler::changeCart(const int type A_UNUSED) const { } +void PlayerHandler::setMemo() const +{ +} + void PlayerHandler::processOnlineList(Net::MessageIn &msg) { if (!whoIsOnline) diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h index 46e455b50..dbda29c57 100644 --- a/src/net/tmwa/playerhandler.h +++ b/src/net/tmwa/playerhandler.h @@ -69,6 +69,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler void changeCart(const int type) const override final; + void setMemo() const override final; + protected: void processPlayerStatUpdate5(Net::MessageIn &msg); |