Auction House API
Hello, has anyone got some semi-decent documentation on the AH API? I am trying to do simple things, like find all auctions for a particular item.
https://wow.gamepedia.com/World_of_W...#Auction_House for the API
https://wow.gamepedia.com/Events#C_AuctionHouse for the events
Thanks I have already looked at these but they were too cryptic to understand. I did call an easy one, C_AuctionHouse.CloseAuctionHouse(); that worked OK :)
But I have no idea how to browse , for example I did this:
-- minlevel, maxlevel
-- classIndex, subclassIndex
and nothing happened, I am not sure what it returns. Now you have pointed out events to me, so maybe I will receive events as returns from the call?
In most cases code responds to events, therefore they happen first and then you do something when they fire.
For example, AUCTION_HOUSE_SHOW fires and then you can scan for listed posts. You wouldn't, nor couldn't, scan for auctions if the auction house window was not open.
An obvious exception is C_AuctionHouse.CloseAuctionHouse() which then triggers AUCTION_HOUSE_CLOSED, essentially the reverse of the usual activity.
Yes, I understand, having also turned trace on and/or printed out events as they arrive. For example when I search for something it does this:
event:[AUCTION_HOUSE_THROTTLED_MESSAGE_SENT] - arg1:[nil] - arg2:[nil] - arg3:[nil] - arg4:[nil] - arg5:[nil] - arg6:[nil] - arg7:[nil]
event:[AUCTION_HOUSE_NEW_RESULTS_RECEIVED] - arg1:[table: 0000024510C18450] - arg2:[nil] - arg3:[nil] - arg4:[nil] - arg5:[nil] - arg6:[nil] - arg7:[nil]
event:[AUCTION_HOUSE_THROTTLED_SYSTEM_READY] - arg1:[nil] - arg2:[nil] - arg3:[nil] - arg4:[nil] - arg5:[nil] - arg6:[nil] - arg7:[nil]
event:[AUCTION_HOUSE_THROTTLED_SPECIFIC_SEARCH_READY] - arg1:[nil] - arg2:[nil] - arg3:[nil] - arg4:[nil] - arg5:[nil] - arg6:[nil] - arg7:[nil]
I cannot see what message was sent to the server, what parameters, and I cannot see what message was received, and what parameters. All except that table which I will investigate now.
An example would be great.
OK I have almost sorted it now. I can get a list of items, quantities, and prices.
|All times are GMT -6. The time now is 10:16 PM.|
vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI