summaryrefslogtreecommitdiff
path: root/src/net/eathena/questhandler.cpp
diff options
context:
space:
mode:
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
{