summaryrefslogtreecommitdiff
path: root/src/net/eathena/questrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-26 02:26:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-26 02:26:55 +0300
commit3a97fc3fd6f316882af762017443c410632d65eb (patch)
treee9c195564471f930d74fb8058614374dc53dc881 /src/net/eathena/questrecv.cpp
parent199aabc0a0af0bfd591b1d85b9a12e4cc383b1eb (diff)
downloadplus-3a97fc3fd6f316882af762017443c410632d65eb.tar.gz
plus-3a97fc3fd6f316882af762017443c410632d65eb.tar.bz2
plus-3a97fc3fd6f316882af762017443c410632d65eb.tar.xz
plus-3a97fc3fd6f316882af762017443c410632d65eb.zip
Add paket SMSG_QUEST_ADD2 0x0b24.
Diffstat (limited to 'src/net/eathena/questrecv.cpp')
-rw-r--r--src/net/eathena/questrecv.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp
index dc2ed0c18..ca5f706e8 100644
--- a/src/net/eathena/questrecv.cpp
+++ b/src/net/eathena/questrecv.cpp
@@ -61,6 +61,28 @@ void QuestRecv::processAddQuest(Net::MessageIn &msg)
}
}
+void QuestRecv::processAddQuest2(Net::MessageIn &msg)
+{
+ 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);
+ questsWindow->rebuild(true);
+ }
+ if (skillDialog)
+ {
+ skillDialog->updateQuest(var, val);
+ skillDialog->playUpdateEffect(var + SKILL_VAR_MIN_ID);
+ }
+}
+
void QuestRecv::processAddQuests(Net::MessageIn &msg)
{
msg.readInt16("len");