Need help with update for buffs macro

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Goby
orc pawn
orc pawn
Posts: 10
Joined: Thu Mar 20, 2003 4:35 pm

Need help with update for buffs macro

Post by Goby » Tue Apr 27, 2004 2:16 pm

Hi , i've been using this short buffs macro to help me keep track of my buffs. Unfortunately with recent updates the macro no longer works.
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 


Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Tue Apr 27, 2004 2:24 pm

we actually use custom UIs to do this one for us but heres what you do, until saturday anyway

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 i local
  /for i 1 to 15
    /if (${Me.Buff[i].ID}) {
      /if (${Defined[Param0]} && ${Me.Buff[i].Spell.ID==@Param0}) /next i
      /echo ${Buff[i]} ${Buff[i].Level} ${Buff[i].Duration.Time} remaining
    }
  /next i
/return 
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Goby
orc pawn
orc pawn
Posts: 10
Joined: Thu Mar 20, 2003 4:35 pm

Post by Goby » Tue Apr 27, 2004 2:54 pm

Thanks for the macro :) unfortunately it doesnt seem to do anything, tried it a few times to make sure but no luck.

Just tried the Custom ui buffwindow you mentioned instead, works like a charm. Much better than having to execute a macro all the time :)