BuffStackTest (MQ2Main/MQ2Utilities.cpp)

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

PeteSampras
a snow griffon
a snow griffon
Posts: 322
Joined: Sat Dec 15, 2007 8:56 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by PeteSampras » Mon Mar 24, 2014 11:08 pm

.
Last edited by PeteSampras on Thu Mar 27, 2014 12:21 am, edited 1 time in total.

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by SwiftyMUSE » Tue Mar 25, 2014 1:58 am

PeteSampras wrote:The songs can land on the long duration, but the long duration cannot land on the song. Thus why i added this line of code:

Code: Select all

if (!(tmpSpell->Level[7]==255?0:tmpSpell->Level[7]) && (!(pSpell->Attrib[1]==58)||!(pSpell->DurationWindow==1))) {
However, AAs cant always land on a disc if there is stacking issues or if the AA itself is counted as a disc and uses the combatability window like for ber/war and ranger trueshot line.

So in words, what does that line actually check? Why do you only check attrib[1]? Aren't there other illusions in slots2-12?
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

PeteSampras
a snow griffon
a snow griffon
Posts: 322
Joined: Sat Dec 15, 2007 8:56 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by PeteSampras » Tue Mar 25, 2014 7:51 am

.
Last edited by PeteSampras on Thu Mar 27, 2014 12:22 am, edited 1 time in total.

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by SwiftyMUSE » Tue Mar 25, 2014 11:49 am

Btw, there are illusions using slots other than 1.
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by warlock45 » Tue Mar 25, 2014 12:53 pm

I think that's why he had the qualifier of "illusion that had a conflict"

Its always the kids that sufer when the grownups fight! =p

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by SwiftyMUSE » Tue Mar 25, 2014 5:28 pm

so your saying...

!(tmpSpell->Level[7]==255?0:tmpSpell->Level[7]) checks if its a bard song (this will not work for spells that are multi-classed that include bards)
!(pSpell->Attrib[1]==58) checks if it is an illusion
!(pSpell->DurationWindow==1) checks if it is ???
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by SwiftyMUSE » Tue Mar 25, 2014 5:30 pm

warlock45 wrote:I think that's why he had the qualifier of "illusion that had a conflict"

Its always the kids that sufer when the grownups fight! =p
And I was pointing out that "yet to see" is not a good way to determine how to code something. Check to make sure all the data fits your test (when possible) or it will fail and you will have to make changes over and over again.
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

PeteSampras
a snow griffon
a snow griffon
Posts: 322
Joined: Sat Dec 15, 2007 8:56 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by PeteSampras » Tue Mar 25, 2014 6:10 pm

.
Last edited by PeteSampras on Thu Mar 27, 2014 12:22 am, edited 1 time in total.

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by SwiftyMUSE » Tue Mar 25, 2014 6:21 pm

rswiders wrote:so your saying...

!(tmpSpell->Level[7]==255?0:tmpSpell->Level[7]) checks if its a bard song (this will not work for spells that are multi-classed that include bards)
!(pSpell->Attrib[1]==58) checks if it is an illusion
!(pSpell->DurationWindow==1) checks if it is ???

Pete, your still writing obscure code and not answering what each part is trying to do. Since I know parts are wrong, I'm just trying to understand what each part of the check is responsible for so that it can be included properly.
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

PeteSampras
a snow griffon
a snow griffon
Posts: 322
Joined: Sat Dec 15, 2007 8:56 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by PeteSampras » Tue Mar 25, 2014 6:32 pm

.
Last edited by PeteSampras on Thu Mar 27, 2014 12:22 am, edited 1 time in total.

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by SwiftyMUSE » Tue Mar 25, 2014 6:35 pm

There aren't bard songs that are multiclass. There are aa/disciplines shared by classes and will show the minimum level for a bard to use. Check out Fearless Discipline (#4587).


And thanks for answering the questions. I appreciate it.
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

PeteSampras
a snow griffon
a snow griffon
Posts: 322
Joined: Sat Dec 15, 2007 8:56 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by PeteSampras » Tue Mar 25, 2014 7:14 pm

.
Last edited by PeteSampras on Thu Mar 27, 2014 12:22 am, edited 1 time in total.

demonstar55
a snow griffon
a snow griffon
Posts: 314
Joined: Fri Nov 28, 2008 6:31 am

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by demonstar55 » Tue Mar 25, 2014 7:39 pm

Discs are buffs that have their own special window.

mystikule
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jul 17, 2004 9:23 pm

Re: BuffStackTest (MQ2Main/MQ2Utilities.cpp)

Post by mystikule » Tue Dec 01, 2015 7:08 pm

Sorry for dragging up an old post...

I'm slowly in the process of rewriting my old macros and am trying to figure out the best method for performing a heal over time check now that they appear in the song window.

${Spell[Holy Elixir].Stacks} always returns true, but ${Spell[Holy Elixir].StacksWith[Supernal Elixir]} returns false. Should this be the case or should I be doing this an entirely different way?

Thank you in advance.

....off topic a bit, but I just realized that with hots moved to the song window, is there any way to even know if someone else has a hot on them? This seems detrimental to hot healing....
[quote="fearless"]A macro is not psychic.[/quote]

FrankJScott
naggy
naggy
Posts: 2349
Joined: Sun Feb 19, 2023 7:11 am

Useful Workspace Management And Moving Solutions Guide

Post by FrankJScott » Tue Aug 12, 2025 5:00 pm

why not just google it