summaryrefslogtreecommitdiff
path: root/src/net/eathena/questhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 13:13:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 13:13:20 +0300
commitdc5e757b8ef36c1d3b083a67f4a55aead37b706c (patch)
tree6f3752058abc57664a74088d5480a042cab011df /src/net/eathena/questhandler.cpp
parent83679d661c29e6e861375c329fa6618365f417c8 (diff)
downloadmv-dc5e757b8ef36c1d3b083a67f4a55aead37b706c.tar.gz
mv-dc5e757b8ef36c1d3b083a67f4a55aead37b706c.tar.bz2
mv-dc5e757b8ef36c1d3b083a67f4a55aead37b706c.tar.xz
mv-dc5e757b8ef36c1d3b083a67f4a55aead37b706c.zip
eathena: add partial support for packet SMSG_QUEST_ACTIVATE 0x02b7.
Diffstat (limited to 'src/net/eathena/questhandler.cpp')
-rw-r--r--src/net/eathena/questhandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/questhandler.cpp b/src/net/eathena/questhandler.cpp
index dcdf726f2..5c27cbe00 100644
--- a/src/net/eathena/questhandler.cpp
+++ b/src/net/eathena/questhandler.cpp
@@ -44,6 +44,7 @@ QuestHandler::QuestHandler() :
SMSG_QUEST_LIST_OBJECTIVES,
SMSG_QUEST_UPDATE_OBJECTIVES,
SMSG_QUEST_REMOVE,
+ SMSG_QUEST_ACTIVATE,
0
};
handledMessages = _messages;
@@ -75,6 +76,10 @@ void QuestHandler::handleMessage(Net::MessageIn &msg)
processRemoveQuest(msg);
break;
+ case SMSG_QUEST_ACTIVATE:
+ processActivateQuest(msg);
+ break;
+
default:
break;
}
@@ -182,6 +187,13 @@ void QuestHandler::processRemoveQuest(Net::MessageIn &msg)
}
}
+void QuestHandler::processActivateQuest(Net::MessageIn &msg)
+{
+ // +++ need enable/disable quests depend on this packet
+ msg.readInt32("quest id");
+ msg.readUInt8("activate");
+}
+
void QuestHandler::setQeustActiveState(const int questId,
const bool active) const
{