<?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%3AGetAllianceMemberData</id>
	<title>API:GetAllianceMemberData - 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%3AGetAllianceMemberData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetAllianceMemberData&amp;action=history"/>
	<updated>2026-10-18T04:53:58Z</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:GetAllianceMemberData&amp;diff=30337&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:GetAllianceMemberData&amp;diff=30337&amp;oldid=prev"/>
		<updated>2026-10-16T19:42:58Z</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;
Returns the guilds in the player&amp;#039;s alliance.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
guilds = GetAllianceMemberData()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;guilds : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Array of guild tables, indexed from 1. Empty if there is no alliance data.&lt;br /&gt;
&lt;br /&gt;
Each guild table has these fields:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Guild id.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Guild name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;online&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Members online.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;offline&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Members offline.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;rank&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Guild rank.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;leaderName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Name of the guild leader.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;keep&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Table with &amp;lt;code&amp;gt;idNum&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;zoneNum&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;). The stock UI treats &amp;lt;code&amp;gt;idNum&amp;lt;/code&amp;gt; 0 as &amp;quot;no keep&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;creationDay&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Day of the month the guild was created.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;creationMonth&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Month the guild was created, 1–12.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;creationYear&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Year the guild was created.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;players&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of member tables with &amp;lt;code&amp;gt;id&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;rank&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;careerId&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The creation date is converted with the computer&amp;#039;s local time zone.&lt;br /&gt;
* The stock UI rebuilds its list when &amp;lt;code&amp;gt;GameData.Guild.Alliance.UpdatedMembers&amp;lt;/code&amp;gt; is set, and refreshes only the counts with [[API:GetAllianceMemberCounts|GetAllianceMemberCounts]] when &amp;lt;code&amp;gt;GameData.Guild.Alliance.UpdatedPlayerCounts&amp;lt;/code&amp;gt; is set.&lt;br /&gt;
* If the Lua state is not available, the function returns nothing.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_guildwindow/source/guildwindowtaballiance.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if ( GameData.Guild.Alliance.UpdatedMembers ) then&lt;br /&gt;
    GuildWindowTabAlliance.guilds = GetAllianceMemberData()&lt;br /&gt;
    GuildWindowTabAlliance.DrawMembersList()&lt;br /&gt;
    GameData.Guild.Alliance.UpdatedMembers = false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the fields, from the same file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LabelSetText( alliedGuildWindow..&amp;quot;Name&amp;quot;, guild.name )&lt;br /&gt;
LabelSetText( alliedGuildWindow..&amp;quot;LeaderName&amp;quot;, guild.leaderName )&lt;br /&gt;
local dateText = GetFormatStringFromTable( &amp;quot;guildstrings&amp;quot;, StringTables.Guild.DATE_FORMAT_DAY_MONTH_YEAR_NUMBERS, { guild.creationDay, guild.creationMonth, guild.creationYear } )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetAllianceMemberCounts|GetAllianceMemberCounts]]&lt;br /&gt;
* [[API:GetGuildPollData|GetGuildPollData]]&lt;br /&gt;
* [[API:GetGuildMemberData|GetGuildMemberData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>