View Single Post
08-26-21, 08:20 AM   #3
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
Originally Posted by DahkCeles View Post
Do you mean 'friendships' with individuals? GetFriendshipReputation()

https://wowpedia.fandom.com/wiki/API...shipReputation
Well, I don't understand: GetFriendshipReputation() always returns nil values.

Lua Code:
  1. local numFactions = GetNumFactions()
  2. local factionIndex = 1
  3. while (factionIndex <= numFactions) do
  4.     local name, description, standingId, bottomValue, topValue, earnedValue, atWarWith, canToggleAtWar,
  5.         isHeader, isCollapsed, hasRep, isWatched, isChild, factionID, hasBonusRepGain, canBeLFGBonus = GetFactionInfo(factionIndex)
  6.     if isHeader and isCollapsed then
  7.         ExpandFactionHeader(factionIndex)
  8.         numFactions = GetNumFactions()
  9.     end
  10.     if hasRep or not isHeader then
  11.         DEFAULT_CHAT_FRAME:AddMessage("Faction: " .. name .. " - " .. earnedValue)
  12.         local friendID, friendRep, friendMaxRep, friendName, _, _, friendTextLevel, friendThreshold, nextFriendThreshold = GetFriendshipReputation(factionID)
  13.         print(friendID, friendRep) -- ------> NIL
  14.     end
  15.     factionIndex = factionIndex + 1
  16. end

What I would like to do is just to have correct values from GetFactionInfo() with some specials factions like Venari for instance.
__________________
Zax - Addons List, not all maintained.
  Reply With Quote