World of Warcraft Forever API · C_PlayerInfo.md, for your AI
C_PlayerInfo
33 functions, 2 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_PlayerInfo.CanPlayerEnterChromieTime
canEnter = C_PlayerInfo.CanPlayerEnterChromieTime()
Returns
canEnter | bool |
|---|
C_PlayerInfo.CanPlayerUseAreaLoot
canUseAreaLoot = C_PlayerInfo.CanPlayerUseAreaLoot()
Returns
canUseAreaLoot | bool |
|---|
C_PlayerInfo.CanPlayerUseMountEquipment
canUseMountEquipment, failureReason = C_PlayerInfo.CanPlayerUseMountEquipment()
Returns
canUseMountEquipment | bool | |
|---|---|---|
failureReason | string |
C_PlayerInfo.CanUseItem
isUseable = C_PlayerInfo.CanUseItem(itemID)
Arguments
itemID | number |
|---|
Returns
isUseable | bool |
|---|
C_PlayerInfo.GetAlternateFormInfo
hasAlternateForm, inAlternateForm = C_PlayerInfo.GetAlternateFormInfo()
Returns
hasAlternateForm | bool | |
|---|---|---|
inAlternateForm | bool |
C_PlayerInfo.GetContentDifficultyCreatureForPlayer
difficulty = C_PlayerInfo.GetContentDifficultyCreatureForPlayer(unitToken)
Arguments
unitToken | UnitToken |
|---|
Returns
difficulty | RelativeContentDifficulty |
|---|
C_PlayerInfo.GetContentDifficultyQuestForPlayer
difficulty = C_PlayerInfo.GetContentDifficultyQuestForPlayer(questID)
Arguments
questID | number |
|---|
Returns
difficulty | RelativeContentDifficulty |
|---|
C_PlayerInfo.GetDisplayID
displayID = C_PlayerInfo.GetDisplayID()
Returns
displayID | number |
|---|
C_PlayerInfo.GetGlidingInfo
isGliding, canGlide, forwardSpeed = C_PlayerInfo.GetGlidingInfo()
Returns
isGliding | bool | |
|---|---|---|
canGlide | bool | |
forwardSpeed | number |
C_PlayerInfo.GetInstancesUnlockedAtLevel
dungeonID = C_PlayerInfo.GetInstancesUnlockedAtLevel(level, isRaid)
May return nothing.
Arguments
level | number | |
|---|---|---|
isRaid | bool |
Returns
dungeonID | number[] |
|---|
C_PlayerInfo.GetNativeDisplayID
nativeDisplayID = C_PlayerInfo.GetNativeDisplayID()
Returns
nativeDisplayID | number |
|---|
C_PlayerInfo.GetPetStableCreatureDisplayInfoID
creatureDisplayInfoID = C_PlayerInfo.GetPetStableCreatureDisplayInfoID(index)
Arguments
index | number |
|---|
Returns
creatureDisplayInfoID | number |
|---|
C_PlayerInfo.GetPlayerCharacterData
characterData = C_PlayerInfo.GetPlayerCharacterData()
May return nothing.
Returns
characterData | PlayerInfoCharacterData |
|---|
C_PlayerInfo.GetPlayerMythicPlusRatingSummary
ratingSummary = C_PlayerInfo.GetPlayerMythicPlusRatingSummary(playerToken)
Returns the players mythic+ rating summary which includes the runs they've completed as well as their current season m+ rating
May return nothing.
Arguments
playerToken | UnitToken |
|---|
Returns
ratingSummary | MythicPlusRatingSummary |
|---|
C_PlayerInfo.HasAccountInventoryLock
hasAccountInventoryLock = C_PlayerInfo.HasAccountInventoryLock()
Returns
hasAccountInventoryLock | bool |
|---|
C_PlayerInfo.HasVisibleInvSlot
isVisible = C_PlayerInfo.HasVisibleInvSlot(slot)
Arguments
slot | luaIndex |
|---|
Returns
isVisible | bool |
|---|
C_PlayerInfo.IsAccountBankEnabled
isAccountBankEnabled = C_PlayerInfo.IsAccountBankEnabled()
Returns
isAccountBankEnabled | bool |
|---|
C_PlayerInfo.IsCharacterBankEnabled
isCharacterBankEnabled = C_PlayerInfo.IsCharacterBankEnabled()
Returns
isCharacterBankEnabled | bool |
|---|
C_PlayerInfo.IsDisplayRaceNative
isDisplayRaceNative = C_PlayerInfo.IsDisplayRaceNative()
Returns
isDisplayRaceNative | bool |
|---|
C_PlayerInfo.IsExpansionLandingPageUnlockedForPlayer
isUnlocked = C_PlayerInfo.IsExpansionLandingPageUnlockedForPlayer(expansionID)
Arguments
expansionID | number |
|---|
Returns
isUnlocked | bool |
|---|
C_PlayerInfo.IsMirrorImage
isMirrorImage = C_PlayerInfo.IsMirrorImage()
Returns
isMirrorImage | bool |
|---|
C_PlayerInfo.IsPlayerEligibleForNPE
isEligible, failureReason = C_PlayerInfo.IsPlayerEligibleForNPE()
Returns
isEligible | bool | |
|---|---|---|
failureReason | string |
C_PlayerInfo.IsPlayerEligibleForNPEv2
isEligible, failureReason = C_PlayerInfo.IsPlayerEligibleForNPEv2()
Returns
isEligible | bool | |
|---|---|---|
failureReason | string |
C_PlayerInfo.IsPlayerInChromieTime
inChromieTime = C_PlayerInfo.IsPlayerInChromieTime()
Returns
inChromieTime | bool |
|---|
C_PlayerInfo.IsPlayerInRPE
isInRPE = C_PlayerInfo.IsPlayerInRPE()
Returns
isInRPE | bool |
|---|
C_PlayerInfo.IsPlayerInTimerunningHeroicWorldTier
inTimerunningHeroicWorldTier = C_PlayerInfo.IsPlayerInTimerunningHeroicWorldTier()
Returns
inTimerunningHeroicWorldTier | bool |
|---|
C_PlayerInfo.IsPlayerNPERestricted
isRestricted = C_PlayerInfo.IsPlayerNPERestricted()
Returns
isRestricted | bool |
|---|
C_PlayerInfo.IsReturningCharacter
isReturning = C_PlayerInfo.IsReturningCharacter()
Returns
isReturning | bool |
|---|
C_PlayerInfo.IsSelfFoundActive
active = C_PlayerInfo.IsSelfFoundActive()
Returns
active | bool |
|---|
C_PlayerInfo.IsTradingPostAvailable
isAvailable = C_PlayerInfo.IsTradingPostAvailable()
Returns
isAvailable | bool |
|---|
C_PlayerInfo.IsTravelersLogAvailable
isAvailable = C_PlayerInfo.IsTravelersLogAvailable()
Returns
isAvailable | bool |
|---|
C_PlayerInfo.IsTutorialsTabAvailable
isAvailable = C_PlayerInfo.IsTutorialsTabAvailable()
Returns
isAvailable | bool |
|---|
C_PlayerInfo.ShouldDisplaySurname
display = C_PlayerInfo.ShouldDisplaySurname()
Returns
display | bool |
|---|
Tables
MythicPlusRatingMapSummary structure
Specific information about a completed mythic plus run.
challengeModeID | number | |
|---|---|---|
mapScore | number | |
bestRunLevel | number | |
bestRunDurationMS | number | |
finishedSuccess | bool |
MythicPlusRatingSummary structure
The current season rating and well as a list of completed mythic plus runs.
currentSeasonScore | number | |
|---|---|---|
runs | MythicPlusRatingMapSummary[] |