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 + 3 files changed, 7 insertions(+) (limited to 'src/net/eathena') 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 -- cgit v1.2.3-70-g09d2