From 5001fa194c820422dd5de2dd655c17bde131e1cb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 11 Aug 2013 11:40:12 +0300 Subject: add support for giving item to npc (evol only) chancge network version to 9. --- src/net/tmwa/network.h | 2 +- src/net/tmwa/npchandler.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/tmwa/network.h b/src/net/tmwa/network.h index 0dfd067a8..62104592b 100644 --- a/src/net/tmwa/network.h +++ b/src/net/tmwa/network.h @@ -32,7 +32,7 @@ * Protocol version, reported to the eAthena char and mapserver who can adjust * the protocol accordingly. */ -#define CLIENT_PROTOCOL_VERSION 8 +#define CLIENT_PROTOCOL_VERSION 9 #define CLIENT_TMW_PROTOCOL_VERSION 1 namespace TmwAthena diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp index ddbc6a220..7bdf671a4 100644 --- a/src/net/tmwa/npchandler.cpp +++ b/src/net/tmwa/npchandler.cpp @@ -318,6 +318,10 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg, const int npcId) if (mDialog) mDialog->clearRows(); break; + case 10: // send selected item id + if (mDialog) + mDialog->itemRequest(); + break; default: logger->log("unknown npc command: %d", cmd); -- cgit v1.2.3-70-g09d2