summaryrefslogtreecommitdiff
path: root/src/net/eathena
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/eathena
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/eathena')
-rw-r--r--src/net/eathena/playerhandler.cpp5
-rw-r--r--src/net/eathena/playerhandler.h1
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 7 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