View Single Post
06-16-15, 12:14 PM   #2
Kygo
A Theradrim Guardian
 
Kygo's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 64
You could change the auto loot CVar if you're in a garrison using mapID and zone_changed event if im not completley wrong?
And for the resources overcap, I think MasterPlan has something that does that for resources you can get from missions.

Or try a loot filter addon (if they still exists)

Threw some stuff togheter, I have no idea if it works at all. (took the map ids from Rilgamons post)
Lua Code:
  1. local maps = {
  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 InGarrison = function()
  13.     local name, instanceType, difficultyID, difficultyName, maxPlayers, dynamicDifficulty, isDynamic, instanceMapID, instanceGroupSize = GetInstanceInfo()
  14.         if(maps[instanceMapID]) then
  15.         SetCVar("autoLootDefault", 0)
  16.         else
  17.         SetCVar("autoLootDefault", 1)
  18.         end
  19. end
  20.  
  21. local reg = CreateFrame("Frame")
  22. reg:SetScript("OnEvent", InGarrison)
  23. reg:RegisterEvent("ZONE_CHANGED")

What Fizzlemizz said aswell

Last edited by Kygo : 06-16-15 at 12:39 PM.
  Reply With Quote