summaryrefslogtreecommitdiff
path: root/src/net/eathena/npchandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 01:14:52 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 01:14:52 +0300
commit2f6d82e85aed4fe91bda5962572188ee6b8afa02 (patch)
tree116602dbde06f18b8b679903c12b346847725409 /src/net/eathena/npchandler.cpp
parent3d1770d40bb11292d79bbdf0a6c9e628509632d5 (diff)
downloadplus-2f6d82e85aed4fe91bda5962572188ee6b8afa02.tar.gz
plus-2f6d82e85aed4fe91bda5962572188ee6b8afa02.tar.bz2
plus-2f6d82e85aed4fe91bda5962572188ee6b8afa02.tar.xz
plus-2f6d82e85aed4fe91bda5962572188ee6b8afa02.zip
eathena: add partial support for packet SMSG_NPC_SHOW_PROGRESS_BAR 0x02f0.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r--src/net/eathena/npchandler.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index 62b6b09e7..5ae4c4084 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -52,6 +52,7 @@ NpcHandler::NpcHandler() :
SMSG_NPC_STR_INPUT,
SMSG_NPC_CUTIN,
SMSG_NPC_VIEWPOINT,
+ SMSG_NPC_SHOW_PROGRESS_BAR,
0
};
handledMessages = _messages;
@@ -96,6 +97,10 @@ void NpcHandler::handleMessage(Net::MessageIn &msg)
processNpcViewPoint(msg);
break;
+ case SMSG_NPC_SHOW_PROGRESS_BAR:
+ processNpcShowProgressBar(msg);
+ break;
+
default:
break;
}
@@ -240,13 +245,13 @@ int NpcHandler::getNpc(Net::MessageIn &msg)
return npcId;
}
-void NpcHandler::processNpcCutin(Net::MessageIn &msg A_UNUSED)
+void NpcHandler::processNpcCutin(Net::MessageIn &msg)
{
msg.readString(64); // image name
msg.readUInt8(); // type
}
-void NpcHandler::processNpcViewPoint(Net::MessageIn &msg A_UNUSED)
+void NpcHandler::processNpcViewPoint(Net::MessageIn &msg)
{
// +++ probably need add nav point and start moving to it
msg.readInt32("npc id");
@@ -259,4 +264,11 @@ void NpcHandler::processNpcViewPoint(Net::MessageIn &msg A_UNUSED)
msg.readInt32("color");
}
+void NpcHandler::processNpcShowProgressBar(Net::MessageIn &msg) const
+{
+ // +++ probably need show progress bar in npc dialog
+ msg.readInt32("color");
+ msg.readInt32("seconds");
+}
+
} // namespace EAthena