WoW:API GetInstanceInfo: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 4: Line 4:


  name, type, difficultyIndex, difficultyName, maxPlayers,
  name, type, difficultyIndex, difficultyName, maxPlayers,
     dynamicDifficulty, isDynamic, instanceMapId = GetInstanceInfo()
     dynamicDifficulty, isDynamic, instanceMapId, lfgID = GetInstanceInfo()


== Returns ==
== Returns ==
# name (string) - the name of the instance (localized), otherwise the continent name (eg: Eastern Kingdoms, Kalimdor, Northrend, Outland)
# name (string) - the name of the instance (localized), otherwise the continent name (eg: Eastern Kingdoms, Kalimdor, Northrend, Outland)
# type (string) - "none" if the player is not in an instance, "party" if in party, "raid" if in a raid, "pvp" for battleground. Many of following result values will be nil or otherwise useless in the case of "none".
# type (string) - "none" if the player is not in an instance, "party" if in party, "raid" if in a raid, "pvp" for battleground. Many of following result values will be nil or otherwise useless in the case of "none".
# difficultyIndex (number) - the difficulty of the instance (see Details)
# difficultyIndex (number) - the difficulty of the instance (see Details)
# difficultyName (string) - the difficulty of the instance ("10 Player", "25 Player (Heroic)", etc)
# difficultyName (string) - the difficulty of the instance ("10 Player", "25 Player (Heroic)", etc)
Line 15: Line 15:
# isDynamic (Boolean) - If the instance difficulty can be changed while zoned in
# isDynamic (Boolean) - If the instance difficulty can be changed while zoned in
# instanceMapID (number) - [[InstanceMapID]] for the instance. not the same as [[MapID]].
# instanceMapID (number) - [[InstanceMapID]] for the instance. not the same as [[MapID]].
# lfgID (number)


== Details ==
== Details ==
Anonymous user