C_Reputation .GetFactionParagonInfo
Jump to navigation
Jump to search
Returns Paragon info on a faction.
currentValue, threshold, rewardQuestID, hasRewardPending, tooLowLevelForParagon = C_Reputation.GetFactionParagonInfo(factionID)
Arguments
- factionID
- number : FactionID
Returns
- currentValue
- number - The amount of reputation you have earned in the current level of Paragon.
- threshold
- number - The amount of reputation until you gain the next Paragon level.
- rewardQuestID
- number - The ID of the quest once you attain a new Paragon level (or your first).
- hasRewardPending
- boolean - True if the player has attained a Paragon level but has not completed the reward quest.
- tooLowLevelForParagon
- boolean - True if the player level is too low to complete the Paragon reward quest.
Details
The currentValue
return value contains a prefix that indicates the amount of paragon rewards you have gotten so far.
For example, having received a paragon reward for The Undying Army 12 times, if one calls the above function and the current rep level is 717, the result for currentValue will be 120717.
Example
Reading the current reputation points of the venthyr covenant:
local factionID = 2413
local currentValue, threshold, rewardQuestID, hasRewardPending, tooLowLevelForParagon = C_Reputation.GetFactionParagonInfo(factionID)
-- total iterations (= Rewards Earned)
local level = math.floor(currentValue/threshold)-(hasRewardPending and 1 or 0)
local realValue = tonumber(string.sub( currentValue, string.len( level ) + 1 ))
print("[",factionID, "]","current rep: ", realValue, " (", threshold, "), level: ", level)
Patch changes
Patch 7.3.5 (2018-01-16): Added tooLowLevelForParagon
return.
Patch 7.2.0 (2017-03-28): Added.