m
no edit summary
m (added external link to printf manual node) |
mNo edit summary |
||
| Line 19: | Line 19: | ||
> = string.format("%o, %x, %X", -100,-100,-100) -- octal, hex, hex | > = string.format("%o, %x, %X", -100,-100,-100) -- octal, hex, hex | ||
37777777634, ffffff9c, FFFFFF9C | 37777777634, ffffff9c, FFFFFF9C | ||
<br> | |||
==== Macro Example ==== | |||
This macro prints out the time remaining on the Polymorph debuff in seconds, rounded to the nearest whole number: | |||
<pre> | |||
/run for i=1,40 do local n,_,_,_,_,_,x,_,_=UnitDebuff("focus",i);if (n=="Polymorph")or (n=="Polymorph(Pig)")or (n=="Polymorph(Turtle)")then SendChatMessage('''format("%.0f"''',-1*(GetTime()-x)).." secs left on "..UnitName("focus").."'s CC!","EMOTE");end end | |||
</pre> | |||
== External links == | == External links == | ||