WoW:API GetInstanceDifficulty: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Updated to match the current API boilerplate.)
No edit summary
Line 10: Line 10:
== Returns ==
== Returns ==
:; difficulty : Number - The difficulty of the instance
:; difficulty : Number - The difficulty of the instance
:;: 1 normal
:;: 1 5 or 10 players normal
:;: 2 heroic
:;: 2 5 players heroic / 25 players normal
:;: 3 epic
:;: 3 10 players heroic
:;: 4 25 players heroic




== Details ==
== Details ==
Return 1 if not in an instance.
Return 1 if not in an instance.
3.2.0: 3 (epic) removed and added 3-4 for raid hero

Revision as of 10:22, 6 August 2009

WoW API < GetInstanceDifficulty

Returns the difficulty for instance you are currently in.

difficulty = GetInstanceDifficulty()

Arguments

None


Returns

difficulty
Number - The difficulty of the instance
1 5 or 10 players normal
2 5 players heroic / 25 players normal
3 10 players heroic
4 25 players heroic


Details

Return 1 if not in an instance.

3.2.0: 3 (epic) removed and added 3-4 for raid hero