Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the (max) rank for a friendship reputation.
currentRank, maxRank = GetFriendshipReputationRanks([factionID])
Arguments[]
- factionID
- number? : FactionID - A subset of these IDs are friendship reputations. Defaults to the currently interacting NPC if omitted
Returns[]
- currentRank
- number
- maxRank
- number - Can go up to 10, depending on the friendship faction.
Details[]
- Rank names for the Tillers friendships.
Index | Name |
---|---|
1 | Stranger |
2 | Acquaintance |
3 | Buddy |
4 | Friend |
5 | Good Friend |
6 | Best Friend |
Example[]
- Prints an example output.
/dump GetFriendshipReputationRanks(1273) -- 1, 6 (Jogu the Drunk)
/dump GetFriendshipReputationRanks(1374) -- 1, 10 (Brawl'gar Arena)
- Prints the friendship reputations for your character.
for i = 1, GetNumFactions() do
local factionID = select(14, GetFactionInfo(i))
local friendID, _, _, name = GetFriendshipReputation(factionID)
if friendID then
local currentRank, maxRank = GetFriendshipReputationRanks(friendID)
print(friendID, name, currentRank, maxRank)
end
end
See also[]
Patch changes[]
Patch 5.1.0 (2012-11-27): Added (PTR 5.1.0.16139)