Advertisement
Aldarana

Untitled

Sep 28th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. function ()
  2. local crit = GetCombatRating(11);
  3. local haste = GetCombatRating(20);
  4. local vers = GetCombatRating(29);
  5. local mastery = GetCombatRating(26);
  6. local total = mastery + haste + crit + vers
  7. critPercent = crit/total*100
  8. versPercent = vers/total*100
  9. masteryPercent = mastery/total*100
  10. hastePercent = haste/total*100
  11.  
  12. return "crit: "..crit.." - "..string.format("%.1f", critPercent).."%%\n"..
  13. "haste: "..haste.." - "..string.format("%.1f", hastePercent).."%%\n"..
  14. "vers: "..vers.." - "..string.format("%.1f", versPercent).."%%\n"..
  15. "mastery: "..mastery.." - "..string.format("%.1f", masteryPercent).."%%\n"..
  16. "\n\nTotal: "..total
  17.  
  18. -- return WA_STATS_RETURN or "<no data>";
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement