Hi all,
I am trying to put a m+ score in the tooltip, using the function:
C_PlayerInfo.GetPlayerMythicPlusRatingSummary(name).currentSeasonScore
But it works only for me
The code is:
Lua Code:
if event == "UPDATE_MOUSEOVER_UNIT" then
if (UnitIsPlayer("mouseover")) then
local name,realm = UnitFullName("mouseover")
-- realm is needed ?
if realm == nil then
realm = GetRealmName()
end
local score = C_PlayerInfo.GetPlayerMythicPlusRatingSummary(name).currentSeasonScore
local r, g, b = C_ChallengeMode.GetDungeonScoreRarityColor(C_PlayerInfo.GetPlayerMythicPlusRatingSummary(name).currentSeasonScore):GetRGB()
GameTooltip:AddLine(" ")
GameTooltip:AddDoubleLine("Mythic+ score",score,1,1,0,r,g,b)
GameTooltip:Show()
end
end
The links to the function on wowpedia is this:
https://wowpedia.fandom.com/wiki/API...sRatingSummary
and it states:
Returns the players mythic+ rating summary which includes the runs they've completed as well as their current season m+ rating
Now I am not a native speakers but this could be understood also as other players as well ...
Thanks for any help