WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Disable auto loot in Garrison (prevent resscource overcap) (https://www.wowinterface.com/forums/showthread.php?t=52371)

Tonyleila 06-16-15 04:18 AM

Disable auto loot in Garrison (prevent resscource overcap)
 
Woud it be possible to prevent you from auto looting from your work orders? Like Apexis Crystals from Mage Tower / Spirit Lodge, Garrison Resources from your Trading Post or Honor Points from your Gladiator's Sanctum.

Maybe it woud even be possible to check how many work orders are ready and compare it to your current cap of this Resources.

Kygo 06-16-15 12:14 PM

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 :p

Fizzlemizz 06-16-15 12:24 PM

If you have autoloot on then doesn't single looting revert to shift-click by default?

SDPhantom 06-16-15 01:15 PM

Quote:

Originally Posted by Fizzlemizz (Post 309154)
If you have autoloot on then doesn't single looting revert to shift-click by default?

It does, though one idea that would be nice is to modify autoloot to skip currency items that are already capped. If the user really wants to ignore this and loot the item, they'll still be able to click on it in the loot window.

Tonyleila 06-16-15 07:31 PM

The reason I ask this is I just wasted 3000 Apexis Crystals because I auto looted it without checking my cap.
GM said he sees what happens and he can prove it but he can't restore it... ofc I coud have shift-clicked it but I just did klick the boxes by reflex.

Thanks for the code Kygo, I'll check if this works for me.

Quote:

Originally Posted by Kygo (Post 309153)
And for the resources overcap, I think MasterPlan has something that does that for resources you can get from missions.

Well but not for the Buildings :( woud realy like to see this it then feels more integrated into the UI because I woud like to auto loot the profession things :)

sezz 06-17-15 10:07 AM

If you click on a finished workorder you'll get whatever it contains - it doesn't matter if autoloot is enabled or disabled (the Postmaster handles uncollected workorders).

PS: If you're capped on Apexis crystals you can afford to waste 3000 of them ;)

Petrah 06-17-15 09:05 PM

Quote:

Originally Posted by sezz (Post 309178)

PS: If you're capped on Apexis crystals you can afford to waste 3000 of them ;)

Since they're raising the cap with the patch next week, it is indeed a waste.

natassja72 06-19-15 05:55 AM

Master Plan won't loot excess resources and crystals with apropriate message.


All times are GMT -6. The time now is 08:31 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI