summaryrefslogtreecommitdiff
path: root/src/net/eathena/npchandler.cpp
diff options
context:
space:
mode:
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