Originally Posted by
renanwar
Can anyone help me with this macro...
I want one that promote a guild rank to another rank directly.
Ex: Promote rank "Test" to rank "Test 2"
Try this. Replace the colored text with the index of the current rank of members you'd like to promote/demote and the new rank index you'd like them to get. Note that the rank index is not the same as shown in guild control; the guild master's rank index starts at 0, so the index you want to use is the rank number in guild control minus 1.
Code:
/run for i=1,GetNumGuildMembers() do local _,_,rankIndex=GetGuildRosterInfo(i) if rankIndex == #currentrankindex then SetGuildMemberRank(i,#newrankindex) end end