<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASendAuctionSearch</id>
	<title>API:SendAuctionSearch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASendAuctionSearch"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SendAuctionSearch&amp;action=history"/>
	<updated>2026-10-17T14:22:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:SendAuctionSearch&amp;diff=30689&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SendAuctionSearch&amp;diff=30689&amp;oldid=prev"/>
		<updated>2026-10-16T19:48:32Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Auction}}&lt;br /&gt;
Sends an auction house search request to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SendAuctionSearch(minItemLevel, maxItemLevel, career, restrictionType, minTradeSkillLevel, maxTradeSkillLevel, rarity, itemTypes, itemEquipSlots, itemBonuses, itemName, sellerName)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;minItemLevel : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Lowest item level.&lt;br /&gt;
;maxItemLevel : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Highest item level.&lt;br /&gt;
;career : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Career filter.&lt;br /&gt;
;restrictionType : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Restriction filter.&lt;br /&gt;
;minTradeSkillLevel : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Lowest trade skill level.&lt;br /&gt;
;maxTradeSkillLevel : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Highest trade skill level.&lt;br /&gt;
;rarity : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Rarity filter.&lt;br /&gt;
;itemTypes : &amp;lt;code&amp;gt;number-table&amp;lt;/code&amp;gt; – Array of item type numbers. May be empty.&lt;br /&gt;
;itemEquipSlots : &amp;lt;code&amp;gt;number-table&amp;lt;/code&amp;gt; – Array of equipment slot numbers. May be empty.&lt;br /&gt;
;itemBonuses : &amp;lt;code&amp;gt;number-table&amp;lt;/code&amp;gt; – Array of bonus numbers. May be empty.&lt;br /&gt;
;itemName : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Text to search for in item names. &amp;lt;code&amp;gt;L&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; for no name filter.&lt;br /&gt;
;sellerName : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Seller name. &amp;lt;code&amp;gt;L&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; for any seller.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing. The results arrive later from the server.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The two item levels are rounded down and clamped to 1–40. If the minimum is 1 or less and the maximum is 40, or if the maximum is below the minimum, both are sent as 0.&lt;br /&gt;
* &amp;lt;code&amp;gt;career&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;restrictionType&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rarity&amp;lt;/code&amp;gt; are sent as single bytes (0–255). The trade skill levels are sent as 16-bit numbers.&lt;br /&gt;
* Every entry of the three tables is converted to a number and sent as a single byte. Entries of &amp;lt;code&amp;gt;itemEquipSlots&amp;lt;/code&amp;gt; are translated by the client before sending.&lt;br /&gt;
* Each call increases a client-side search counter that is sent with the request.&lt;br /&gt;
* &amp;lt;code&amp;gt;itemName&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;sellerName&amp;lt;/code&amp;gt; must be wide strings. A plain Lua string raises an &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; error.&lt;br /&gt;
* The function needs at least twelve arguments and only reads the last twelve.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when an argument has the wrong type.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The stock UI fills a query table and passes its fields in order, from &amp;lt;code&amp;gt;default/ea_auctionhousewindow/source/auctionwindowlistdatamanager.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function AuctionWindowListDataManager.SendAuctionSearch( queryData )&lt;br /&gt;
    SendAuctionSearch( queryData.minItemLevel,&lt;br /&gt;
                       queryData.maxItemLevel,&lt;br /&gt;
                       queryData.career,&lt;br /&gt;
                       queryData.restrictionType,&lt;br /&gt;
                       queryData.minTradeSkillLevel,&lt;br /&gt;
                       queryData.maxTradeSkillLevel,&lt;br /&gt;
                       queryData.rarity,&lt;br /&gt;
&lt;br /&gt;
                       queryData.itemTypes,&lt;br /&gt;
                       queryData.itemEquipSlots,&lt;br /&gt;
                       queryData.itemBonuses,&lt;br /&gt;
&lt;br /&gt;
                       queryData.itemName,&lt;br /&gt;
                       queryData.sellerName&lt;br /&gt;
                     )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Listing the player&amp;#039;s own auctions, from the same file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function AuctionWindowListDataManager.SendPlayersAuctionSearch()&lt;br /&gt;
    local queryData = AuctionWindowListDataManager.CreateEmptyQuery()&lt;br /&gt;
    queryData.sellerName = GameData.Player.name&lt;br /&gt;
    AuctionWindowListDataManager.SendAuctionSearch( queryData )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:BuyAuction|BuyAuction]]&lt;br /&gt;
* [[API:CreateAuction|CreateAuction]]&lt;br /&gt;
* [[API:CancelAuction|CancelAuction]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>