summaryrefslogtreecommitdiff
path: root/src/net/eathena/npchandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-14 16:37:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-14 16:38:42 +0300
commitd2bde911f0b80515066f100fc4704793255be0ea (patch)
tree150da1eaac501bad68096eed085be16bf8f19432 /src/net/eathena/npchandler.cpp
parenta7105aa2f73a372be018173e47b2fa8e6cfa87e4 (diff)
downloadManaVerse-d2bde911f0b80515066f100fc4704793255be0ea.tar.gz
ManaVerse-d2bde911f0b80515066f100fc4704793255be0ea.tar.bz2
ManaVerse-d2bde911f0b80515066f100fc4704793255be0ea.tar.xz
ManaVerse-d2bde911f0b80515066f100fc4704793255be0ea.zip
eathena: add packet SMSG_NPC_CLOSE_TIMEOUT 0x08d6.
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