if not aura_env.config.hidebar then
local rating = C_PlayerInfo.GetPlayerMythicPlusRatingSummary("player")
local r, g, b = C_ChallengeMode.GetDungeonScoreRarityColor(C_PlayerInfo.GetPlayerMythicPlusRatingSummary("player").currentSeasonScore):GetRGB()
if rating then
local current = rating.currentSeasonScore
local max = aura_env.config.hunter
return current, max, true
else
print("Charakter nicht gefunden oder keine mythisch plus Wertung verfügbar.")
return 0, 0, true
end
else
return 1, 1, true
end
end```
#Help with Lua Code
8 messages · Page 1 of 1 (latest)
This is in the CustomDuration Trigger
local ratingSummary = C_PlayerInfo.GetPlayerMythicPlusRatingSummary("player")
local r, g, b = C_ChallengeMode.GetDungeonScoreRarityColor(C_PlayerInfo.GetPlayerMythicPlusRatingSummary("player").currentSeasonScore):GetRGB()
local currentRating = ratingSummary.currentSeasonScore
local maxHunterRating = aura_env.config.hunter
local coloredCurrentRating = format("|cff%02x%02x%02x%s|r", r*255, g*255, b*255, currentRating)
return coloredCurrentRating, maxHunterRating
end```
This is in the Custom Display Text
you can put stuff into aura_env.saved which is saved between logins