View Full Version : [SOLVED] Merchant/Store

01-19-2016, 01:06 PM
I apologize if this is a stupid question.
Is there a way to create a store through eluna and gossip menus? Basically I want to update a npc to be an all in one for my funserver, and I would like to have four menus:

player:GossipMenuAddItem(0, "Heirloom Shop", 1, 5)
player:GossipMenuAddItem(0, "Mount Shop", 1, 6)
player:GossipMenuAddItem(0, "Enchant Shop", 1, 7)
player:GossipMenuAddItem(0, "Cool Stuff Shop", 1, 8)

And have it open a vendor window that I configure through the script?

Thank you!

*sigh* it was a stupid question :(

AddVendorItem( entry, item, maxcount, incrtime, extendedcost )

01-19-2016, 02:06 PM
Hey there! Welcome to EmuDevs. I have moved this thread to the correct area. Eluna -> LUA is for releases only.

Seems you have solved your own question, best of luck. Won't close this thread in case you get stuck again on this problem.

01-19-2016, 03:26 PM
I would like to note that this is not a proper way to make an NPC that has multiple vendor views. A proper way is to use a core modification like the Multivendor patch (c++).
The issues with this approach is that this edits the database on every item add and delete and multiple users can not properly use the same vendor at the same time - even from different spawns of the NPC.