<?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%3AGuildRecruitmentProfileSetData</id>
	<title>API:GuildRecruitmentProfileSetData - 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%3AGuildRecruitmentProfileSetData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GuildRecruitmentProfileSetData&amp;action=history"/>
	<updated>2026-10-17T16:47:42Z</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:GuildRecruitmentProfileSetData&amp;diff=30497&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:GuildRecruitmentProfileSetData&amp;diff=30497&amp;oldid=prev"/>
		<updated>2026-10-16T19:45:30Z</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;
Sends a new recruitment profile for the player&amp;#039;s guild to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GuildRecruitmentProfileSetData(desc, summary, playStyle, atmosphere, careers, tiers, interests, recruitingStatus, recruiterNames, recruiterDescs)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;desc : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Brief description.&lt;br /&gt;
;summary : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Public summary.&lt;br /&gt;
;playStyle : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Play style, a &amp;lt;code&amp;gt;GameData.Recruitment.PlayStyleFlag&amp;lt;/code&amp;gt; value (1–7).&lt;br /&gt;
;atmosphere : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Atmosphere, a &amp;lt;code&amp;gt;GameData.Recruitment.AtmosphereFlag&amp;lt;/code&amp;gt; value (1–6).&lt;br /&gt;
;careers : &amp;lt;code&amp;gt;number-table&amp;lt;/code&amp;gt; – List of &amp;lt;code&amp;gt;GameData.Recruitment.CareerFlags&amp;lt;/code&amp;gt; values (0–25) the guild is looking for.&lt;br /&gt;
;tiers : &amp;lt;code&amp;gt;number-table&amp;lt;/code&amp;gt; – List of &amp;lt;code&amp;gt;GameData.Recruitment.TierFlag&amp;lt;/code&amp;gt; values (1–7).&lt;br /&gt;
;interests : &amp;lt;code&amp;gt;number-table&amp;lt;/code&amp;gt; – List of &amp;lt;code&amp;gt;GameData.Recruitment.InterestFlag&amp;lt;/code&amp;gt; values.&lt;br /&gt;
;recruitingStatus : &amp;lt;code&amp;gt;number-table&amp;lt;/code&amp;gt; – List of &amp;lt;code&amp;gt;GameData.Recruitment.RecruitingFlag&amp;lt;/code&amp;gt; values.&lt;br /&gt;
;recruiterNames : &amp;lt;code&amp;gt;wstring-table&amp;lt;/code&amp;gt; – Names of the guild&amp;#039;s recruiters.&lt;br /&gt;
;recruiterDescs : &amp;lt;code&amp;gt;wstring-table&amp;lt;/code&amp;gt; – One description per recruiter, in the same order as &amp;lt;code&amp;gt;recruiterNames&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The flag arguments are lists of flag values, not tables of booleans. The client turns each list into a bit set before sending.&lt;br /&gt;
* &amp;lt;code&amp;gt;playStyle&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;atmosphere&amp;lt;/code&amp;gt; are stored minus 1. A value outside the ranges above is not stored, and the field keeps its default.&lt;br /&gt;
* Values outside the ranges above are skipped in &amp;lt;code&amp;gt;careers&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tiers&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;interests&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;recruitingStatus&amp;lt;/code&amp;gt; are stored minus 1 with no range check.&lt;br /&gt;
* Recruiter names and descriptions are paired by position. Pairing stops at the end of the shorter list. Descriptions longer than 199 characters are cut.&lt;br /&gt;
* The client only refuses the call when the player is not in a guild (see Errors). It does not check guild permissions itself. The stock UI disables the profile controls for players without the &amp;lt;code&amp;gt;SystemData.GuildPermissons.SET_RECRUITERS&amp;lt;/code&amp;gt; permission.&lt;br /&gt;
* The function needs at least ten arguments and only reads the last ten.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;GuildRecruitmentProfileSetData&amp;#039;: You do not have permission to edit your guild recruitment data.&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;Raised when the client holds no guild for the player.&lt;br /&gt;
* 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/guildwindowtabrecruitprofile.lua&amp;lt;/code&amp;gt;, after collecting the pressed check boxes into lists of flag ids:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GuildRecruitmentProfileSetData( descText,&lt;br /&gt;
                                summaryText,&lt;br /&gt;
                                playStyle,&lt;br /&gt;
                                atmosphere,&lt;br /&gt;
                                careerFlags,&lt;br /&gt;
                                tierFlags,&lt;br /&gt;
                                interestFlags,&lt;br /&gt;
                                recruitingStatusFlags,&lt;br /&gt;
                                recruiterNames,&lt;br /&gt;
                                recruiterDescs&lt;br /&gt;
                               )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the stock UI &amp;lt;code&amp;gt;recruiterNames&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;recruiterDescs&amp;lt;/code&amp;gt; are always empty tables.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GuildRecruitmentProfileGetData|GuildRecruitmentProfileGetData]]&lt;br /&gt;
* [[API:GuildRecruitmentSearch|GuildRecruitmentSearch]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>