From b205c5b9e6614a2821f2a44dc104306a27ade7ba Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 30 Nov 2014 18:49:42 +0300 Subject: eathena: add packet SMSG_NPC_CHANGETITLE 0x0b06. --- src/net/ea/npchandler.cpp | 9 +++++++++ src/net/ea/npchandler.h | 2 ++ 2 files changed, 11 insertions(+) (limited to 'src/net/ea') 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 diff --git a/src/net/ea/npchandler.h b/src/net/ea/npchandler.h index d518c6416..51e06e3c7 100644 --- a/src/net/ea/npchandler.h +++ b/src/net/ea/npchandler.h @@ -56,6 +56,8 @@ class NpcHandler notfinal : public Net::NpcHandler static void processNpcCommand(Net::MessageIn &msg); + static void processChangeTitle(Net::MessageIn &msg); + protected: NpcHandler(); -- cgit v1.2.3-70-g09d2