View Full Version : TrinityCore 3.3.5 Help with SendListInventory [Rochet2]
10-18-2016, 11:39 AM
hi rochet2. and guys
could you teach, how to modify the Core, to use.
SendListInventory (in item Gossip)?
I like your video.
10-18-2016, 04:23 PM
You can make a new SendListInventory function (copy the existing one) and remove all Creature* usage from it and if needed, replace with Item*.
In some situations as a Creature may be required you must pass NULL or make a workaround or comment out the code.
After doing that you can just use the existing item gossip patch to send the list inventory packet.
Then you will try to buy an item it doesnt work.
For buying to work you need to edit the item buy handler to work with item too. (basically to work without the creature again)
Search opcodes.cpp for "buy" and you will find the handler that handles buying.
Then you also need to make buyback work in the same way.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.