# C_ProfSpecs: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_ProfSpecs

## Functions

### C_ProfSpecs.CanRefundPath

```lua
canRefund = C_ProfSpecs.CanRefundPath(pathID, configID)
```

Arguments:
- `pathID`: number
- `configID`: number

Returns:
- `canRefund`: bool

### C_ProfSpecs.CanUnlockTab

```lua
canUnlock = C_ProfSpecs.CanUnlockTab(tabTreeID, configID)
```

Arguments:
- `tabTreeID`: number
- `configID`: number

Returns:
- `canUnlock`: bool

### C_ProfSpecs.GetChildrenForPath

```lua
childIDs = C_ProfSpecs.GetChildrenForPath(pathID)
```

Arguments:
- `pathID`: number

Returns:
- `childIDs`: number[]

### C_ProfSpecs.GetConfigIDForSkillLine

```lua
configID = C_ProfSpecs.GetConfigIDForSkillLine(skillLineID)
```

Arguments:
- `skillLineID`: number

Returns:
- `configID`: number

### C_ProfSpecs.GetCurrencyInfoForSkillLine

```lua
info = C_ProfSpecs.GetCurrencyInfoForSkillLine(skillLineID)
```

Arguments:
- `skillLineID`: number

Returns:
- `info`: SpecializationCurrencyInfo

### C_ProfSpecs.GetDefaultSpecSkillLine

```lua
defaultSpecSkillLine = C_ProfSpecs.GetDefaultSpecSkillLine()
```

Returns:
- `defaultSpecSkillLine`: number, may be nil

### C_ProfSpecs.GetDescriptionForPath

```lua
description = C_ProfSpecs.GetDescriptionForPath(pathID)
```

Arguments:
- `pathID`: number

Returns:
- `description`: string

### C_ProfSpecs.GetDescriptionForPerk

```lua
description = C_ProfSpecs.GetDescriptionForPerk(perkID)
```

Arguments:
- `perkID`: number

Returns:
- `description`: string

### C_ProfSpecs.GetEntryIDForPerk

```lua
entryID = C_ProfSpecs.GetEntryIDForPerk(perkID)
```

Arguments:
- `perkID`: number

Returns:
- `entryID`: number

### C_ProfSpecs.GetNewSpecReminderProfName

```lua
profName = C_ProfSpecs.GetNewSpecReminderProfName()
```

Returns:
- `profName`: cstring, may be nil

### C_ProfSpecs.GetPerksForPath

```lua
perkInfos = C_ProfSpecs.GetPerksForPath(pathID)
```

Arguments:
- `pathID`: number

Returns:
- `perkInfos`: SpecPerkInfo[]

### C_ProfSpecs.GetRootPathForTab

```lua
rootPathID = C_ProfSpecs.GetRootPathForTab(tabTreeID)
```

Arguments:
- `tabTreeID`: number

Returns:
- `rootPathID`: number, may be nil

### C_ProfSpecs.GetSourceTextForPath

```lua
sourceText = C_ProfSpecs.GetSourceTextForPath(pathID, configID)
```

Arguments:
- `pathID`: number
- `configID`: number

Returns:
- `sourceText`: cstring

### C_ProfSpecs.GetSpecTabIDsForSkillLine

```lua
specTabIDs = C_ProfSpecs.GetSpecTabIDsForSkillLine(skillLineID)
```

Arguments:
- `skillLineID`: number

Returns:
- `specTabIDs`: number[]

### C_ProfSpecs.GetSpecTabInfo

```lua
specTabInfo = C_ProfSpecs.GetSpecTabInfo()
```

Returns:
- `specTabInfo`: SpecializationTabInfo

### C_ProfSpecs.GetSpendCurrencyForPath

```lua
currencyID = C_ProfSpecs.GetSpendCurrencyForPath(pathID)
```

Arguments:
- `pathID`: number

Returns:
- `currencyID`: number, may be nil

### C_ProfSpecs.GetSpendEntryForPath

```lua
entryID = C_ProfSpecs.GetSpendEntryForPath(pathID)
```

Arguments:
- `pathID`: number

Returns:
- `entryID`: number

### C_ProfSpecs.GetStateForPath

```lua
state = C_ProfSpecs.GetStateForPath(pathID, configID)
```

Arguments:
- `pathID`: number
- `configID`: number

Returns:
- `state`: ProfessionsSpecPathState

### C_ProfSpecs.GetStateForPerk

```lua
state = C_ProfSpecs.GetStateForPerk(perkID, configID)
```

Arguments:
- `perkID`: number
- `configID`: number

Returns:
- `state`: ProfessionsSpecPerkState

### C_ProfSpecs.GetStateForTab

```lua
tabInfo = C_ProfSpecs.GetStateForTab(tabTreeID, configID)
```

Arguments:
- `tabTreeID`: number
- `configID`: number

Returns:
- `tabInfo`: ProfessionsSpecTabState

### C_ProfSpecs.GetTabInfo

```lua
tabInfo = C_ProfSpecs.GetTabInfo(tabTreeID)
```

Arguments:
- `tabTreeID`: number

Returns:
- `tabInfo`: ProfTabInfo, may be nil

### C_ProfSpecs.GetUnlockEntryForPath

```lua
entryID = C_ProfSpecs.GetUnlockEntryForPath(pathID)
```

Arguments:
- `pathID`: number

Returns:
- `entryID`: number

### C_ProfSpecs.GetUnlockRankForPerk

```lua
unlockRank = C_ProfSpecs.GetUnlockRankForPerk(perkID)
```

Arguments:
- `perkID`: number

Returns:
- `unlockRank`: number, may be nil

### C_ProfSpecs.ShouldShowPointsReminder

```lua
showReminder = C_ProfSpecs.ShouldShowPointsReminder()
```

Returns:
- `showReminder`: bool

### C_ProfSpecs.ShouldShowPointsReminderForSkillLine

```lua
showReminder = C_ProfSpecs.ShouldShowPointsReminderForSkillLine(skillLineID)
```

Arguments:
- `skillLineID`: number

Returns:
- `showReminder`: bool

### C_ProfSpecs.ShouldShowSpecTab

```lua
showSpecTab = C_ProfSpecs.ShouldShowSpecTab()
```

Returns:
- `showSpecTab`: bool

### C_ProfSpecs.SkillLineHasSpecialization

```lua
hasSpecialization = C_ProfSpecs.SkillLineHasSpecialization(skillLineID)
```

Arguments:
- `skillLineID`: number

Returns:
- `hasSpecialization`: bool

## Events

### SKILL_LINE_SPECS_RANKS_CHANGED

No payload.

### SKILL_LINE_SPECS_UNLOCKED

Payload, after the event's name:
- `skillLineID`: number
- `tradeSkillID`: number

---
Make an addon with your 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."
