From 2f6d82e85aed4fe91bda5962572188ee6b8afa02 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 01:14:52 +0300 Subject: eathena: add partial support for packet SMSG_NPC_SHOW_PROGRESS_BAR 0x02f0. --- src/net/eathena/npchandler.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/npchandler.cpp') 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 -- cgit v1.2.3-60-g2f50