Page 1 of 1
Show number of buffs and buff slots
Posted: Tue Mar 29, 2005 11:43 pm
by gimp
Here's some code to do just that.
If someone with the DoN AA "Embrace of the Keepers" could test this to see if it works properly would be cool.
Code: Select all
Sub Main
|shows how many buffs you currently have
|15 buffs from start
|+5 OOW AA buffs
|+1 DON AA buffs
/declare buffslots int local 0
|Calculates the number of buff slots you have available
/varset buffslots 15
/varcalc buffslots ${buffslots}+(${Me.AltAbility[Mystical Attuning]}/5)
/if (${Me.AltAbility[Embrace of the Keepers]}) /varcalc buffslots ${buffslots}+1
/echo ${Me.CountBuffs}/${buffslots} buffs
/return
Posted: Wed Mar 30, 2005 8:18 am
by A_Druid_00
Not to rain on your parade, but there was already an object in MQ that returned this. I think it was Me.FreeBuffSlots and BuffCount. I don't know if it's stil there, but I'd have to assume it is.
Posted: Wed Mar 30, 2005 3:26 pm
by gimp
Thanks, couldnt find a Me.BuffCount or similar, but FreeBuffSlots is there. Got rid of that ugly loop :-)
Updated first post with new code
Posted: Wed Mar 30, 2005 3:28 pm
by fearless
I believe Embrace of the Keepers is only 1 spell slot, not the entire 5.
Posted: Wed Mar 30, 2005 3:38 pm
by A_Druid_00
${Me.CountBuffs}
Found it in my RaidDruid code for CheckBuffs.
Posted: Wed Mar 30, 2005 4:34 pm
by gimp
lol, okay updated code again, should be accurate now, thx druid guy :)
and fearless you're correct someone who had the aa confirmed that it's just 1 slot aswell
Posted: Thu Mar 31, 2005 9:45 am
by echoism
I know that Me.FreeBuffSlots does account for the Omens AA skill, "Mystical Attuning". I don't know if it accounts for the additional buff slot granted from DoN progression or not.
Posted: Thu Mar 31, 2005 9:49 am
by A_Druid_00
echoism wrote:I know that Me.FreeBuffSlots does account for the Omens AA skill, "Mystical Attuning". I don't know if it accounts for the additional buff slot granted from DoN progression or not.
It sure used to. Now I don't know if it counts the DoN though.
It's easy enough to test if you have someone that can cast a ton of buffs on you available.
Posted: Fri Apr 22, 2005 2:19 pm
by gimp
okay the embrace of the keepers check is broken in the first post, this code is verified to work properly:
Code: Select all
Sub Main
|shows how many buffs you currently have
|15 buffs from start
|+5 OOW AA buffs
|+1 DON AA buffs
/declare buffslots int local 0
|Calculates the number of buff slots you have available
/varset buffslots 15
/varcalc buffslots ${buffslots}+(${Me.AltAbility[Mystical Attuning]}/5)
/if (${AltAbility[Embrace of the Keepers].ID}) {
/varcalc buffslots ${buffslots}+1
}
/echo ${Me.CountBuffs}/${buffslots} buffs
/return