can traditional auction house searching be phased out with an addon?
someone told me you could use caching to store the item keys for every item you want to shop for to save time on search results. then, through the use of an automatic search function, you could shop for items as soon as the auction house is opened. my question is, how much faster would this be? you would still need the auction id and the price parameter for the addon to show items at or below that price. would this realistically be any faster than what trade skill master does?
|
I'm not entirely sure what you're asking.
|
Quote:
|
In-game addons and your Python script are accessing two seperate APIs. You can't access both APIs from the same code (in-game addons can't access the web API and Python can access the in-game API).
I think that's what you're asking. |
Quote:
|
The difference between the web api and searching in game is that to do the same thing in-game you would have to actually be at the AH with the AH UI open all day. You can't be off questing, raiding etc. and running AH searches at the same time.
You can't "inject" external information into a running addon so you can't add items from your latest sim without either pasting in-game or exiting, running a process to update addon information and the re-starting the game. Quote:
|
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. Quote:
|
The web API cannot be accessed in the game, as noted. It also is updated about once per hour, assuming Blizzard's web auction house API is working.
You can use the in game Lua API to cache your data, but then you're depending on it to have every item, which isn't possible. The Lua API will see things as it finds them, and by the time it runs through, the earliest items which are expiring first might not be available, even though your cached data thinks they exist. The other issue is a forced cooldown on how often you can scan the auction house in game. I seem to recall the cooldown is 15 minutes, so it isn't like you can be constantly updating your cached data. Since your original question refers to TradeSkillMaster and shopping for items as soon as the auction house window is open, that is exactly what TSM does with grouped items. Their implementation is as fast as the system can get. |
Quote:
|
Quote:
It's not really, it's just a list of item information that could be sourced from anywhere (WoWHead, Raidbot presumably, a script/program that gets the information from somwhere "outside" of the game, ...). That list can't be updated from these external sources while the game is running. The question becomes, how and where from do you want to create a list of item information for the "stuff" you specifically want to search for (your cache). The code supplied also looks like it's only searching one item at a time where C_AuctionHouse.SearchForItemKeys appears to be able to accept a table of multiple itemKey tables. That might make an actual pass quicker but the AH API isn't something I've used. |
Quote:
|
Quote:
Addons (the extremely restricted sub-set of the lua language) can't access the web to get the information to create your shopping list. Because of Blizzards very heavy restrictions on what in-game addons can and can't do is why services like TSM have seperate methods for alerting and in-game AHing. |
Quote:
Python allows me to generate every variation possible for each item because there are databases (Raidbots, Undermine Journal, TSM api) who provide public access to this info. If this doesn't explain it, then idk how to. |
All times are GMT -6. The time now is 03:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI