diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-21 20:19:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-21 20:19:42 +0300 |
commit | fb0dad2c1b014efe72f67a9da149083aee703f92 (patch) | |
tree | dff380a2f4e6cbba8ee8f24fca1c6636d2814460 /src/net/ea/npchandler.cpp | |
parent | 1b2f49cb65200eaab379fed577f61277d2b2ebba (diff) | |
download | manaverse-fb0dad2c1b014efe72f67a9da149083aee703f92.tar.gz manaverse-fb0dad2c1b014efe72f67a9da149083aee703f92.tar.bz2 manaverse-fb0dad2c1b014efe72f67a9da149083aee703f92.tar.xz manaverse-fb0dad2c1b014efe72f67a9da149083aee703f92.zip |
Add support for send item indexes to server. Change protocol version to 11.
Diffstat (limited to 'src/net/ea/npchandler.cpp')
-rw-r--r-- | src/net/ea/npchandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; |