From f580ee13d492ad7971fe3828a9dc59ce8aafbc27 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 11:22:59 +0300 Subject: eathena: impliment packet CMSG_NPC_COMPLETE_PROGRESS_BAR 0x02f1. --- src/net/eathena/npchandler.cpp | 5 +++++ src/net/eathena/npchandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 8 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index 5ae4c4084..b22b0d804 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -194,6 +194,11 @@ void NpcHandler::sellItem(const int beingId A_UNUSED, outMsg.writeInt16(static_cast(amount)); } +void NpcHandler::completeProgressBar() const +{ + MessageOut outMsg(CMSG_NPC_COMPLETE_PROGRESS_BAR); +} + int NpcHandler::getNpc(Net::MessageIn &msg) { if (msg.getId() == SMSG_NPC_CHOICE diff --git a/src/net/eathena/npchandler.h b/src/net/eathena/npchandler.h index 90f9627c9..85c95e68e 100644 --- a/src/net/eathena/npchandler.h +++ b/src/net/eathena/npchandler.h @@ -65,6 +65,8 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler void sellItem(const int beingId, const int itemId, const int amount) const override final; + void completeProgressBar() const override final; + int getNpc(Net::MessageIn &msg) override final; protected: diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 9b1bff51e..560bf02d9 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -308,6 +308,7 @@ #define CMSG_IGNORE_ALL 0x00d0 #define CMSG_REQUEST_RANKS 0x097c #define CMSG_SET_SHORTCUTS 0x02ba +#define CMSG_NPC_COMPLETE_PROGRESS_BAR 0x02f1 #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb -- cgit v1.2.3-70-g09d2