<?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%3AGuildRecruitmentSearch</id>
	<title>API:GuildRecruitmentSearch - 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%3AGuildRecruitmentSearch"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GuildRecruitmentSearch&amp;action=history"/>
	<updated>2026-10-18T04:53:52Z</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:GuildRecruitmentSearch&amp;diff=30498&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:GuildRecruitmentSearch&amp;diff=30498&amp;oldid=prev"/>
		<updated>2026-10-16T19:45:31Z</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=Guild}}&lt;br /&gt;
Asks the server for a list of guilds that match recruitment search criteria.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GuildRecruitmentSearch(playStyle, atmosphere, searchType, isRecruitingPlayer, minTotalPlayers, minOnlinePlayers, minGuildRank)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;playStyle : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – A &amp;lt;code&amp;gt;GameData.Recruitment.PlayStyleFlag&amp;lt;/code&amp;gt; value.&lt;br /&gt;
;atmosphere : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – A &amp;lt;code&amp;gt;GameData.Recruitment.AtmosphereFlag&amp;lt;/code&amp;gt; value.&lt;br /&gt;
;searchType : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – A &amp;lt;code&amp;gt;GameData.Recruitment.RecruitingFlag&amp;lt;/code&amp;gt; value.&lt;br /&gt;
;isRecruitingPlayer : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – State of the stock UI&amp;#039;s &amp;quot;is recruiting player&amp;quot; check box.&lt;br /&gt;
;minTotalPlayers : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Minimum number of members (0 = any). Sent as a 16-bit value.&lt;br /&gt;
;minOnlinePlayers : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Minimum number of members online (0 = any). Sent as a 16-bit value.&lt;br /&gt;
;minGuildRank : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Minimum guild rank. Sent as an 8-bit value.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* &amp;lt;code&amp;gt;playStyle&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;atmosphere&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;searchType&amp;lt;/code&amp;gt; are sent minus 1.&lt;br /&gt;
* The results are not returned by this function. The stock UI receives them in its handler for &amp;lt;code&amp;gt;SystemData.Events.GUILD_RECRUITMENT_SEARCH_RESULTS_UPDATED&amp;lt;/code&amp;gt;, which takes a results table, and keeps its Search button disabled until they arrive.&lt;br /&gt;
* &amp;lt;code&amp;gt;isRecruitingPlayer&amp;lt;/code&amp;gt; must be a real boolean.&lt;br /&gt;
* The function needs at least seven arguments and only reads the last seven.&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;
From &amp;lt;code&amp;gt;default/ea_guildwindow/source/guildwindowtabrecruitsearch.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GuildRecruitmentSearch( playStyle,&lt;br /&gt;
                        atmosphere,&lt;br /&gt;
                        searchType,&lt;br /&gt;
                        isRecruitingPlayer,&lt;br /&gt;
                        minTotalPlayers,&lt;br /&gt;
                        minOnlinePlayers,&lt;br /&gt;
                        minGuildRank )&lt;br /&gt;
&lt;br /&gt;
-- Disable the Search Button&lt;br /&gt;
GuildWindowTabRecruit.Search.waitingForSearchResults = true&lt;br /&gt;
ButtonSetDisabledFlag( &amp;quot;GWRecruitSearchSearchButton&amp;quot;, true )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GuildRecruitmentProfileGetData|GuildRecruitmentProfileGetData]]&lt;br /&gt;
* [[API:GuildRecruitmentProfileSetData|GuildRecruitmentProfileSetData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>