[DiscordArchive] How can I define an item that a vendor can sell, but instead of for gold, the currency is a custom s
[DiscordArchive] How can I define an item that a vendor can sell, but instead of for gold, the currency is a custom s
Archived author: Michael Crilly • Posted: 2022-11-12T04:56:18.324000+00:00
Original source
How can I define an item that a vendor can sell, but instead of for gold, the currency is a custom soft currency or another item?
Archived author: Bench • Posted: 2022-11-12T04:59:10.905000+00:00
Original source
Well you can do it through gossips or Lua (though I don't know where to grab an example for those), but to do it through a typical vendor menu you'd use itemextendedcosts, which you could stick with the pre-existing entries *or* make your own, but that'd be client editing. Also I'm not too familiar how many options you actually have with that one
Archived author: Michael Crilly • Posted: 2022-11-12T05:00:02.265000+00:00
Original source
I wonder why it's client editing? Vendor lists are streamed in real-time to the client.
Archived author: Bench • Posted: 2022-11-12T05:00:48.037000+00:00
Original source
Sure, but in the case of using currencies other than gold, those quantities and the items used are stored in itemextendedcosts.dbc or some similar name
Archived author: Bench • Posted: 2022-11-12T05:01:32.161000+00:00
Original source
If you set a vendor to use a extendedcost entry that doesn't exist on the client's side, it won't show up correctly visually
Archived author: Michael Crilly • Posted: 2022-11-12T05:02:34.041000+00:00
Original source
Hmm. I guess instead of a standard vendor list (which I guess won't work for me anyway now that I think about it), my vendor's script and the gossip entries can just check the player's inventory for a certain item, a count and then subtract from that, right?
Archived author: Michael Crilly • Posted: 2022-11-12T05:03:00.546000+00:00
Original source
Put another way, my vendor can reach into the player's "pockets" to determine they've got enough of X ad if so, take Y from it and then give them B?
Archived author: Rymercyble • Posted: 2022-11-12T05:03:01.728000+00:00
Original source
common way of getting item for uncommon currencies is with quests
Archived author: Michael Crilly • Posted: 2022-11-12T05:03:41.427000+00:00
Original source
Right. My goal here is to react to `OnQuestComplete` and give the player an item. I want them to be able to then trade those items.
Archived author: Bench • Posted: 2022-11-12T05:04:29.630000+00:00
Original source
I can't think of any reason that wouldn't work