summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 19:01:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 19:01:12 +0300
commitc2df86167db6b7a70ca9377b8a0953a2d3513cb8 (patch)
treeac410e5f96ba82c9237cf289eb6794adc4fb13b5
parent83455b8803cfaaa537c8d15c64b5553c664885f5 (diff)
downloadmv-c2df86167db6b7a70ca9377b8a0953a2d3513cb8.tar.gz
mv-c2df86167db6b7a70ca9377b8a0953a2d3513cb8.tar.bz2
mv-c2df86167db6b7a70ca9377b8a0953a2d3513cb8.tar.xz
mv-c2df86167db6b7a70ca9377b8a0953a2d3513cb8.zip
eathena: add packet CMSG_PLAYER_SET_MEMO 0x011d.
-rw-r--r--src/net/eathena/playerhandler.cpp5
-rw-r--r--src/net/eathena/playerhandler.h1
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/playerhandler.h2
-rw-r--r--src/net/tmwa/playerhandler.cpp4
-rw-r--r--src/net/tmwa/playerhandler.h2
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);