Returns the list of privileges for the guild rank being edited. The name of a privilege for an index in this list can be found in the global variable "GUILDCONTROL_OPTION"..index.


See also Guild functions.

Signature:

... = GuildControlGetRankFlags()

Returns:

  • ... - A list of privilege flags (1 = privilege allowed, nil = privilege denied) for the rank being edited (list)

Examples:

-- Print rank flags for the first rank in the guild
function PrintFlags(...)
  local output = ""
  for i = 1, select("#", ...) do
    output = output .. _G["GUILDCONTROL_OPTION"..i] .. ": " .. tostring(select(i, ...)) .. "; "
  end
  print(output)
end
GuildControlSetRank(1)
PrintFlags(GuildControlGetRankFlags())