Thread Tools Display Modes
03-29-20, 01:38 AM   #1
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
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.
  Reply With Quote
03-29-20, 09:17 AM   #2
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
https://wow.gamepedia.com/World_of_W...#Auction_House for the API

https://wow.gamepedia.com/Events#C_AuctionHouse for the events
  Reply With Quote
03-29-20, 03:06 PM   #3
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
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:

C_AuctionHouse.ReplicateItems(
-- name
"Anchor Weed",
-- minlevel, maxlevel
nil,nil,
-- invtypeIndex
0,
-- classIndex, subclassIndex
0,0,
-- page
0,
-- isUsable
0,
-- qualityIndex
0,
-- getAll
false,
-- exactMatch
false
);

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?
  Reply With Quote
03-29-20, 11:28 PM   #4
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
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.
  Reply With Quote
03-31-20, 01:54 AM   #5
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
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.
  Reply With Quote
03-31-20, 06:20 AM   #6
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
OK I have almost sorted it now. I can get a list of items, quantities, and prices.

Thanks
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Auction House API

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off