From f0315000bcf20685471966d2f25cd8e9f35e8230 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Dec 2013 15:15:44 +0300 Subject: add ability to give more than one item to npc. (evol only) --- src/net/tmwa/npchandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp index 1356dbf8c..bb53ef33f 100644 --- a/src/net/tmwa/npchandler.cpp +++ b/src/net/tmwa/npchandler.cpp @@ -329,10 +329,14 @@ void NpcHandler::processNpcCommand(Net::MessageIn &msg, const int npcId) mDialog->clearRows(); break; case 10: // send selected item id + { + int invSize = msg.readInt32(); + if (!invSize) + invSize = 1; if (mDialog) - mDialog->itemRequest(); + mDialog->itemRequest(invSize); break; - + } default: logger->log("unknown npc command: %d", cmd); break; -- cgit v1.2.3-70-g09d2