diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-07 16:59:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-07 16:59:33 +0300 |
commit | 62c5097904bfc6c6e44e776730ea1d01aaf891c2 (patch) | |
tree | 57216dc3193690c95152405ba50ab222d431a089 /src/net/ea/npcrecv.cpp | |
parent | 8eb2e7d993ad9759da2fbeccea1a924b1b7f64dd (diff) | |
download | manaplus-62c5097904bfc6c6e44e776730ea1d01aaf891c2.tar.gz manaplus-62c5097904bfc6c6e44e776730ea1d01aaf891c2.tar.bz2 manaplus-62c5097904bfc6c6e44e776730ea1d01aaf891c2.tar.xz manaplus-62c5097904bfc6c6e44e776730ea1d01aaf891c2.zip |
Add partial implimentation for craft inventory. For now almost same with npc inventory.
Diffstat (limited to 'src/net/ea/npcrecv.cpp')
-rw-r--r-- | src/net/ea/npcrecv.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/ea/npcrecv.cpp b/src/net/ea/npcrecv.cpp index d4c6b3d6b..c447fd5c5 100644 --- a/src/net/ea/npcrecv.cpp +++ b/src/net/ea/npcrecv.cpp @@ -202,6 +202,15 @@ void NpcRecv::processNpcCommand(Net::MessageIn &msg) mDialog->itemIndexRequest(invSize); break; } + case 12: // send complex items + { + int invSize = toInt(id, int); + if (!invSize) + invSize = 1; + if (mDialog) + mDialog->itemCraftRequest(invSize); + break; + } default: UNIMPLIMENTEDPACKET; break; |