View Single Post
Old 09-24-12, 03:25 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 9,524
http://www.lua.org/manual/5.1/manual...-string.format
http://lua-users.org/wiki/StringLibraryTutorial


What are you using to count your characters, Dridzt? MacroWoW's final macro fits in 255, and yours is only 124 (according to http://www.macroexplain.com/)

Though you could just do...
Code:
/run local a,b=GetNumCompletedAchievements()print(a.."/"..b.."achievements")print("that is".. b/a*100.."%")
to save even more space (107 chars). The performance lost is very negligible between the two versions.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

Seerah is offline   Reply With Quote