Is it possible for others players ?
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:
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 :) |
You need to use the unit id
|
Hi Ketho,
now it works thanks to your input and tips. I have tried also with unitid in my past tries but I use in a wrongly way. I used: Lua Code:
and then that value in the function to calculate the score. But it doesn't work. Now following your suggest I change the code in this way and it works nicely: Lua Code:
Don't know why it didn't work in other way :/ But now it works and I am happy :) Thanks so much for you tips. |
Because "unit" isn't a valid UnitID. https://wowpedia.fandom.com/wiki/UnitId
|
A note to add, player names are valid UnitIDs as long as they're in your party/raid.
|
Good Morning.
Ah thanks all for the usual kind replies. Now I explain why sometime it works with player names sometimes not :) Thanks so much to everyone and especially to SDPhantom for let me clarify this oddity :) |
All times are GMT -6. The time now is 07:37 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI