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.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index a71283863..27c8c6903 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -53,6 +53,7 @@ NpcHandler::NpcHandler() :
SMSG_NPC_CUTIN,
SMSG_NPC_VIEWPOINT,
SMSG_NPC_SHOW_PROGRESS_BAR,
+ SMSG_NPC_CLOSE_TIMEOUT,
0
};
handledMessages = _messages;
@@ -99,6 +100,10 @@ void NpcHandler::handleMessage(Net::MessageIn &msg)
processNpcShowProgressBar(msg);
break;
+ case SMSG_NPC_CLOSE_TIMEOUT:
+ processNpcCloseTimeout(msg);
+ break;
+
default:
break;
}
@@ -324,4 +329,10 @@ void NpcHandler::processNpcShowProgressBar(Net::MessageIn &msg) const
msg.readInt32("seconds");
}
+void NpcHandler::processNpcCloseTimeout(Net::MessageIn &msg) const
+{
+ // this packet send after npc closed by timeout.
+ msg.readInt32("npc id");
+}
+
} // namespace EAthena