summaryrefslogtreecommitdiff
path: root/src/net/eathena/questhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 13:38:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 13:38:08 +0300
commit12ae270e892d8d7cef9813031e7359c93009ed02 (patch)
tree1803915e60cdf910d1bec5eeaf129d7d36f79710 /src/net/eathena/questhandler.cpp
parentdc5e757b8ef36c1d3b083a67f4a55aead37b706c (diff)
downloadplus-12ae270e892d8d7cef9813031e7359c93009ed02.tar.gz
plus-12ae270e892d8d7cef9813031e7359c93009ed02.tar.bz2
plus-12ae270e892d8d7cef9813031e7359c93009ed02.tar.xz
plus-12ae270e892d8d7cef9813031e7359c93009ed02.zip
eathena: add partial support for packet SMSG_QUEST_NPC_EFFECT 0x0446.
Diffstat (limited to 'src/net/eathena/questhandler.cpp')
-rw-r--r--src/net/eathena/questhandler.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/questhandler.cpp b/src/net/eathena/questhandler.cpp
index 5c27cbe00..796663bde 100644
--- a/src/net/eathena/questhandler.cpp
+++ b/src/net/eathena/questhandler.cpp
@@ -45,6 +45,7 @@ QuestHandler::QuestHandler() :
SMSG_QUEST_UPDATE_OBJECTIVES,
SMSG_QUEST_REMOVE,
SMSG_QUEST_ACTIVATE,
+ SMSG_QUEST_NPC_EFFECT,
0
};
handledMessages = _messages;
@@ -80,6 +81,10 @@ void QuestHandler::handleMessage(Net::MessageIn &msg)
processActivateQuest(msg);
break;
+ case SMSG_QUEST_NPC_EFFECT:
+ processNpcQuestEffect(msg);
+ break;
+
default:
break;
}
@@ -194,6 +199,17 @@ void QuestHandler::processActivateQuest(Net::MessageIn &msg)
msg.readUInt8("activate");
}
+void QuestHandler::processNpcQuestEffect(Net::MessageIn &msg)
+{
+ // this packed mostly useless, because manaplus can show any
+ // kind of effects based on quest states.
+ msg.readInt32("npc id");
+ msg.readInt16("x");
+ msg.readInt16("y");
+ msg.readInt16("state");
+ msg.readInt16("color");
+}
+
void QuestHandler::setQeustActiveState(const int questId,
const bool active) const
{