Skip to content

Commit 7e019bd

Browse files
author
EvanCobb
committed
fixes for 10.0
1 parent 23153ef commit 7e019bd

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

OpenThosePouches.lua

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,17 @@ local ignoredItems = {
5050
}
5151

5252
local function IsPouch(container, slot)
53-
local texture, count, locked, quality, readable, lootable, itemLink = GetContainerItemInfo(container, slot)
54-
if itemLink == nil then
53+
local itemInfo = C_Container.GetContainerItemInfo(container, slot)
54+
if itemInfo == nil then
5555
return false
5656
end
5757

58-
if lootable == false then
58+
if itemInfo["hasLoot"] == false then
5959
return false
6060
end
6161

62-
local itemId = GetContainerItemID(container, slot)
63-
6462
for _i, lockedItemId in ipairs(ignoredItems) do
65-
if lockedItemId == itemId then
63+
if lockedItemId == itemInfo["itemID"] then
6664
return false
6765
end
6866
end
@@ -74,9 +72,8 @@ local function OpenNextPouch()
7472
-- print("Looking for pouches")
7573

7674
for container = BACKPACK_CONTAINER, NUM_BAG_SLOTS do
77-
for slot = 1, GetContainerNumSlots(container) do
75+
for slot = 1, C_Container.GetContainerNumSlots(container) do
7876
if IsPouch(container, slot) == true then
79-
-- print("Opening ", itemLink)
8077
UseContainerItem(container, slot)
8178
C_Timer.After(delayBetweenSearches, OpenNextPouch)
8279
return

OpenThosePouches.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Interface: 90207
1+
## Interface: 10002
22
## Title: Open Those Pouches
33
## Notes: Automatically opens and tries to loot any backpacks, satchels, or pouches as you loot them
44
## Author: @icbat
5-
## Version: 9
5+
## Version: 10
66

77
## X-WoWI-ID: 26222
88

0 commit comments

Comments
 (0)