• 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 WotLK Sunwell Core

robbie5325

New member
Item gossip with Eluna.

http://pastebin.com/raEQvTwA

I'm trying to figure out how to build the world packet and send the vendor packet to the player.
Credit to Rochet2 for showing me how to add "SetCurrentVendor" to Eluna.

Basically, I'm trying to make an item that can open up a vendor window, and then send the appropriate item vendor, then enchant the item you select.
Rochet told me I need to build and send the vendor packet to the player, which I still have no idea how to do.
 
Last edited:

Rochet2

Moderator / Eluna Dev
You must pass a creature object to it that has vendor flags (129) and npc_vendor entries that define the items it has.
Not a number, a creature object.

Btw. To do what you want:
If you want to do it properly you can make C++ core modifications to allow multivendor and item vendors.
Or a workaround is that you can make the item spawn NPCs that show the vendors to the player.

You can only do the latter on normal core without C++ modifications even if it has Eluna.
 
Last edited:
Top