Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API GetGuildRosterContribution
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Example == Fig 1.1 Fig 1.2 +--------+-------+--------+-----------+ +--------+-------+--------+-----------+ | Status | Name | Weekly | Total | | Status | Name | Weekly | Total | |--------+-------+--------+-----------| |--------+-------+--------+-----------| | Off | Alpha | #4 10 | #1 42000 | | On | Gamma | #2 30 | #3 20000 | | Off | Beta | #3 20 | #2 30000 | | Off | Alpha | #4 10 | #1 42000 | | On | Gamma | #2 30 | #3 20000 | | Off | Beta | #3 20 | #2 30000 | | Off | Delta | #1 42 | #4 13373 | | Off | Delta | #1 42 | #4 13373 | +--------+-------+--------+-----------+ +--------+-------+--------+-----------+ | [x]Show Offline Members 1/4 | | [ ]Show Offline Members 1/4 | +-------------------------------------+ +-------------------------------------+ Note: In fig 1.2, 'show offline members' is disabled so only Gamma will be visible in the Guild UI, but for ease of explanation, the others are listed. Using the above sample guild rosters, this code local totalMembers, onlineMembers = GetNumGuildMembers(); local visibleMembers = onlineMembers; if ( GetGuildRosterShowOffline() ) then visibleMembers = totalMembers; end for index=1, visibleMembers do local weeklyXP, totalXP, weeklyRank, totalRank = GetGuildRosterContribution(index); DEFAULT_CHAT_FRAME:AddMessage('g'..index..' weeklyXP: '..weeklyXP..' (#'..weeklyRank..'), totalXP: '..totalXP..' (#'..totalRank..')'); end would output for fig 1.1 g1 weeklyXP: 10 (#4), totalXP: 42000 (#1) g2 weeklyXP: 20 (#3), totalXP: 30000 (#2) g3 weeklyXP: 30 (#2), totalXP: 20000 (#3) g4 weeklyXP: 42 (#1), totalXP: 13373 (#4) and for fig 1.2 g1 weeklyXP: 30 (#2), totalXP: 20000 (#3) Note that if we allowed the index to include offline members for fig 1.2, the output would be: g1 weeklyXP: 30 (#2), totalXP: 20000 (#3) g2 weeklyXP: 10 (#4), totalXP: 42000 (#1) g3 weeklyXP: 20 (#3), totalXP: 30000 (#2) g4 weeklyXP: 42 (#1), totalXP: 13373 (#4)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)