C_MerchantFrame
namespaceavailable in: camelotStatus in wowlua
7 functions: 6 implemented, 0 recorded, 1 guessed. 4 events, 4 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
GetBuybackItemID | Returns the ID of an item on the vendor's buyback tab. · by wowlua(buybackSlotIndex: number): number? | implemented |
GetItemInfo | Returns info for a merchant item.(index: number): MerchantItemInfo? | implemented |
GetMerchantCurrencies | Returns the IDs of the currencies the open vendor uses. · by wowlua(): number[]? | implemented |
GetNumJunkItems | Returns the number of poor quality items in the player's bags. · by wowlua(): number | implemented |
IsMerchantItemRefundable | Returns if an item is refundable.(index: number): boolean | implemented |
IsSellAllJunkEnabled | Whether the vendor's sell all junk button is available. · by wowlua(): boolean | implemented |
SellAllJunkItems | Sells every poor quality item in the player's bags to the open vendor. · by wowlua() | guessed |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
MERCHANT_CLOSED | no payload | implemented |
MERCHANT_FILTER_ITEM_UPDATE | itemID: number | implemented |
MERCHANT_SHOW | no payload | implemented |
MERCHANT_UPDATE | no payload | implemented |
Structures
MerchantItemInfo· name?, texture, price, stackCount, numAvailable, isPurchasable, isUsable, hasExtendedCost, currencyID?, spellID?, isQuestStartItem
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (MerchantFrame system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.