FANDOM


Advances to the next page in the auction search result

ParametersEdit

Arguments Edit

Returns Edit

nil

Examples Edit

After issuing a search all pages will be processed

MyAddon.page = 1
-- This function should be registered to the AUCTION_SEARCH_RESULT event
function MyAddon:AUCTION_SEARCH_RESULT()
	local item = 1
	local id, name, count, quality, texture, level, leftTime, seller, isBuyer, moneyMode, bidPrice, buyoutPrice = GetAuctionBrowseItemInfo(self.page, self.item)
	
	while id ~= nil then
		-- Do something with the item details here
		item = item + 1
		id, name, count, quality, texture, level, leftTime, seller, isBuyer, moneyMode, bidPrice, buyoutPrice = GetAuctionBrowseItemInfo(self.page, self.item)
	end
	
	if AuctionBrowseList.nextPage then
		print("Advance to next page")
		AuctionNextPage() -- This will trigger a AUCTION_SEARCH_RESULT event when the next page is loaded
		self.page = self.page + 1
	else
		print("All pages scanned")
	end
end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.