World of Warcraft Forever API · C_ToyBoxInfo.md, for your AI
C_ToyBoxInfo
6 functions, 2 events, 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_ToyBoxInfo.ClearFanfare
C_ToyBoxInfo.ClearFanfare(itemID)
Arguments
itemID | number |
|---|
C_ToyBoxInfo.HasAnyToy
hasToy = C_ToyBoxInfo.HasAnyToy()
Returns
hasToy | bool |
|---|
C_ToyBoxInfo.IsToySourceValid
isToySourceValid = C_ToyBoxInfo.IsToySourceValid(source)
Arguments
source | luaIndex |
|---|
Returns
isToySourceValid | bool |
|---|
C_ToyBoxInfo.IsUsingDefaultFilters
isUsingDefaultFilters = C_ToyBoxInfo.IsUsingDefaultFilters()
Returns
isUsingDefaultFilters | bool |
|---|
C_ToyBoxInfo.NeedsFanfare
needsFanfare = C_ToyBoxInfo.NeedsFanfare(itemID)
Arguments
itemID | number |
|---|
Returns
needsFanfare | bool |
|---|
C_ToyBoxInfo.SetDefaultFilters
C_ToyBoxInfo.SetDefaultFilters()
Events
NEW_TOY_ADDED
itemID | number |
|---|
TOYS_UPDATED
itemID | number may be nil | |
|---|---|---|
isNew | bool may be nil | |
hasFanfare | bool may be nil |