diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-30 18:49:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-30 18:49:42 +0300 |
commit | b205c5b9e6614a2821f2a44dc104306a27ade7ba (patch) | |
tree | 510b4d126b64b9db4abaedd3f7a708bb9e0e0435 /src/net/eathena/npchandler.cpp | |
parent | fde614c1e6e944b4805e7e6a89689b9d546330ad (diff) | |
download | ManaVerse-b205c5b9e6614a2821f2a44dc104306a27ade7ba.tar.gz ManaVerse-b205c5b9e6614a2821f2a44dc104306a27ade7ba.tar.bz2 ManaVerse-b205c5b9e6614a2821f2a44dc104306a27ade7ba.tar.xz ManaVerse-b205c5b9e6614a2821f2a44dc104306a27ade7ba.zip |
eathena: add packet SMSG_NPC_CHANGETITLE 0x0b06.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r-- | src/net/eathena/npchandler.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index 0d1e8f4f8..c4fd98dd9 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -55,6 +55,7 @@ NpcHandler::NpcHandler() : SMSG_NPC_SHOW_PROGRESS_BAR, SMSG_NPC_CLOSE_TIMEOUT, SMSG_NPC_COMMAND, + SMSG_NPC_CHANGETITLE, 0 }; handledMessages = _messages; @@ -109,6 +110,10 @@ void NpcHandler::handleMessage(Net::MessageIn &msg) processNpcCommand(msg); break; + case SMSG_NPC_CHANGETITLE: + processChangeTitle(msg); + break; + default: break; } @@ -261,7 +266,8 @@ void NpcHandler::selectAutoSpell(const int skillId) const int NpcHandler::getNpc(Net::MessageIn &msg) { if (msg.getId() == SMSG_NPC_CHOICE - || msg.getId() == SMSG_NPC_MESSAGE) + || msg.getId() == SMSG_NPC_MESSAGE + || msg.getId() == SMSG_NPC_CHANGETITLE) { msg.readInt16("len"); } |