Number - provided by GetFactionInfo (14th return); defaults to the currently interacting NPC if omitted
Returns
currentRank
Number
maxRank
Number - can range from 6 to 8, depending on the friendship faction
Details
index
name
1
Stranger
2
Acquaintance
3
Buddy
4
Friend
5
Good Friend
6
Best Friend
Example
for i = 1, GetNumFactions() do local factionID = select(14, GetFactionInfo(i)) local friendID, _, _, name = GetFriendshipReputation(factionID) local currentRank, maxRank = GetFriendshipReputationRanks(factionID) if friendID then -- factionID is also a friendID print(friendID, name, currentRank, maxRank) end end