Hello,
From my research it appears you cannot pull a player’s collected mount count from an addon/weakaura in game. Is this true? If yes, it would be awesome if they could add this data back in game.
Hello,
From my research it appears you cannot pull a player’s collected mount count from an addon/weakaura in game. Is this true? If yes, it would be awesome if they could add this data back in game.
Do you really mean “from” an addon/weakaura or “using” an addon/weakaura/macro etc.?
if “using” try:
/run local mountCount, canUse = C_MountJournal.GetNumMounts(), 0 for i=1, mountCount do local isUsable = select(5, C_MountJournal.GetDisplayedMountInfo(i)) if isUsable then canUse=canUse+1 end end print("Mount Total:", canUse)
Thanks - yes i meant having a weakaura/addon/macro count the collected mounts for a player. I believe this works for the player counting their own mounts, but does not work if trying to count another player’s mounts.
for example - a weakaura that displays collected mounts of any player on mouseover
In that case, you are correct, the journal only works for the actual player’s mount collection.
I’m pretty sure nothing in the in-game API allows you to access someone else’s collection statistics.
That’s only available in the external web service API, which the internal environment (script/WA/macro) can’t access.
Unfortunate - would be nice to have that data available in game.
Thanks all