summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 17:11:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 17:11:44 +0300
commit0a455d7f67e9c3e92b17d00be1602bf7d129a1da (patch)
treeca99f633e559101feb106f0d6727e09a537ffd08 /src/net
parente88234e3d4d52ab4930d907562f68775fa558d07 (diff)
downloadplus-0a455d7f67e9c3e92b17d00be1602bf7d129a1da.tar.gz
plus-0a455d7f67e9c3e92b17d00be1602bf7d129a1da.tar.bz2
plus-0a455d7f67e9c3e92b17d00be1602bf7d129a1da.tar.xz
plus-0a455d7f67e9c3e92b17d00be1602bf7d129a1da.zip
eathena: add packet CMSG_REMOVE_OPTION 0x012a.
Diffstat (limited to 'src/net')
-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 39ecaf5ce..1e7b0fd3f 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -247,6 +247,11 @@ void PlayerHandler::setShortcut(const int idx,
outMsg.writeInt16(level, "level");
}
+void PlayerHandler::removeOption() const
+{
+ MessageOut outMsg(CMSG_REMOVE_OPTION);
+}
+
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 38a6b3d25..d6309f45b 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -63,6 +63,7 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
const uint8_t type,
const int id,
const int level) const override final;
+ void removeOption() const override final;
protected:
void processPlayerStatUpdate5(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 8917cb15d..0c24b0e1c 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -314,6 +314,7 @@
#define CMSG_SET_SHORTCUTS 0x02ba
#define CMSG_NPC_COMPLETE_PROGRESS_BAR 0x02f1
#define CMSG_PLAYER_MAPMOVE 0x0140
+#define CMSG_REMOVE_OPTION 0x012a
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb
diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h
index f230169fd..2b23b93b3 100644
--- a/src/net/playerhandler.h
+++ b/src/net/playerhandler.h
@@ -83,6 +83,8 @@ class PlayerHandler notfinal
const uint8_t type,
const int id,
const int level) const = 0;
+
+ virtual void removeOption() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index cf95ed84f..c17d5ef6b 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -243,6 +243,10 @@ void PlayerHandler::requestOnlineList() const
MessageOut outMsg(CMSG_ONLINE_LIST);
}
+void PlayerHandler::removeOption() const
+{
+}
+
void PlayerHandler::processOnlineList(Net::MessageIn &msg)
{
if (!whoIsOnline)
diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h
index 7b4eed209..9365161ef 100644
--- a/src/net/tmwa/playerhandler.h
+++ b/src/net/tmwa/playerhandler.h
@@ -65,6 +65,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
const int id,
const int level) const override final;
+ void removeOption() const override final;
+
protected:
void processPlayerStatUpdate5(Net::MessageIn &msg);