Originally Posted by DahkCeles
|
Well, I don't understand: GetFriendshipReputation() always returns nil values.
Lua Code:
local numFactions = GetNumFactions()
local factionIndex = 1
while (factionIndex <= numFactions) do
local name, description, standingId, bottomValue, topValue, earnedValue, atWarWith, canToggleAtWar,
isHeader, isCollapsed, hasRep, isWatched, isChild, factionID, hasBonusRepGain, canBeLFGBonus = GetFactionInfo(factionIndex)
if isHeader and isCollapsed then
ExpandFactionHeader(factionIndex)
numFactions = GetNumFactions()
end
if hasRep or not isHeader then
DEFAULT_CHAT_FRAME:AddMessage("Faction: " .. name .. " - " .. earnedValue)
local friendID, friendRep, friendMaxRep, friendName, _, _, friendTextLevel, friendThreshold, nextFriendThreshold = GetFriendshipReputation(factionID)
print(friendID, friendRep) -- ------> NIL
end
factionIndex = factionIndex + 1
end
What I would like to do is just to have correct values from
GetFactionInfo() with some specials factions like Venari for instance.