diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 00:20:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 00:20:35 +0300 |
commit | c2e62187c5111c6ecc94573630f6da271d0145d6 (patch) | |
tree | 290bce219c5fc5588a5ca01951822c0bfeaa5378 /src/net/eathena/questhandler.cpp | |
parent | b8ad6772fbc9d3f0917e0b39ec66d0004a267904 (diff) | |
download | plus-c2e62187c5111c6ecc94573630f6da271d0145d6.tar.gz plus-c2e62187c5111c6ecc94573630f6da271d0145d6.tar.bz2 plus-c2e62187c5111c6ecc94573630f6da271d0145d6.tar.xz plus-c2e62187c5111c6ecc94573630f6da271d0145d6.zip |
eathena: add packet CMSG_QUEST_ACTIVATE 0x02b6.
Diffstat (limited to 'src/net/eathena/questhandler.cpp')
-rw-r--r-- | src/net/eathena/questhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/questhandler.cpp b/src/net/eathena/questhandler.cpp index 18dbff5ee..3c26ae770 100644 --- a/src/net/eathena/questhandler.cpp +++ b/src/net/eathena/questhandler.cpp @@ -23,6 +23,7 @@ #include "gui/windows/skilldialog.h" #include "gui/windows/questswindow.h" +#include "net/eathena/messageout.h" #include "net/eathena/protocol.h" #include "resources/skillconsts.h" @@ -180,4 +181,12 @@ void QuestHandler::processRemoveQuest(Net::MessageIn &msg) } } +void QuestHandler::setQeustActiveState(const int questId, + const bool active) const +{ + MessageOut outMsg(CMSG_QUEST_ACTIVATE); + outMsg.writeInt32(questId, "quest id"); + outMsg.writeInt8(active ? 1 : 0, "activate"); +} + } // namespace EAthena |