v0.13.8

GetInstanceInfo

functionimplementedavailable in: camelot

Returns info for the map instance the character is currently in.

signaturewowlua
function GetInstanceInfo(): (string, string, number, string, number, number, boolean?, number, number, number?, boolean)

Returns

#nametypedescription
1namestringThe localized name of the instance—otherwise, the continent name (e.g., Eastern Kingdoms, Kalimdor, Outland, Northrend, Pandaria).
2instanceTypestring"none" if the player is not in an instance, "scenario" for scenarios, "party" for dungeons, "raid" for raids, "arena" for arenas, and "pvp" for battlegrounds. Many of the following return values will be nil or otherwise useless in the case of "none".
3difficultyIDnumberThe DifficultyID of the instance. Will return 0 while not in an instance.
4difficultyNamestringThe localized name for the instance's difficulty ("10 Player", "25 Player (Heroic)", etc.).
5maxPlayersnumberMaximum number of players permitted within the instance at the same time.
6dynamicDifficultynumberThe difficulty of dynamic enabled instances. This no longer appears to be used.
7isDynamicboolean?If the instance difficulty can be changed while zoned in. This is true for most raids after and including Icecrown Citadel.
8instanceIDnumberThe InstanceID for the instance or continent.
9instanceGroupSizenumberThe number of players within your instance group.
10lfgDungeonIDnumber?The LfgDungeonID for the current instance group, nil if not in a dungeon finder group.
11hasWorldTierbooleanDefault: false.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Instance system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.