Check FreeBuffSlots

Third party software discussion goes here.
Tristhan
Posts: 293

Check FreeBuffSlots

Post#1 » Sun Apr 20, 2014 7:04 pm

Hiya,

anyone knows how to check freebuffslots ?

Normally i use ${Me.FreeBuffSlots}>-7 (if that toon can have up to 25 buffs), but it seems that ${Me.FreeBuffSlots} only counts real buffs, as soon as that toon has bad buffs (like creeping mold or neg. recourse effects) it doesnt count right.

Anyone knows a solution ?

Ydiss
Posts: 1193

Re: Check FreeBuffSlots

Post#2 » Sun Apr 20, 2014 7:10 pm

Off the top of my head I don't know any other object members that would give the result you need but a function that iterates through all buff slots and returns how many are null would work.

I'm surprised freebuffslots counts debuffs as free slots though. Mq2 doesn't, so far as I am aware, distinguish between negative or positive effects when returning the ID of a buff slot, so I'd have thought the intended functionality of that member would be to return an integer representing the number of buff slots that have an ID NULL.

So if you have 8 buffs and 2 debuffs, it should result in 15, given the character can have 25 buffs.

User avatar
Grey
Posts: 1101

Re: Check FreeBuffSlots

Post#3 » Sun Apr 27, 2014 6:50 pm

Ydiss wrote: a function that iterates through all buff slots and returns how many are null would work.

Tristhan
Posts: 293

Re: Check FreeBuffSlots

Post#4 » Mon Apr 28, 2014 2:16 pm

Grey wrote:
Ydiss wrote: a function that iterates through all buff slots and returns how many are null would work.


Hm, i am not sure thats a solution for my problem.
Do i really need to check all 25 buffslots for returning NULL every time i run through my loop. i am afraid that will reduce the runspeed of the macro/ create errors ...

During that loop i check for:
(!${Me.Buff[Empowered Brilliance I].ID} && ${Me.FreeBuffSlots}>-7 && ${Cast.Ready[Energized Masquerade Mask]})

Ydiss
Posts: 1193

Re: Check FreeBuffSlots

Post#5 » Mon Apr 28, 2014 6:31 pm

Tristhan wrote:
Grey wrote:
Ydiss wrote: a function that iterates through all buff slots and returns how many are null would work.


Hm, i am not sure thats a solution for my problem.
Do i really need to check all 25 buffslots for returning NULL every time i run through my loop. i am afraid that will reduce the runspeed of the macro/ create errors ...

During that loop i check for:
(!${Me.Buff[Empowered Brilliance I].ID} && ${Me.FreeBuffSlots}>-7 && ${Cast.Ready[Energized Masquerade Mask]})

You're right, it's not the most elegant way to get the value you need but it might be the only method; that said, having that loop run every time a holyshit/downshit is checked would be excessive.

I've tested ${Me.FreeBuffSlots} and for me it seemed to count debuffs fine. I had -3 available when I had a debuff on me and -2 when it was removed. I'm not sure what may be causing the problem for you.

Tristhan
Posts: 293

Re: Check FreeBuffSlots

Post#6 » Tue Apr 29, 2014 4:30 pm

Ydiss wrote:You're right, it's not the most elegant way to get the value you need but it might be the only method; that said, having that loop run every time a holyshit/downshit is checked would be excessive.

I've tested ${Me.FreeBuffSlots} and for me it seemed to count debuffs fine. I had -3 available when I had a debuff on me and -2 when it was removed. I'm not sure what may be causing the problem for you.


Thank you for the helpful answers, good to know ${Me.FreeBuffSlots} works for you.
I will do some more tests (if i remember correct, i got some weird counting when all buffslot are full).

Ydiss
Posts: 1193

Re: Check FreeBuffSlots

Post#7 » Tue Apr 29, 2014 5:39 pm

Tristhan wrote:
Ydiss wrote:You're right, it's not the most elegant way to get the value you need but it might be the only method; that said, having that loop run every time a holyshit/downshit is checked would be excessive.

I've tested ${Me.FreeBuffSlots} and for me it seemed to count debuffs fine. I had -3 available when I had a debuff on me and -2 when it was removed. I'm not sure what may be causing the problem for you.


Thank you for the helpful answers, good to know ${Me.FreeBuffSlots} works for you.
I will do some more tests (if i remember correct, i got some weird counting when all buffslot are full).

Cool, let us know when you've got some figures. It might be an issue when all buff slots are taken (we never get to that point yet :P)

User avatar
Grey
Posts: 1101

Re: Check FreeBuffSlots

Post#8 » Wed Apr 30, 2014 9:30 am

It's a terrible way to do it but its reliable.
I use MQ2Netbots and check for stuff like that using it.
Lots of people don't like netbots however so I just assume no one I talk to uses it.

Return to “Third party software”

Who is online

Users browsing this forum: No registered users and 1 guest