Auction house : get specific item price
Hello everyone, i'm new developer and i would like to create an addon who show specific item price when i click on a button (item set in code and no with in game auction house research).
Currently i can create frame and button when i open auction house but i don't know how work auction house api (C_AuctionHouse.GetReplicateItemInfo or C_AuctionHouse.GetCommoditySearchResultInfo). I try with Xrystal code : https://www.wowinterface.com/forums/...ad.php?t=57985 but nothing really gets done. My currently code : Code:
local UIConfig = CreateFrame("Frame", "OpertuneAH", UIParent, "BasicFrameTemplateWithInset"); |
I don't know why my posts keep getting ignored.
Did you try to work with the example I posted in that thread and https://wow.gamepedia.com/API_C_Auct...ReplicateItems |
Ohhhh my bad, i see your post but i missed
Quote:
I try with that but i'm on the right way. Thank you for your answer. |
Okay, i have an another problem, i can print information's from my specific item but when i want to print minimum buyout price (after gold conversion and after retrieve the minimum value in my table) my function return a random value.
Auction house price : https://imgur.com/hoWL390 When i print all price and min price : https://imgur.com/Sqb9AP8 On the screen he return the second price but with other item he return other price. After many research i've tried differents ways but i have always the same result. My functions : Code:
local auctions = {} |
Quote:
I'm guessing it's because you're not waiting for all auction items to get cached, and skip ahead to checking the auctions Here's another example which prints the lowest price for an item ID right after it's done scanning or when you press the button or run a script Lua Code:
|
Thanks for your help Ketho, i reused a part of your code and now my addon works great. I think i need more practice with lua and wow api but it's pretty cool to create a wow addon.
|
awesome code!
Is there any other way besides using C_AuctionHouse.ReplicateItems? The 15 min throttle seems too long for me as prices change quite quickly and the cached value becomes out of date pretty fast. Or did you manage to use some other API? |
Quote:
I added an example to C_AuctionHouse.SendSearchQuery() |
Awesome, this one looks even better as I'd only need to query max 20 items. Thanks for this one!
The REPLICATE_ITEM_LIST_UPDATE event however acts weirdly for me. sometimes the 15 min throttle is accurate, sometime it just doesn't happen. I even waited several hours (tried reopening the AH) but nothing happened. Shouldn't it trigger automatically after this 15 min throttle expires? Thanks! |
Quote:
You mean that the event should fire automatically after the 15 minutes cooldown expires? No, it only fires once you call C_AuctionHouse.ReplicateItems() and while it's not throttled |
The C_AuctionHouse.ReplicateItems() is called on the AUCTION_HOUSE_SHOW event like in your code. It worked 2 times in a row, now it seems to be bricked. Interesting. Tried attaching it to a button click, 35 minutes passed but nothing.
I might be throttled for more than 15 min I guess. Anyways the C_AuctionHouse.SendSearchQuery() works perfectly and suits my needs as I don't really need to scan the whole AH! |
All times are GMT -6. The time now is 09:57 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI