WoW:API GetInstanceInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
Line 6: Line 6:


=== Returns ===
=== Returns ===
:;name : String - the name of the instance (localized)
:;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
:;type : String - "none" if the player is not in an instance, "party" if in party, "raid" if in a raid, "pvp" for battleground
:;difficulty : Number - the difficulty of the instance
:;difficulty : Number - the difficulty of the instance

Revision as of 03:56, 23 October 2009

WoW API < GetInstanceInfo

Returns information about the current instances the player is in.

name, type, difficulty, difficultyName = GetInstanceInfo()

Returns

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
difficulty
Number - the difficulty of the instance
difficultyName
String - the difficulty of the instance

Details