World of Warcraft Forever API · C_ProfSpecs.md, for your AI
C_ProfSpecs
27 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_ProfSpecs.CanRefundPath
canRefund = C_ProfSpecs.CanRefundPath(pathID, configID)
Arguments
pathID | number | |
|---|---|---|
configID | number |
Returns
canRefund | bool |
|---|
C_ProfSpecs.CanUnlockTab
canUnlock = C_ProfSpecs.CanUnlockTab(tabTreeID, configID)
Arguments
tabTreeID | number | |
|---|---|---|
configID | number |
Returns
canUnlock | bool |
|---|
C_ProfSpecs.GetChildrenForPath
childIDs = C_ProfSpecs.GetChildrenForPath(pathID)
Arguments
pathID | number |
|---|
Returns
childIDs | number[] |
|---|
C_ProfSpecs.GetConfigIDForSkillLine
configID = C_ProfSpecs.GetConfigIDForSkillLine(skillLineID)
Arguments
skillLineID | number |
|---|
Returns
configID | number |
|---|
C_ProfSpecs.GetCurrencyInfoForSkillLine
info = C_ProfSpecs.GetCurrencyInfoForSkillLine(skillLineID)
Arguments
skillLineID | number |
|---|
Returns
info | SpecializationCurrencyInfo |
|---|
C_ProfSpecs.GetDefaultSpecSkillLine
defaultSpecSkillLine = C_ProfSpecs.GetDefaultSpecSkillLine()
Returns
defaultSpecSkillLine | number may be nil |
|---|
C_ProfSpecs.GetDescriptionForPath
description = C_ProfSpecs.GetDescriptionForPath(pathID)
Arguments
pathID | number |
|---|
Returns
description | string |
|---|
C_ProfSpecs.GetDescriptionForPerk
description = C_ProfSpecs.GetDescriptionForPerk(perkID)
Arguments
perkID | number |
|---|
Returns
description | string |
|---|
C_ProfSpecs.GetEntryIDForPerk
entryID = C_ProfSpecs.GetEntryIDForPerk(perkID)
Arguments
perkID | number |
|---|
Returns
entryID | number |
|---|
C_ProfSpecs.GetNewSpecReminderProfName
profName = C_ProfSpecs.GetNewSpecReminderProfName()
Returns
profName | cstring may be nil |
|---|
C_ProfSpecs.GetPerksForPath
perkInfos = C_ProfSpecs.GetPerksForPath(pathID)
Arguments
pathID | number |
|---|
Returns
perkInfos | SpecPerkInfo[] |
|---|
C_ProfSpecs.GetRootPathForTab
rootPathID = C_ProfSpecs.GetRootPathForTab(tabTreeID)
Arguments
tabTreeID | number |
|---|
Returns
rootPathID | number may be nil |
|---|
C_ProfSpecs.GetSourceTextForPath
sourceText = C_ProfSpecs.GetSourceTextForPath(pathID, configID)
Arguments
pathID | number | |
|---|---|---|
configID | number |
Returns
sourceText | cstring |
|---|
C_ProfSpecs.GetSpecTabIDsForSkillLine
specTabIDs = C_ProfSpecs.GetSpecTabIDsForSkillLine(skillLineID)
Arguments
skillLineID | number |
|---|
Returns
specTabIDs | number[] |
|---|
C_ProfSpecs.GetSpecTabInfo
specTabInfo = C_ProfSpecs.GetSpecTabInfo()
Returns
specTabInfo | SpecializationTabInfo |
|---|
C_ProfSpecs.GetSpendCurrencyForPath
currencyID = C_ProfSpecs.GetSpendCurrencyForPath(pathID)
Arguments
pathID | number |
|---|
Returns
currencyID | number may be nil |
|---|
C_ProfSpecs.GetSpendEntryForPath
entryID = C_ProfSpecs.GetSpendEntryForPath(pathID)
Arguments
pathID | number |
|---|
Returns
entryID | number |
|---|
C_ProfSpecs.GetStateForPath
state = C_ProfSpecs.GetStateForPath(pathID, configID)
Arguments
pathID | number | |
|---|---|---|
configID | number |
Returns
state | ProfessionsSpecPathState |
|---|
C_ProfSpecs.GetStateForPerk
state = C_ProfSpecs.GetStateForPerk(perkID, configID)
Arguments
perkID | number | |
|---|---|---|
configID | number |
Returns
state | ProfessionsSpecPerkState |
|---|
C_ProfSpecs.GetStateForTab
tabInfo = C_ProfSpecs.GetStateForTab(tabTreeID, configID)
Arguments
tabTreeID | number | |
|---|---|---|
configID | number |
Returns
tabInfo | ProfessionsSpecTabState |
|---|
C_ProfSpecs.GetTabInfo
tabInfo = C_ProfSpecs.GetTabInfo(tabTreeID)
Arguments
tabTreeID | number |
|---|
Returns
tabInfo | ProfTabInfo may be nil |
|---|
C_ProfSpecs.GetUnlockEntryForPath
entryID = C_ProfSpecs.GetUnlockEntryForPath(pathID)
Arguments
pathID | number |
|---|
Returns
entryID | number |
|---|
C_ProfSpecs.GetUnlockRankForPerk
unlockRank = C_ProfSpecs.GetUnlockRankForPerk(perkID)
Arguments
perkID | number |
|---|
Returns
unlockRank | number may be nil |
|---|
C_ProfSpecs.ShouldShowPointsReminder
showReminder = C_ProfSpecs.ShouldShowPointsReminder()
Returns
showReminder | bool |
|---|
C_ProfSpecs.ShouldShowPointsReminderForSkillLine
showReminder = C_ProfSpecs.ShouldShowPointsReminderForSkillLine(skillLineID)
Arguments
skillLineID | number |
|---|
Returns
showReminder | bool |
|---|
C_ProfSpecs.ShouldShowSpecTab
showSpecTab = C_ProfSpecs.ShouldShowSpecTab()
Returns
showSpecTab | bool |
|---|
C_ProfSpecs.SkillLineHasSpecialization
hasSpecialization = C_ProfSpecs.SkillLineHasSpecialization(skillLineID)
Arguments
skillLineID | number |
|---|
Returns
hasSpecialization | bool |
|---|
Events
SKILL_LINE_SPECS_RANKS_CHANGED
No payload.
SKILL_LINE_SPECS_UNLOCKED
skillLineID | number | |
|---|---|---|
tradeSkillID | number |