View Single Post
09-10-12, 07:43 AM   #6
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Go to http://addon.ziuo.net/, set the name to "AutoPromote", and put this into the first box:
Code:
local function UpdateRanks()
    if(not CanGuildPromote()) then return end

    local total, offline = GetNumGuildMembers()
    if(GetGuildRosterShowOffline()) then
        total = offline
    end

    for index = 1, total do
        local _, _, rankIndex, _, _, _, _, _, _, _, _, _, _, _, _, repStanding = GetGuildRosterInfo(index)
        if(rankIndex < 2) then
            if(repStanding == 4 and rankIndex ~= 7) then
                SetGuildMemberRank(index, 7)
            elseif(repStanding == 5 and rankIndex ~= 6) then
                SetGuildMemberRank(index, 6)
            elseif(repStanding == 6 and rankIndex ~= 5) then
                SetGuildMemberRank(index, 5)
            elseif(repStanding == 7 and rankIndex ~= 4) then
                SetGuildMemberRank(index, 4)
            elseif(repStanding == 8 and rankIndex ~= 3) then
                SetGuildMemberRank(index, 3)
            end
        end
    end
end

GuildFrame:HookScript('OnShow', UpdateRanks)

if(GuildFrame:IsShown()) then
    UpdateRanks()
end

Then click the yellow button on the bottom, and put the following into the 2nd box:
Code:
## Interface: 50001
## Title: AutoPromote
## LoadOnDemand: 1
## LoadWith: Blizzard_GuildUI
When you've done all this, click the green button at the bottom and put it in your addons folder like a normal addon.

This should then automaticly promote everyone each time you open the guild window.

Last edited by p3lim : 09-10-12 at 07:48 AM.
  Reply With Quote