I'm pretty clueless when it comes to macros so any help would be appreciated :)
Code: Select all
| bufftime.mac
| List the buffs you have and the time left on them
| if you specify a buff name, it only reports that one
Sub Main
/declare time_sec local
/declare time_min local
/declare time_hou local
/declare i local
/for i 1 to 15
/if "$char(buff,@i,spellid)"!="NULL" {
/if $defined(Param0)==true /if "$char(buff,@i,spellid)"!~"@Param0" /next i
/varcalc time_sec $char(buff,@i,duration)*6
/varcalc time_hou @time_sec\3600
/varcalc time_min @time_sec%3600\60
/varcalc time_sec @time_sec%60
/echo $char(buff,@i,spellid) (Level $char(buff,@i,level)) @time_hou hrs @time_min mins @time_sec secs remaining
}
/next i
/return

