<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_GetGuildRosterContribution</id>
	<title>WoW:API GetGuildRosterContribution - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_GetGuildRosterContribution"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_GetGuildRosterContribution&amp;action=history"/>
	<updated>2026-06-02T01:17:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_GetGuildRosterContribution&amp;diff=20160&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page API GetGuildRosterContribution to WoW:API GetGuildRosterContribution without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_GetGuildRosterContribution&amp;diff=20160&amp;oldid=prev"/>
		<updated>2023-08-15T04:45:58Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:API_GetGuildRosterContribution&quot; title=&quot;WoW:API GetGuildRosterContribution&quot;&gt;API GetGuildRosterContribution&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:API_GetGuildRosterContribution&quot; title=&quot;WoW:API GetGuildRosterContribution&quot;&gt;API GetGuildRosterContribution&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:45, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_GetGuildRosterContribution&amp;diff=20159&amp;oldid=prev</id>
		<title>WoWWiki&gt;BryghtShadow: update info for 4.0.3a</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_GetGuildRosterContribution&amp;diff=20159&amp;oldid=prev"/>
		<updated>2011-01-17T21:50:00Z</updated>

		<summary type="html">&lt;p&gt;update info for 4.0.3a&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{wowapi}} __NOTOC__&lt;br /&gt;
Retrieves the Guild XP and Guild XP Rank information of the unit. &lt;br /&gt;
&lt;br /&gt;
 weeklyXP, totalXP, weeklyRank, totalRank = GetGuildRosterContribution(index)&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;index : Integer - Index of guild member in the guild roster, where index is greater than 0 and less than or equal to total member count. (Note that sorting re-orders the roster, indexes are not guaranteed to remain stable across events).&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;weeklyXP : Number - The amount of Guild XP contributed by the member this week (0 &amp;lt; weeklyXP &amp;lt;= 1575002).&lt;br /&gt;
;totalXP : Number - The total amount of Guild XP contributed by the member.&lt;br /&gt;
;weeklyRank : Number - The rank of the member for the week.&lt;br /&gt;
;totalRank : Number - The rank of the member for total contribution (since the introduction of &amp;quot;contribution&amp;quot; or the formation of the guild, whichever comes after).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
 Fig 1.1                                Fig 1.2&lt;br /&gt;
 +--------+-------+--------+-----------+    +--------+-------+--------+-----------+&lt;br /&gt;
 | Status | Name  | Weekly |   Total   |    | Status | Name  | Weekly |   Total   |&lt;br /&gt;
 |--------+-------+--------+-----------|    |--------+-------+--------+-----------|&lt;br /&gt;
 | Off    | Alpha | #4  10 | #1  42000 |    | On     | Gamma | #2  30 | #3  20000 |&lt;br /&gt;
 | Off    | Beta  | #3  20 | #2  30000 |    | Off    | Alpha | #4  10 | #1  42000 |&lt;br /&gt;
 | On     | Gamma | #2  30 | #3  20000 |    | Off    | Beta  | #3  20 | #2  30000 |&lt;br /&gt;
 | Off    | Delta | #1  42 | #4  13373 |    | Off    | Delta | #1  42 | #4  13373 |&lt;br /&gt;
 +--------+-------+--------+-----------+    +--------+-------+--------+-----------+&lt;br /&gt;
 | [x]Show Offline Members         1/4 |    | [ ]Show Offline Members         1/4 |&lt;br /&gt;
 +-------------------------------------+    +-------------------------------------+&lt;br /&gt;
 &lt;br /&gt;
   Note: In fig 1.2, &amp;#039;show offline members&amp;#039; is disabled so only Gamma&lt;br /&gt;
         will be visible in the Guild UI, but for ease of explanation,&lt;br /&gt;
         the others are listed.&lt;br /&gt;
&lt;br /&gt;
Using the above sample guild rosters, this code&lt;br /&gt;
 local totalMembers, onlineMembers = GetNumGuildMembers();&lt;br /&gt;
 local visibleMembers = onlineMembers; &lt;br /&gt;
 if ( GetGuildRosterShowOffline() ) then&lt;br /&gt;
  visibleMembers = totalMembers;&lt;br /&gt;
 end&lt;br /&gt;
 for index=1, visibleMembers do&lt;br /&gt;
  local weeklyXP, totalXP, weeklyRank, totalRank = GetGuildRosterContribution(index);&lt;br /&gt;
  DEFAULT_CHAT_FRAME:AddMessage(&amp;#039;g&amp;#039;..index..&amp;#039; weeklyXP: &amp;#039;..weeklyXP..&amp;#039; (#&amp;#039;..weeklyRank..&amp;#039;), totalXP: &amp;#039;..totalXP..&amp;#039; (#&amp;#039;..totalRank..&amp;#039;)&amp;#039;);&lt;br /&gt;
 end&lt;br /&gt;
would output for fig 1.1&lt;br /&gt;
 g1 weeklyXP: 10 (#4), totalXP: 42000 (#1)&lt;br /&gt;
 g2 weeklyXP: 20 (#3), totalXP: 30000 (#2)&lt;br /&gt;
 g3 weeklyXP: 30 (#2), totalXP: 20000 (#3)&lt;br /&gt;
 g4 weeklyXP: 42 (#1), totalXP: 13373 (#4)&lt;br /&gt;
and for fig 1.2&lt;br /&gt;
 g1 weeklyXP: 30 (#2), totalXP: 20000 (#3)&lt;br /&gt;
Note that if we allowed the index to include offline members for fig 1.2, the output would be:&lt;br /&gt;
 g1 weeklyXP: 30 (#2), totalXP: 20000 (#3)&lt;br /&gt;
 g2 weeklyXP: 10 (#4), totalXP: 42000 (#1)&lt;br /&gt;
 g3 weeklyXP: 20 (#3), totalXP: 30000 (#2)&lt;br /&gt;
 g4 weeklyXP: 42 (#1), totalXP: 13373 (#4)&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
&amp;lt;!-- I hope this is clear enough. --&amp;gt;&lt;br /&gt;
* When {{api|GetGuildRosterShowOffline}} is false, the logical roster is always sorted by status first (i.e. online before offline) and then by the current sorting (for level, class, name, activity), and thus indices greater than online count (i.e., onlineMembers &amp;lt; index &amp;lt;= totalMembers) will point to the offline member. When GetGuildRosterShowOffline is true, the logical roster is sorted by the current sorting (for level, class, name, activity).&lt;br /&gt;
: To illustrate with name sorting, an index of 5 (in a guild of 2 online and 5 offline) will point to the 3rd offline member (&amp;#039;d&amp;#039; in this case) when offline is hidden:&lt;br /&gt;
  1   2   3   4  (5)  6   7  -- Index&lt;br /&gt;
  b   e  [a] [c] [d] [f] [g] -- Bracket indicating offline.&lt;br /&gt;
: and the 2nd online member (&amp;#039;e&amp;#039; in this case) when offline is shown:&lt;br /&gt;
  1   2   3   4  (5)  6   7  -- Index&lt;br /&gt;
 [a]  b  [c] [d]  e  [f] [g] -- Bracket indicating offline.&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;BryghtShadow</name></author>
	</entry>
</feed>