Advertisement
Guest User

Untitled

a guest
Sep 18th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. local _, instanceType, difficulty, _, maxPlayers = GetInstanceInfo()
  2. if not instanceType then--It's a scenario and blizzard reports these really goofy. Only place instanceType is nil
  3.     difficulty = "scenario"
  4. elseif difficulty == 1 then
  5.     difficulty = "normal5"
  6. elseif difficulty == 2 then
  7.     difficulty = "heroic5"
  8. elseif difficulty == 3 then
  9.     difficulty = "normal10"
  10. elseif difficulty == 4 then
  11.     difficulty = "normal25"
  12. elseif difficulty == 5 then
  13.     difficulty = "heroic10"
  14. elseif difficulty == 6 then
  15.     difficulty = "heroic25"
  16. elseif difficulty == 7 then
  17.     difficulty = "lfr"
  18. elseif difficulty == 8 then
  19.     difficulty = "challenge5"
  20. elseif difficulty == 9 then
  21.     difficulty = "normal40"
  22. else
  23.     difficulty = "unknown"
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement