10-27-14, 06:29 AM | #1 |
AutoLootFix for 6.0
Hey, im not sure if a lot of people know but there has been a bug in the autoloot in WoW for a very long time where sometimes it would not actually autoloot and AutoLootFix fixed this bug, but in 6.0 the way AutoLoot works has changed and this Addon is no longer working as intended
It's a fairly basic Addon and I hope someone can look into how to make it work, sadly while the "click more than once causes autoloot to be disabled" bug has kinda been fixed, sometimes it will still not autoloot which makes it a bit harder to reproduce but it happens pretty often for me at the very least. In LootFrame.lua of Blizzards Loot Frame AutoLoot now looks like this. Lua Code:
In AutoLootFix it's this: Lua Code:
The Addon still triggers fine but the following no longer applies and needs to be changed, sadly i have no damn clue how to make it work as simple as it may be. Lua Code:
For now i replaced the whole addon with this, disabled AutoLoot and AutoLoot key in the Interface and instead use this autoloot, it works but i'd like something that's less hacky Lua Code:
Last edited by Shenj : 11-03-14 at 06:34 PM. |
|
10-27-14, 09:13 AM | #2 |
It likely doesn't work because most 1s and 0s in the interface have been changed to true/false and it's comparing "if( autoLoot == 1 ) then" when it should simply be "if autLoot then".
The places where it compares the value to 0, like "autoLoot == 0" and "shouldAutoLoot == 0" should be changed to "not autoLoot" and "not shouldAutoLoot". |
|
10-30-14, 05:47 AM | #3 |
Thanks, I've changed it but honestly I don't know if it works as I ultimately ended up removing the check and having it simply autloot like this all the time because Blizzards new AutoLoot has some really long delays which just feels weird especially because you can see it, it's not something in the background.
Lua Code:
Last edited by Shenj : 10-30-14 at 08:01 AM. |
|
10-30-14, 09:54 AM | #4 |
You may want to reverse the order of looting to start with the last slot; otherwise you run the risk of the indices shifting as items move up to fill the slots already looted, and items getting skipped.
Code:
for i = GetNumLootItems(), 1, -1 do LootSlot(i) end
__________________
Retired author of too many addons. Message me if you're interested in taking over one of my addons. Don’t message me about addon bugs or programming questions. |
|
11-03-14, 06:31 PM | #5 | |
I added a little bit of extra functionality to it, what i want is to show a Alert if a Rare items drops as i am now hiding the LootFrame instantly to avoid FPS drops, for now it seems to work but if someone can look over it and clean it up/fix something weirdly looking, please Edit: So far so good, went through quite a bunch of revision and changes, so far it looks to work how i want it, not that i really know what im doing, mostly copy&paste with a few changes. One thing that doesn't work here is my Color/Name of the Label, doesn't apply correctly. Lua Code:
Edit: More code For now i switched to this code as i have no idea how i manipulate the frames Blizzard creates properly, so im just spawning my own based on blizzards code. Lua Code:
Last edited by Shenj : 11-04-14 at 08:15 AM. |
||
11-05-14, 11:18 PM | #6 |
As the Nature of my Addon has changed, it no longer is a AutoLoot addon per se as im now using Blizzards autoloot itself and mine is pretty much just doing the Alert & instant hide of loot window, not sure why but i had to use OnUpdate to hide the frame because doing it at LOOT_OPENED event would break Blizzards autoloot, its still incomplete but im starting to be unable to improve it by much because of my lack of knowledge.
If i notice it failing to auto-loot again i will have to revert to force looting it. Lua Code:
Last edited by Shenj : 11-06-14 at 12:27 AM. |
|
WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » AutoLootFix for 6.0 |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|