Files
wow-weakauras/NewAge/AHBot/AUCTION_HOUSE_BROWSE_RESULTS_UPDATED.lua

19 lines
661 B
Lua

function()
results = C_AuctionHouse.GetBrowseResults()
-- DevTools_Dump(results)
for k,v in ipairs(results) do
local itemID = v.itemKey.itemID
local itemName = GetItemInfo(itemID)
if aura_env.sellPriceThresholds[itemID] then
if v.minPrice > aura_env.sellPriceThresholds[itemID] then
print(itemName, "too expensive")
return true
end
elseif aura_env.buyPriceThresholds[itemID] then
if v.minPrice < aura_env.buyPriceThresholds[itemID] then
print(itemName, "too cheap")
return true
end
end
end
end