Role prediction if you want some ideas, i did this for DBM back in cataclysm, and you know what i did to uppdate support for MoP, not a damn thing, it worked out of box. It was a creative way to check roles based on "IsSpellKnown(12345)" and checking for key spells only certain roles had. for example, do you know vengeance? you're a tank! Meditation? You're a healer.

Now in cataclysm it gets tricky for bears, but fortunately in MOP that's eliminated.

But basically this

Code:

--A simple check to see if these classes know "Vengeance".
function addon()
return (class == "WARRIOR" and IsSpellKnown(93098))
or (class == "DEATHKNIGHT" and IsSpellKnown(93099))
or (class == "PALADIN" and IsSpellKnown(84839))
or (class == "DRUID" and IsSpellKnown(84840))
or (class == "MONK" and IsSpellKnown(120267))
end

Code:

--A simple check to see if these classes know "Meditation".
function addon()
return (class == "PALADIN" and IsSpellKnown(95859))
or (class == "SHAMAN" and IsSpellKnown(95862))
or (class == "DRUID" and IsSpellKnown(85101))
or (class == "PRIEST" and (IsSpellKnown(95860) or IsSpellKnown(95861)))
or (class == "MONK" and IsSpellKnown(121278))
end

Both of above false? you're a dps

now on live for druid you have to do some extra talent checking still to figure out feral dps from feral bear, but since this is a MoP beta mod, probably irrelevent for your current needs.

Role prediction if you want some ideas, i did this for DBM back in cataclysm, and you know what i did to uppdate support for MoP, not a damn thing, it worked out of box. It was a creative way to check roles based on "IsSpellKnown(12345)" and checking for key spells only certain roles had. for example, do you know vengeance? you're a tank! Meditation? You're a healer.

Now in cataclysm it gets tricky for bears, but fortunately in MOP that's eliminated.

But basically this

Code:

--A simple check to see if these classes know "Vengeance".
function addon()
return (class == "WARRIOR" and IsSpellKnown(93098))
or (class == "DEATHKNIGHT" and IsSpellKnown(93099))
or (class == "PALADIN" and IsSpellKnown(84839))
or (class == "DRUID" and IsSpellKnown(84840))
or (class == "MONK" and IsSpellKnown(120267))
end

Code:

--A simple check to see if these classes know "Meditation".
function addon()
return (class == "PALADIN" and IsSpellKnown(95859))
or (class == "SHAMAN" and IsSpellKnown(95862))
or (class == "DRUID" and IsSpellKnown(85101))
or (class == "PRIEST" and (IsSpellKnown(95860) or IsSpellKnown(95861)))
or (class == "MONK" and IsSpellKnown(121278))
end

Both of above false? you're a dps

now on live for druid you have to do some extra talent checking still to figure out feral dps from feral bear, but since this is a MoP beta mod, probably irrelevent for your current needs.

I probably won't go crazy into talent spells, since those will change pretty often. Instead a more simple approach would be easier to accomplish:

I changed the lines of code that have ThreatPlatesDB_BETA to ThreatPlatesDB for mists.
I ported all my save files from live to beta. And so far everything looks the same as it does on live after making the change. Just want to make sure this didn't add errors, assuming you made no DB changes that would effect old saves.

Just trying to get a head start on my UI on mists since I plan to port all save files and addons back to live when ptr goes live.

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.