WowAddons

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

C_DyeColor

8 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_DyeColor.GetAllDyeColorCategories

dyeColorCategoryIDs = C_DyeColor.GetAllDyeColorCategories()

Returns

dyeColorCategoryIDsnumber[]

C_DyeColor.GetAllDyeColors

dyeColorIDs = C_DyeColor.GetAllDyeColors([ownedColorsOnly])

Arguments

ownedColorsOnlybool default false

Returns

dyeColorIDsnumber[]

C_DyeColor.GetDyeColorCategoryInfo

dyeColorCategoryInfo = C_DyeColor.GetDyeColorCategoryInfo(dyeColorCategoryID)

Arguments

dyeColorCategoryIDnumber

Returns

dyeColorCategoryInfoDyeColorCategoryDisplayInfo may be nil

C_DyeColor.GetDyeColorInfo

dyeColorInfo = C_DyeColor.GetDyeColorInfo(dyeColorID)

Arguments

dyeColorIDnumber

Returns

dyeColorInfoDyeColorDisplayInfo may be nil

C_DyeColor.GetDyeColorsForItem

dyeColorIDs = C_DyeColor.GetDyeColorsForItem(itemLinkOrID)

Arguments

itemLinkOrIDItemInfo

Returns

dyeColorIDsnumber[]

C_DyeColor.GetDyeColorsForItemLocation

dyeColorIDs = C_DyeColor.GetDyeColorsForItemLocation(itemLocation)

Arguments

itemLocationItemLocation

Returns

dyeColorIDsnumber[]

C_DyeColor.GetDyeColorsInCategory

dyeColorIDs = C_DyeColor.GetDyeColorsInCategory(dyeColorCategory, [ownedColorsOnly])

Arguments

dyeColorCategorynumber
ownedColorsOnlybool default false

Returns

dyeColorIDsnumber[]

C_DyeColor.IsDyeColorOwned

isOwned = C_DyeColor.IsDyeColorOwned(dyeColorID)

True if the player owns any of the consumable item used to apply the specified dye

Arguments

dyeColorIDnumber

Returns

isOwnedbool

Events

DYE_COLOR_CATEGORY_UPDATED

dyeColorCategoryIDnumber

DYE_COLOR_UPDATED

dyeColorIDnumber

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