1. Good morning friends wowprogramming,

    with the release of patch 5.0 I noticed a new feature that gives guild to view the reputation of every member of the roster, I wonder if there is any command API that returns me the reputation of members as the example pro ..

    GetGuildRosterContribution()

  2. If the Ui can do it, then there is a function that makes it possible to obtain that information. Please check the full listing of functions, or check the code responsible for doing that in the default UI.

  3. I have not found a function that returns this information, I am using the

    --

        if rank >= 9 then
            local totalXP = select(2,GetGuildRosterContribution(i))
            if level == 85 and totalXP >= 1000000 and totalXP <= 5000000 then
                if reallyPromote then
                    SetGuildMemberRank(i, 9)
                end
            end
        end
    

    --

    I would like to change this form of verification in place in the activity would check the Exalted reputation, since under the guild in wow is this new function, it is possible?

  4. I changed the function and the code was as follows ...

     function PromoteFromGuild(reallyPromote)
         if reallyPromote and not CanGuildPromote() then
             return
         end
         for i = 1, GetNumGuildMembers() do
        local name, rank, rankIndex, level, class, zone, note, officernote, online, isAway, classFileName, achievementPoints, achievementRank, isMobile, canSoR, repStanding = GetGuildRosterInfo(i)
             if rank >= 5 then
                 if level == 85 and repStanding >= 8 then
                     if reallyPromote then
                         SetGuildMemberRank(i, 5)
                     end
                 end
             end
         end
     end
     local frame = CreateFrame("Frame")
     frame:RegisterEvent("GUILD_ROSTER_UPDATE")
     frame:SetScript("OnEvent", function(self, event, ...)
        PromoteFromGuild(true)
     end)
    

    but not working, I did something wrong?