Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetInstanceInfo

Last wiki revision 2023-07-24

Returns info for the map instance the character is currently in. name, instanceType, difficultyID, difficultyName, maxPlayers, dynamicDifficulty, isDynamic, instanceID, instanceGroupSize, LfgDungeonID = GetInstanceInfo

  • 1. name: - The localized name of the instance—otherwise, the continent name (e.g., Eastern Kingdoms, Kalimdor, Outland, Northrend, Pandaria).
  • 2. instanceType: - "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".
  • 3. difficultyID: - The DifficultyID of the instance. Will return 0 while not in an instance.
  • 4. difficultyName: - The localized name for the instance's difficulty ("10 Player", "25 Player (Heroic)", etc.).
  • 5. maxPlayers: - Maximum number of players permitted within the instance at the same time.
  • 6. dynamicDifficulty: - The difficulty of dynamic enabled instances. This no longer appears to be used.
  • 7. isDynamic: - If the instance difficulty can be changed while zoned in. This is true for most raids after and including Icecrown Citadel.
  • 8. instanceID: - The InstanceID for the instance or continent.
  • 9. instanceGroupSize: - The number of players within your instance group.
  • 10. LfgDungeonID: - The LfgDungeonID for the current instance group, nil if not in a dungeon finder group.

Source

https://warcraft.wiki.gg/wiki/API_GetInstanceInfo · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.