Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Returns the (max) rank for a friendship reputation.

currentRank, maxRank = GetFriendshipReputationRanks([factionID])
API GetFriendshipReputationRanks

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 changes[]

Mists of Pandaria Patch 5.1.0 (2012-11-27): Added (PTR 5.1.0.16139)

Advertisement