Quantcast
WoWInterface - View Single Post - Simple auc question - How to browse all batte pets?
View Single Post
05-28-20, 12:06 PM   #3
Robotron
A Defias Bandit
Join Date: May 2020
Posts: 3
I took this piece of code from your example, and it doesn't work.
Each time i run it it return different results and filter by class doesn't applied.

Lua Code:
  1. local searchString = "Netherweave"
  2.         local minLevel = nil
  3.         local maxLevel = nil
  4.         local filtersArray = nil
  5.         local filterData = { classID = LE_ITEM_CLASS_CONTAINER, subClassID = nil, inventoryType = nil }
  6.         local sorts = { sortOrder = Enum.AuctionHouseSortOrder.Price, reverseSort = false }
  7.        
  8.         local query = {};
  9.         query.searchString = searchString;
  10.         query.minLevel = minLevel;
  11.         query.maxLevel = maxLevel;
  12.         query.filters = filtersArray;
  13.         query.itemClassFilters = filterData;
  14.         query.sorts = sorts
  15.        
  16.         C_AuctionHouse.SendBrowseQuery(query);
  Reply With Quote