WowAddons

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

C_SpecializationInfo

31 functions, 10 events, 6 tables, 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_SpecializationInfo.CanPlayerUsePVPTalentUI

canUse, failureReason = C_SpecializationInfo.CanPlayerUsePVPTalentUI()

Returns

canUsebool
failureReasonstring

C_SpecializationInfo.CanPlayerUseTalentSpecUI

canUse, failureReason = C_SpecializationInfo.CanPlayerUseTalentSpecUI()

Returns

canUsebool
failureReasonstring

C_SpecializationInfo.CanPlayerUseTalentUI

canUse, failureReason = C_SpecializationInfo.CanPlayerUseTalentUI()

Returns

canUsebool
failureReasonstring

C_SpecializationInfo.GetActiveSpecGroup

groupIndex = C_SpecializationInfo.GetActiveSpecGroup([isInspect], [isPet])

Arguments

isInspectbool may be nil
isPetbool may be nil

Returns

groupIndexluaIndex

C_SpecializationInfo.GetAllClassIDs

allClassIDs = C_SpecializationInfo.GetAllClassIDs()

Returns

allClassIDsnumber[]

C_SpecializationInfo.GetAllSelectedPvpTalentIDs

selectedPvpTalentIDs = C_SpecializationInfo.GetAllSelectedPvpTalentIDs()

Returns

selectedPvpTalentIDsnumber[]

C_SpecializationInfo.GetClassIDFromSpecID

classID = C_SpecializationInfo.GetClassIDFromSpecID(specID)

Arguments

specIDnumber

Returns

classIDnumber may be nil

C_SpecializationInfo.GetCombatConfigIDForSpecGroup

configID = C_SpecializationInfo.GetCombatConfigIDForSpecGroup(groupIndex)

Arguments

groupIndexluaIndex

Returns

configIDnumber may be nil

C_SpecializationInfo.GetInspectSelectedPvpTalent

selectedTalentID = C_SpecializationInfo.GetInspectSelectedPvpTalent(inspectedUnit, talentIndex)

Arguments

inspectedUnitUnitToken
talentIndexnumber

Returns

selectedTalentIDnumber may be nil

C_SpecializationInfo.GetInspectSpecialization

specializationID = C_SpecializationInfo.GetInspectSpecialization(unit)

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments

unitUnitToken

Returns

specializationIDnumber

C_SpecializationInfo.GetNumSpecializationsForClassID

specCount = C_SpecializationInfo.GetNumSpecializationsForClassID(classID)

Arguments

classIDnumber

Returns

specCountnumber

C_SpecializationInfo.GetPvpTalentAlertStatus

hasUnspentSlot, hasNewTalent = C_SpecializationInfo.GetPvpTalentAlertStatus()

Returns

hasUnspentSlotbool
hasNewTalentbool

C_SpecializationInfo.GetPvpTalentInfo

talentInfo = C_SpecializationInfo.GetPvpTalentInfo(talentID)

Arguments

talentIDnumber

Returns

talentInfoPvpTalentInfo may be nil

C_SpecializationInfo.GetPvpTalentSlotInfo

slotInfo = C_SpecializationInfo.GetPvpTalentSlotInfo(talentIndex)

Arguments

talentIndexnumber

Returns

slotInfoPvpTalentSlotInfo may be nil

C_SpecializationInfo.GetPvpTalentSlotUnlockLevel

requiredLevel = C_SpecializationInfo.GetPvpTalentSlotUnlockLevel(talentIndex)

Arguments

talentIndexnumber

Returns

requiredLevelnumber may be nil

C_SpecializationInfo.GetPvpTalentUnlockLevel

requiredLevel = C_SpecializationInfo.GetPvpTalentUnlockLevel(talentID)

Arguments

talentIDnumber

Returns

requiredLevelnumber may be nil

C_SpecializationInfo.GetSpecIDs

specIDs = C_SpecializationInfo.GetSpecIDs(specSetID)

Arguments

specSetIDnumber

Returns

specIDsnumber[]

C_SpecializationInfo.GetSpecialization

specializationIndex = C_SpecializationInfo.GetSpecialization([isInspect], [isPet], [specGroupIndex])

Arguments

isInspectbool may be nil
isPetbool may be nil
specGroupIndexluaIndex may be nil

Returns

specializationIndexluaIndex

C_SpecializationInfo.GetSpecializationInfo

specId, name, description, icon, role, primaryStat, pointsSpent, background, previewPointsSpent, isUnlocked = C_SpecializationInfo.GetSpecializationInfo(specializationIndex, [isInspect], [isPet], [inspectTarget], [sex], [groupIndex], [classID])

Arguments

specializationIndexluaIndex
isInspectbool default false
isPetbool default false
inspectTargetstring may be nil
sexnumber may be nil
groupIndexluaIndex may be nil
classIDnumber may be nil

Returns

specIdnumber default 0
namestring may be nil
descriptionstring may be nil
iconfileID may be nil
rolestring may be nil
primaryStatluaIndex may be nil
pointsSpentnumber default 0
backgroundstring may be nil
previewPointsSpentnumber default 0
isUnlockedbool default true

C_SpecializationInfo.GetSpecializationMasterySpells

spellIDs = C_SpecializationInfo.GetSpecializationMasterySpells(specializationIndex, [isInspect], [isPet])

Arguments

specializationIndexluaIndex
isInspectbool may be nil
isPetbool may be nil

Returns

spellIDsnumber[]

C_SpecializationInfo.GetSpellsDisplay

spellID = C_SpecializationInfo.GetSpellsDisplay(specializationID)

Arguments

specializationIDnumber

Returns

spellIDnumber[]

C_SpecializationInfo.GetTalentInfo

result = C_SpecializationInfo.GetTalentInfo(query)

Arguments

queryTalentInfoQuery

Returns

resultTalentInfoResult may be nil

C_SpecializationInfo.HasPlayerEarnedATalentPoint

hasEarned = C_SpecializationInfo.HasPlayerEarnedATalentPoint()

Returns

hasEarnedbool

C_SpecializationInfo.IsInitialized

isSpecializationDataInitialized = C_SpecializationInfo.IsInitialized()

Returns

isSpecializationDataInitializedbool

C_SpecializationInfo.IsPvpTalentLocked

locked = C_SpecializationInfo.IsPvpTalentLocked(talentID)

Arguments

talentIDnumber

Returns

lockedbool

C_SpecializationInfo.IsSpecSelectionEnabled

enabled = C_SpecializationInfo.IsSpecSelectionEnabled(classID)

Arguments

classIDnumber

Returns

enabledbool

C_SpecializationInfo.MatchesCurrentSpecSet

matches = C_SpecializationInfo.MatchesCurrentSpecSet(specSetID)

Arguments

specSetIDnumber

Returns

matchesbool

C_SpecializationInfo.SetActiveSpecGroup

C_SpecializationInfo.SetActiveSpecGroup(groupIndex)

Arguments

groupIndexluaIndex

C_SpecializationInfo.SetPetSpecialization

C_SpecializationInfo.SetPetSpecialization(specIndex, [petNumber])

Arguments

specIndexluaIndex
petNumbernumber may be nil

C_SpecializationInfo.SetPvpTalentLocked

C_SpecializationInfo.SetPvpTalentLocked(talentID, locked)

Arguments

talentIDnumber
lockedbool

C_SpecializationInfo.SetSpecialization

success = C_SpecializationInfo.SetSpecialization(specIndex)

Arguments

specIndexluaIndex

Returns

successbool

Events

ACTIVE_TALENT_GROUP_CHANGED

currnumber
prevnumber

CONFIRM_PET_UNLEARN

costnumber

CONFIRM_TALENT_WIPE

costnumber
respecTypenumber

PET_SPECIALIZATION_CHANGED

No payload.

PLAYER_LEARN_PVP_TALENT_FAILED

No payload.

PLAYER_LEARN_TALENT_FAILED

No payload.

PLAYER_PVP_TALENT_UPDATE

No payload.

PLAYER_TALENT_UPDATE

No payload.

SPEC_INVOLUNTARILY_CHANGED

isPetbool

TALENTS_INVOLUNTARILY_RESET

isPetTalentsbool

Tables

PvpTalentInfo structure

talentIDnumber
namestring
iconnumber
selectedbool
availablebool
spellIDnumber
unlockedbool
knownbool
grantedByAurabool
dependenciesUnmetbool
dependenciesUnmetReasonstring may be nil

PvpTalentSlotInfo structure

enabledbool
levelnumber
selectedTalentIDnumber may be nil
availableTalentIDsnumber[]

SpecializationInfoOutput structure

specIdnumber default 0
namestring may be nil
descriptionstring may be nil
iconfileID may be nil
rolestring may be nil
primaryStatluaIndex may be nil
pointsSpentnumber default 0
backgroundstring may be nil
previewPointsSpentnumber default 0
isUnlockedbool default true

SpecializationInfoQuery structure

specializationIndexluaIndex
isInspectbool default false
isPetbool default false
inspectTargetstring may be nil
sexnumber may be nil
groupIndexluaIndex may be nil
classIDnumber may be nil

TalentInfoQuery structure

groupIndexluaIndex may be nil
isInspectbool default false
tierluaIndex may be nil
columnluaIndex may be nil
targetUnitToken may be nil
specializationIndexluaIndex may be nil
talentIndexluaIndex may be nil
isPetbool default false

TalentInfoResult structure

talentIDnumber default 0
namestring
iconfileID
tierluaIndex
columnluaIndex
selectedbool default false
availablebool default false
spellIDnumber default 0
isPVPTalentUnlockedbool default false
knownbool default false
grantedByAurabool default false
rankluaIndex
maxRankluaIndex
meetsPrereqbool default false
previewRankluaIndex
meetsPreviewPrereqbool default false
isExceptionalbool default false
hasGoldBorderbool default false

Il te faut WowAddons

Gratuit, pour Windows, macOS et Linux : il met l’addon dans ton jeu en un clic et le tient à jour. Ouvre-le une fois, puis appuie de nouveau sur Installer.

WowAddons tourne sur ton ordinateur : ouvre wowaddons.gg dessus.

Télécharger pour Windows