WoW:API GetInstanceInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with '{{wowapi}} __NOTOC__ Returns information about the current instances the player is in. name, type, difficulty, difficultyName = GetInstanceInfo() === Returns === :;name : Str...')
 
(link to getinstancedifficulty)
Line 7: Line 7:
=== Returns ===
=== Returns ===
:;name : String - the name of the instance (localized)
:;name : String - the name of the instance (localized)
:;type : String - "none" if the player is not in an instance, "party" if in party,
:;type : String - "none" if the player is not in an instance, "party" if in party, "raid" if in a raid
:;difficulty : Number - the difficulty of the raid instance
:;difficulty : Number - the difficulty of the instance
:;difficultyName : String - the difficulty of the raid instance
:;difficultyName : String - the difficulty of the instance


==Details==
==Details==


* Added in 3.2
* Added in 3.2
* "difficulty of the instance" is described in [[API_GetInstanceDifficulty|GetInstanceDifficulty()]]

Revision as of 05:39, 11 August 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)
type
String - "none" if the player is not in an instance, "party" if in party, "raid" if in a raid
difficulty
Number - the difficulty of the instance
difficultyName
String - the difficulty of the instance

Details