WowAddons

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

Instance (global functions)

18 functions, 3 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

CanChangePlayerDifficulty

canChange, notOnCooldown = CanChangePlayerDifficulty()

May return nothing.

Returns

canChangebool
notOnCooldownbool

CanMapChangeDifficulty

canChange = CanMapChangeDifficulty([mapID])

Arguments

mapIDnumber may be nil

Returns

canChangebool

CanShowResetInstances

result = CanShowResetInstances()

Returns

resultbool

GetBaseDifficultyID

baseDifficultyID = GetBaseDifficultyID(difficultyID)

Arguments

difficultyIDnumber

Returns

baseDifficultyIDnumber

GetDifficultyInfo

name, instanceType, isHeroic, isChallengeMode, displayHeroic, displayMythic, toggleDifficultyID, isLFR, minPlayers, maxPlayers, isUserSelectable = GetDifficultyInfo(difficultyID)

Arguments

difficultyIDnumber

Returns

namecstring
instanceTypecstring
isHeroicbool
isChallengeModebool
displayHeroicbool
displayMythicbool
toggleDifficultyIDnumber may be nil
isLFRbool
minPlayersnumber may be nil
maxPlayersnumber may be nil
isUserSelectablebool

GetDungeonDifficultyID

result = GetDungeonDifficultyID()

Returns

resultnumber

GetInstanceBootTimeRemaining

result = GetInstanceBootTimeRemaining()

Returns

resultnumber

GetInstanceInfo

name, instanceType, difficultyID, difficultyName, maxPlayers, dynamicDifficulty, isDynamic, instanceID, instanceGroupSize, lfgDungeonID, hasWorldTier = GetInstanceInfo()

Returns

namecstring
instanceTypecstring
difficultyIDnumber
difficultyNamecstring
maxPlayersnumber
dynamicDifficultynumber
isDynamicbool may be nil
instanceIDnumber
instanceGroupSizenumber
lfgDungeonIDnumber may be nil
hasWorldTierbool default false

GetInstanceLockTimeRemaining

timeLeft, extending, encountersTotal, encountersCompleted = GetInstanceLockTimeRemaining()

Returns

timeLeftnumber
extendingbool
encountersTotalnumber
encountersCompletednumber

GetInstanceLockTimeRemainingEncounter

encounterName, texture, isKilled, ineligible = GetInstanceLockTimeRemainingEncounter(encounterIndex)

Arguments

encounterIndexluaIndex

Returns

encounterNamecstring
texturecstring
isKilledbool
ineligiblebool

GetLegacyRaidDifficultyID

result = GetLegacyRaidDifficultyID()

Returns

resultnumber may be nil

GetRaidDifficultyID

result = GetRaidDifficultyID()

Returns

resultnumber may be nil

IsInInstance

isInInstance, instanceType = IsInInstance()

Returns

isInInstancebool
instanceTypecstring

IsLegacyDifficulty

result = IsLegacyDifficulty(difficultyID)

Arguments

difficultyIDnumber

Returns

resultbool may be nil

ResetInstances

ResetInstances()

SetDungeonDifficultyID

SetDungeonDifficultyID(difficultyID)

Arguments

difficultyIDnumber

SetLegacyRaidDifficultyID

SetLegacyRaidDifficultyID(difficultyID, [force])

Arguments

difficultyIDnumber
forcebool default false

SetRaidDifficultyID

SetRaidDifficultyID(difficultyID, [force])

Arguments

difficultyIDnumber
forcebool default false

Tables

DifficultyInfo structure

namecstring
instanceTypecstring
isHeroicbool
isChallengeModebool
displayHeroicbool
displayMythicbool
toggleDifficultyIDnumber may be nil
isLFRbool
minPlayersnumber may be nil
maxPlayersnumber may be nil
isUserSelectablebool

DungeonEncounterInfo structure

encounterNamecstring
texturecstring
isKilledbool
ineligiblebool

InstanceInfo structure

namecstring
instanceTypecstring
difficultyIDnumber
difficultyNamecstring
maxPlayersnumber
dynamicDifficultynumber
isDynamicbool may be nil
instanceIDnumber
instanceGroupSizenumber
lfgDungeonIDnumber may be nil
hasWorldTierbool default false

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