From d2bde911f0b80515066f100fc4704793255be0ea Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Oct 2014 16:37:13 +0300 Subject: eathena: add packet SMSG_NPC_CLOSE_TIMEOUT 0x08d6. --- src/net/eathena/npchandler.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/net/eathena/npchandler.cpp') 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 -- cgit v1.2.3-70-g09d2