WowAddons

World of Warcraft Forever API · C_ItemInteraction.md, for your AI

C_ItemInteraction

10 functions, 2 events, 3 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_ItemInteraction.ClearPendingItem

C_ItemInteraction.ClearPendingItem()

C_ItemInteraction.CloseUI

C_ItemInteraction.CloseUI()

C_ItemInteraction.GetChargeInfo

chargeInfo = C_ItemInteraction.GetChargeInfo()

Returns

chargeInfoItemInteractionChargeInfo

C_ItemInteraction.GetItemConversionCurrencyCost

conversionCost = C_ItemInteraction.GetItemConversionCurrencyCost(item)

Arguments

itemItemLocation

Returns

conversionCostConversionCurrencyCost

C_ItemInteraction.GetItemInteractionInfo

info = C_ItemInteraction.GetItemInteractionInfo()

Returns

infoItemInteractionFrameInfo may be nil

C_ItemInteraction.GetItemInteractionSpellId

spellId = C_ItemInteraction.GetItemInteractionSpellId()

Returns

spellIdnumber

C_ItemInteraction.InitializeFrame

C_ItemInteraction.InitializeFrame()

C_ItemInteraction.PerformItemInteraction

C_ItemInteraction.PerformItemInteraction()

C_ItemInteraction.Reset

C_ItemInteraction.Reset()

C_ItemInteraction.SetPendingItem

success = C_ItemInteraction.SetPendingItem([item])

Arguments

itemItemLocation may be nil

Returns

successbool

Events

ITEM_INTERACTION_CHARGE_INFO_UPDATED

No payload.

ITEM_INTERACTION_ITEM_SELECTION_UPDATED

itemLocationItemLocation may be nil

Tables

ConversionCurrencyCost structure

currencyIDnumber
amountnumber

ItemInteractionChargeInfo structure

newChargeAmountnumber
rechargeRatenumber
timeToNextChargenumber

ItemInteractionFrameInfo structure

textureKittextureKit
openSoundKitIDnumber
closeSoundKitIDnumber
titleTextstring
tutorialTextstring
buttonTextstring
interactionTypeUIItemInteractionType
flagsUIItemInteractionFlags
descriptionstring may be nil
buttonTooltipstring may be nil
confirmationDescriptionstring may be nil
slotTooltipstring may be nil
costnumber may be nil
currencyTypeIdnumber may be nil
dropInSlotSoundKitIdnumber may be nil

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows