Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. function()
  2. local power = UnitPower("player")
  3. local space_1digit = " "
  4. local space_2digit = " "
  5. local space_3digit = " "
  6. local space_5digit = " "
  7. local space_6digit = " "
  8. local space = " "
  9. if power <= 9 then
  10. space = space_1digit
  11. elseif power <= 99 then
  12. space = space_2digit
  13. elseif power <= 999 then
  14. space = space_3digit
  15. elseif power <= 99999 then
  16. space = space_5digit
  17. elseif power <= 999999 then
  18. space = space_6digit
  19. end
  20. return space..power
  21. end
  22.  
  23.  
  24. -- Made by Aldarana and Redtuzk, Kazzak EU
  25. -- Redtuzk: http://www.youtube.com/c/emilblem
  26. -- Aldarana: http://www.youtube.com/c/UCSBCI2CVjKkmj_yMA8Qy5pQ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement