View Single Post
10-27-21, 02:15 AM   #7
cheesewiz
A Fallenroot Satyr
Join Date: Jan 2021
Posts: 29
But it wouldn't be external data, it would be using the item key data that's already used by the items on the auction house. Also, this isn't automated, just reduced time in order to shop faster. The GSA addon is already able to bring items up within a second of the auction house opening, all that's left would be to have a cache of the item data preloaded into the addon.

If they didn't want that level of automation then https://wowpedia.fandom.com/wiki/API...se.MakeItemKey and https://wowpedia.fandom.com/wiki/API...rchForItemKeys this would be protected functions.

There are already people using this method, I just want something public for everyone to use.

I can do it right now with this, but I don't have a way to generate the item data for my entire shopping cart.

function SniperMixin:Search()
if not self.isReady then return end
local data = tremove(SniperDB, 1)
if not data then
ClearOverrideBindings(self)
print("No Items left in list")
return
end

local auctionID, itemID, itemQuantity, auctionPrice, itemHasVariation, petid = split(data)

local itemKey = C_AuctionHouse.MakeItemKey(itemID, nil, 0, petid)
self.auctionInfo = {
quantity = itemQuantity,
itemKey = itemKey,
price = auctionPrice,
auctionID = auctionID,
}

if (itemHasVariation == "true") then
self:SearchByName(self.auctionInfo)
else
self:SearchByItemKey(self.auctionInfo)
end
end

Last edited by cheesewiz : 10-27-21 at 02:38 AM.
  Reply With Quote