View Single Post
01-09-15, 10:18 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Lua Code:
  1. local garrisonMaps = {
  2.     [1152] = true, -- FW Horde Garrison Level 1
  3.     [1330] = true, -- FW Horde Garrison Level 2
  4.     [1153] = true, -- FW Horde Garrison Level 3
  5.     [1154] = true, -- FW Horde Garrison Level 4
  6.     [1158] = true, -- SMV Alliance Garrison Level 1
  7.     [1331] = true, -- SMV Alliance Garrison Level 2
  8.     [1159] = true, -- SMV Alliance Garrison Level 3
  9.     [1160] = true, -- SMV Alliance Garrison Level 4
  10. }
  11.  
  12. local function InGarrison()
  13.     local name, instanceType, difficultyID, difficultyName, maxPlayers, dynamicDifficulty, isDynamic, instanceMapID, instanceGroupSize = GetInstanceInfo()
  14.     if(garrisonMaps[instanceMapID]) then
  15.         return true
  16.     end
  17.     return false
  18. end
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote