summaryrefslogtreecommitdiff
path: root/src/net/eathena/questrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-26 01:57:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-26 01:57:34 +0300
commit199aabc0a0af0bfd591b1d85b9a12e4cc383b1eb (patch)
tree937e065ee92d92babcfb51078b544e5363b72927 /src/net/eathena/questrecv.cpp
parent248aa66d1065b99ae8b138ef7929f1573c56f79b (diff)
downloadmanaverse-199aabc0a0af0bfd591b1d85b9a12e4cc383b1eb.tar.gz
manaverse-199aabc0a0af0bfd591b1d85b9a12e4cc383b1eb.tar.bz2
manaverse-199aabc0a0af0bfd591b1d85b9a12e4cc383b1eb.tar.xz
manaverse-199aabc0a0af0bfd591b1d85b9a12e4cc383b1eb.zip
Add packet SMSG_QUEST_LIST2 0x0b23.
Increase packet version to 20.
Diffstat (limited to 'src/net/eathena/questrecv.cpp')
-rw-r--r--src/net/eathena/questrecv.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp
index 206ed7798..dc2ed0c18 100644
--- a/src/net/eathena/questrecv.cpp
+++ b/src/net/eathena/questrecv.cpp
@@ -85,6 +85,29 @@ void QuestRecv::processAddQuests(Net::MessageIn &msg)
questsWindow->rebuild(false);
}
+void QuestRecv::processAddQuests2(Net::MessageIn &msg)
+{
+ msg.readInt16("len");
+ const int num = msg.readInt32("quests count");
+ for (int f = 0; f < num; f ++)
+ {
+ const int var = msg.readInt32("quest id");
+ msg.readUInt8("state");
+ const int val = msg.readInt32("count1");
+ // +++ need use all this fields
+ msg.readInt32("count2");
+ msg.readInt32("count3");
+ msg.readInt32("time");
+ if (questsWindow)
+ questsWindow->updateQuest(var, val);
+ if (skillDialog)
+ skillDialog->updateQuest(var, val);
+ }
+
+ if (questsWindow)
+ questsWindow->rebuild(false);
+}
+
void QuestRecv::processAddQuestsObjectives(Net::MessageIn &msg)
{
msg.readInt16("len");