From c2df86167db6b7a70ca9377b8a0953a2d3513cb8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 19:01:12 +0300 Subject: eathena: add packet CMSG_PLAYER_SET_MEMO 0x011d. --- src/net/eathena/playerhandler.cpp | 5 +++++ src/net/eathena/playerhandler.h | 1 + src/net/eathena/protocol.h | 1 + src/net/playerhandler.h | 2 ++ src/net/tmwa/playerhandler.cpp | 4 ++++ src/net/tmwa/playerhandler.h | 2 ++ 6 files changed, 15 insertions(+) (limited to 'src/net') 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); -- cgit v1.2.3-60-g2f50