${Target.Rooted.Duration} vs. ${Target.Buff[0].Duration}

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Vayeco Dynn
a ghoul
a ghoul
Posts: 113
Joined: Wed Aug 25, 2004 3:00 am

${Target.Rooted.Duration} vs. ${Target.Buff[0].Duration}

Post by Vayeco Dynn » Thu Jun 12, 2014 1:21 pm

${Target.Rooted.Duration} is updated with the actual remaining duration of the buff, while ${Target.Buff[0].Duration} is not. Why is this? Is there any way to get accesses to the remaining duration of a buff via ${Target.Buff}?

Vayeco Dynn
a ghoul
a ghoul
Posts: 113
Joined: Wed Aug 25, 2004 3:00 am

Re: ${Target.Rooted.Duration} vs. ${Target.Buff[0].Duration}

Post by Vayeco Dynn » Thu Jun 12, 2014 2:13 pm

After digging through the code with very little knowledge of C++ or whatever MQ is written in, I figured out what I was looking for: ${Target.BuffDuration[SLOTNUM/SPELLNAME]}

woobs
a grimling bloodguard
a grimling bloodguard
Posts: 627
Joined: Thu Dec 10, 2009 11:53 am

Re: ${Target.Rooted.Duration} vs. ${Target.Buff[0].Duration}

Post by woobs » Thu Jun 12, 2014 4:10 pm


Vayeco Dynn
a ghoul
a ghoul
Posts: 113
Joined: Wed Aug 25, 2004 3:00 am

Re: ${Target.Rooted.Duration} vs. ${Target.Buff[0].Duration}

Post by Vayeco Dynn » Thu Jun 12, 2014 5:20 pm

Thanks. I was still using the ancient http://www.macroquest2.com/includes/wassup/manual.php