World of Warcraft Forever API · UseContainerItem.md, for your AI
UseContainerItem is not in Forever
An addon that calls it stops at /reload with attempt to call global 'UseContainerItem' (a nil value). Write C_Container.UseContainerItem instead: its arguments and returns may differ from the old UseContainerItem, read them below.
C_Container.UseContainerItem
C_Container.UseContainerItem(containerIndex, slotIndex, [unitToken], [bankType], [reagentBankOpen])
Arguments
containerIndex | BagIndex | |
|---|---|---|
slotIndex | luaIndex | |
unitToken | UnitToken may be nil | |
bankType | BankType may be nil | |
reagentBankOpen | bool default false |
Every other call of the C_Container system: C_Container. The WowAddons app checks a whole addon before the game does: wowaddons check names each call Forever lacks and what to write instead.
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.