summaryrefslogtreecommitdiff
path: root/src/net/eathena/questhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-03 00:19:28 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:56 +0300
commitd1b748607aae28c82c0f53e0a97bc988174f6b7a (patch)
tree1ab015faf5e49ec1afd9a2ba3867cf1f2ff65aaa /src/net/eathena/questhandler.cpp
parent6389a4cdcf2b67385bcdb5a37954caba6c28464a (diff)
downloadmv-d1b748607aae28c82c0f53e0a97bc988174f6b7a.tar.gz
mv-d1b748607aae28c82c0f53e0a97bc988174f6b7a.tar.bz2
mv-d1b748607aae28c82c0f53e0a97bc988174f6b7a.tar.xz
mv-d1b748607aae28c82c0f53e0a97bc988174f6b7a.zip
eathena: partially impliment packet SMSG_QUEST_UPDATE_OBJECTIVES 0x02b5.
Diffstat (limited to 'src/net/eathena/questhandler.cpp')
-rw-r--r--src/net/eathena/questhandler.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/net/eathena/questhandler.cpp b/src/net/eathena/questhandler.cpp
index 496ea49ad..3dee91b3f 100644
--- a/src/net/eathena/questhandler.cpp
+++ b/src/net/eathena/questhandler.cpp
@@ -40,6 +40,7 @@ QuestHandler::QuestHandler() :
SMSG_QUEST_ADD,
SMSG_QUEST_LIST,
SMSG_QUEST_LIST_OBJECTIVES,
+ SMSG_QUEST_UPDATE_OBJECTIVES,
0
};
handledMessages = _messages;
@@ -62,6 +63,10 @@ void QuestHandler::handleMessage(Net::MessageIn &msg)
processAddQuestsObjectives(msg);
break;
+ case SMSG_QUEST_UPDATE_OBJECTIVES:
+ processUpdateQuestsObjectives(msg);
+ break;
+
default:
break;
}
@@ -77,6 +82,7 @@ void QuestHandler::processAddQuest(Net::MessageIn &msg)
const int num = msg.readInt16("objectives count");
for (int f = 0; f < num; f ++)
{
+ // need use in quests kills list
msg.readInt32("monster id");
msg.readInt16("count");
msg.readString(24, "monster name");
@@ -132,4 +138,18 @@ void QuestHandler::processAddQuestsObjectives(Net::MessageIn &msg)
}
}
+void QuestHandler::processUpdateQuestsObjectives(Net::MessageIn &msg)
+{
+ msg.readInt16("len");
+ const int num = msg.readInt16("objectives count");
+ for (int f = 0; f < num; f ++)
+ {
+ // need use in quests kills list
+ msg.readInt32("quest id");
+ msg.readInt32("monster id");
+ msg.readInt16("count old");
+ msg.readInt16("count new");
+ }
+}
+
} // namespace TmwAthena