From 3a97fc3fd6f316882af762017443c410632d65eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Sep 2016 02:26:55 +0300 Subject: Add paket SMSG_QUEST_ADD2 0x0b24. --- src/net/eathena/questrecv.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/net/eathena/questrecv.cpp') 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"); -- cgit v1.2.3-70-g09d2