Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ()
- local crit = GetCombatRating(11);
- local haste = GetCombatRating(20);
- local vers = GetCombatRating(29);
- local mastery = GetCombatRating(26);
- local total = mastery + haste + crit + vers
- critPercent = crit/total*100
- versPercent = vers/total*100
- masteryPercent = mastery/total*100
- hastePercent = haste/total*100
- return "crit: "..crit.." - "..string.format("%.1f", critPercent).."%%\n"..
- "haste: "..haste.." - "..string.format("%.1f", hastePercent).."%%\n"..
- "vers: "..vers.." - "..string.format("%.1f", versPercent).."%%\n"..
- "mastery: "..mastery.." - "..string.format("%.1f", masteryPercent).."%%\n"..
- "\n\nTotal: "..total
- -- return WA_STATS_RETURN or "<no data>";
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement