• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore 3.3.5 Help with SendListInventory [Rochet2]

kusanagy

Respected Member
hi rochet2. and guys


could you teach, how to modify the Core, to use.

SendListInventory (in item Gossip)?

I like your video.

 

Rochet2

Moderator / Eluna Dev
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.
 
Top