Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 5.1.0

Returns friendship rank indices.

currentRank, maxRank = GetFriendshipReputationRanks([factionID])

ShowFriendshipReputationTooltip

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 history

Advertisement