From 0a455d7f67e9c3e92b17d00be1602bf7d129a1da Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 17:11:44 +0300 Subject: eathena: add packet CMSG_REMOVE_OPTION 0x012a. --- 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') 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); -- cgit v1.2.3-60-g2f50