WoW:API GetInstanceDifficulty: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded code block)
(Updated to match the current API boilerplate.)
Line 1: Line 1:
{{stub/API}}
{{wowapi}} __NOTOC__
{{wowapi}}


Returns the difficulty for instance you are currently in.
Returns the difficulty for instance you are currently in.
  difficulty = GetInstanceDifficulty()
  difficulty = GetInstanceDifficulty()


==Arguments==
== Arguments ==
None
None


===Result===
Returns an integer.


Difficulty:
== Returns ==
1 normal
:; difficulty : Number - The difficulty of the instance
2 heroic
:;: 1 normal
3 epic
:;: 2 heroic
:;: 3 epic


===Notes===
 
== Details ==
Return 1 if not in an instance.
Return 1 if not in an instance.

Revision as of 19:19, 25 June 2007

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 normal
2 heroic
3 epic


Details

Return 1 if not in an instance.