Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetAlts(msg)
- local count = 0
- SetGuildRosterShowOffline(true)
- print("Searching for alts of " ..msg.. " ...")
- for x = 1, GetNumGuildMembers() do
- name, rank, rankIndex, level, class, zone, note, officernote, online, status, classFileName, achievementPoints, achievementRank, isMobile = GetGuildRosterInfo(x)
- if name then
- if (rank == "Alt") and (string.match(note, msg)) then
- print("Character Name: |cffff00ff" ..name.. "|r Rank: |cffff00ff" ..rank.. "|r Note: |cffff00ff" ..note.. "|r")
- count = count + 1
- end
- if (rank ~= "Alt") and (string.match(note, msg)) then
- print("Character Name: |cffff00ff" ..name.. "|r Rank: |cffff00ff" ..rank.. "|r Note: |cffff00ff" ..note.. "|r")
- count = count + 1
- end
- end
- if (count == 0) and (x == GetNumGuildMembers()) then
- print("Nothing Found.")
- end
- end
- end
- SLASH_gi1 = '/gi'
- function SlashCmdList.gi(msg, editbox)
- GetAlts(msg)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement