summaryrefslogtreecommitdiff
path: root/src/net/ea/npchandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-30 18:49:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-30 18:49:42 +0300
commitb205c5b9e6614a2821f2a44dc104306a27ade7ba (patch)
tree510b4d126b64b9db4abaedd3f7a708bb9e0e0435 /src/net/ea/npchandler.cpp
parentfde614c1e6e944b4805e7e6a89689b9d546330ad (diff)
downloadplus-b205c5b9e6614a2821f2a44dc104306a27ade7ba.tar.gz
plus-b205c5b9e6614a2821f2a44dc104306a27ade7ba.tar.bz2
plus-b205c5b9e6614a2821f2a44dc104306a27ade7ba.tar.xz
plus-b205c5b9e6614a2821f2a44dc104306a27ade7ba.zip
eathena: add packet SMSG_NPC_CHANGETITLE 0x0b06.
Diffstat (limited to 'src/net/ea/npchandler.cpp')
-rw-r--r--src/net/ea/npchandler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp
index a436b6cbe..aa545d7d8 100644
--- a/src/net/ea/npchandler.cpp
+++ b/src/net/ea/npchandler.cpp
@@ -201,4 +201,13 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg)
}
}
+void NpcHandler::processChangeTitle(Net::MessageIn &msg)
+{
+ npcHandler->getNpc(msg);
+ mRequestLang = false;
+ const std::string str = msg.readString(-1, "title");
+ if (mDialog)
+ mDialog->setCaption(str);
+}
+
} // namespace Ea