From fb0dad2c1b014efe72f67a9da149083aee703f92 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 21 Aug 2015 20:19:42 +0300 Subject: Add support for send item indexes to server. Change protocol version to 11. --- src/net/ea/npchandler.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/net/ea/npchandler.cpp') diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp index 878a51552..2224de3e0 100644 --- a/src/net/ea/npchandler.cpp +++ b/src/net/ea/npchandler.cpp @@ -193,6 +193,15 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg) mDialog->itemRequest(invSize); break; } + case 11: // send selected item index + { + int invSize = toInt(id, int); + if (!invSize) + invSize = 1; + if (mDialog) + mDialog->itemIndexRequest(invSize); + break; + } default: UNIMPLIMENTEDPACKET; break; -- cgit v1.2.3-60-g2f50