API GetInstanceDifficulty

From Wowpedia
Jump to: navigation, search
Main Menu


WoW API

Returns the difficulty of the instance the player is currently in.

difficultyIndex = GetInstanceDifficulty()

Returns

difficultyIndex 
Number
1 → None
2 → 5 Player & Scenario
3 → 5 Player (Heroic)
4 → 10 Player
5 → 25 Player
6 → 10 Player (Heroic)
7 → 25 Player (Heroic)
8 → Raid Finder
9 → Challenge Mode
10 → 40 Player

Notes

  • Returns 1 if the player is not currently in an instance. Also returns 1 when player is in a battleground.
  • The return values from GetInstanceInfo() are similar, but different (offset by 1).

Details

MoP Patch 5.2.0 (2013-03-05): Removed. Use GetInstanceInfo and GetDifficultyInfo.
MoP Patch 5.0.4 (2012-08-28): New returns for Raid Finder, Challenge Mode, and 40 Player.
WotLK Patch 3.2.0 (2009-08-04): 'Epic' removed from index and replaced with new returns for 10/25 Player normal and Heroic.

Personal tools
Namespaces
Variants
Actions
Navigation Portals
Interaction
Toolbox