WowAddons

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

C_LegendaryCrafting

20 functions, 4 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_LegendaryCrafting.CloseRuneforgeInteraction

C_LegendaryCrafting.CloseRuneforgeInteraction()

C_LegendaryCrafting.CraftRuneforgeLegendary

C_LegendaryCrafting.CraftRuneforgeLegendary(description)

Arguments

descriptionRuneforgeLegendaryCraftDescription

C_LegendaryCrafting.GetRuneforgeItemPreviewInfo

info = C_LegendaryCrafting.GetRuneforgeItemPreviewInfo(baseItem, [runeforgePowerID], [modifiers])

Arguments

baseItemItemLocation
runeforgePowerIDnumber may be nil
modifiersnumber[] may be nil

Returns

infoRuneforgeItemPreviewInfo may be nil

C_LegendaryCrafting.GetRuneforgeLegendaryComponentInfo

componentInfo = C_LegendaryCrafting.GetRuneforgeLegendaryComponentInfo(runeforgeLegendary)

Arguments

runeforgeLegendaryItemLocation

Returns

componentInfoRuneforgeLegendaryComponentInfo

C_LegendaryCrafting.GetRuneforgeLegendaryCost

cost = C_LegendaryCrafting.GetRuneforgeLegendaryCost(baseItem)

Arguments

baseItemItemLocation

Returns

costCurrencyCost[]

C_LegendaryCrafting.GetRuneforgeLegendaryCraftSpellID

spellID = C_LegendaryCrafting.GetRuneforgeLegendaryCraftSpellID()

Returns

spellIDnumber

C_LegendaryCrafting.GetRuneforgeLegendaryCurrencies

currencies = C_LegendaryCrafting.GetRuneforgeLegendaryCurrencies()

Returns

currenciesnumber[]

C_LegendaryCrafting.GetRuneforgeLegendaryUpgradeCost

cost = C_LegendaryCrafting.GetRuneforgeLegendaryUpgradeCost(runeforgeLegendary, upgradeItem)

Arguments

runeforgeLegendaryItemLocation
upgradeItemItemLocation

Returns

costCurrencyCost[]

C_LegendaryCrafting.GetRuneforgeModifierInfo

name, description = C_LegendaryCrafting.GetRuneforgeModifierInfo(baseItem, [powerID], addedModifierIndex, modifiers)

Arguments

baseItemItemLocation
powerIDnumber may be nil
addedModifierIndexluaIndex
modifiersnumber[]

Returns

namestring
descriptionstring[]

C_LegendaryCrafting.GetRuneforgeModifiers

modifiedReagentItemIDs = C_LegendaryCrafting.GetRuneforgeModifiers()

Returns

modifiedReagentItemIDsnumber[]

C_LegendaryCrafting.GetRuneforgePowerInfo

power = C_LegendaryCrafting.GetRuneforgePowerInfo(runeforgePowerID)

Arguments

runeforgePowerIDnumber

Returns

powerRuneforgePower

C_LegendaryCrafting.GetRuneforgePowerSlots

slotNames = C_LegendaryCrafting.GetRuneforgePowerSlots(runeforgePowerID)

Arguments

runeforgePowerIDnumber

Returns

slotNamescstring[]

C_LegendaryCrafting.GetRuneforgePowers

primaryRuneforgePowerIDs, otherRuneforgePowerIDs = C_LegendaryCrafting.GetRuneforgePowers([baseItem], [filter])

Arguments

baseItemItemLocation may be nil
filterRuneforgePowerFilter may be nil

Returns

primaryRuneforgePowerIDsnumber[]
otherRuneforgePowerIDsnumber[]

C_LegendaryCrafting.GetRuneforgePowersByClassSpecAndCovenant

runeforgePowerIDs = C_LegendaryCrafting.GetRuneforgePowersByClassSpecAndCovenant([classID], [specID], [covenantID], [filter])

Arguments

classIDnumber may be nil
specIDnumber may be nil
covenantIDnumber may be nil
filterRuneforgePowerFilter may be nil

Returns

runeforgePowerIDsnumber[]

C_LegendaryCrafting.IsRuneforgeLegendary

isRuneforgeLegendary = C_LegendaryCrafting.IsRuneforgeLegendary(item)

Arguments

itemItemLocation

Returns

isRuneforgeLegendarybool

C_LegendaryCrafting.IsRuneforgeLegendaryMaxLevel

isMaxLevel = C_LegendaryCrafting.IsRuneforgeLegendaryMaxLevel(runeforgeLegendary)

Arguments

runeforgeLegendaryItemLocation

Returns

isMaxLevelbool

C_LegendaryCrafting.IsUpgradeItemValidForRuneforgeLegendary

isValid = C_LegendaryCrafting.IsUpgradeItemValidForRuneforgeLegendary(runeforgeLegendary, upgradeItem)

Arguments

runeforgeLegendaryItemLocation
upgradeItemItemLocation

Returns

isValidbool

C_LegendaryCrafting.IsValidRuneforgeBaseItem

isValid = C_LegendaryCrafting.IsValidRuneforgeBaseItem(baseItem)

Arguments

baseItemItemLocation

Returns

isValidbool

C_LegendaryCrafting.MakeRuneforgeCraftDescription

description = C_LegendaryCrafting.MakeRuneforgeCraftDescription(baseItem, runeforgePowerID, modifiers)

Arguments

baseItemItemLocation
runeforgePowerIDnumber
modifiersnumber[]

Returns

descriptionRuneforgeLegendaryCraftDescription

C_LegendaryCrafting.UpgradeRuneforgeLegendary

C_LegendaryCrafting.UpgradeRuneforgeLegendary(runeforgeLegendary, upgradeItem)

Arguments

runeforgeLegendaryItemLocation
upgradeItemItemLocation

Events

NEW_RUNEFORGE_POWER_ADDED

powerIDnumber

RUNEFORGE_LEGENDARY_CRAFTING_CLOSED

No payload.

RUNEFORGE_LEGENDARY_CRAFTING_OPENED

isUpgradebool

RUNEFORGE_POWER_INFO_UPDATED

powerIDnumber

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