PDA

View Full Version : TrinityCore WotLK Sunwell Core



robbie5325
08-13-2016, 12:43 AM
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.

Rochet2
08-13-2016, 08:10 AM
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.

robbie5325
08-13-2016, 09:07 AM
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.