Page 1 of 1
AltAbility TLO changes
Posted: Mon Nov 23, 2015 6:05 pm
by JudgeD
22 Nov 2015 by EqMule and Demonstar55
- Please don't use MQ2 for unattended gameplay (afk botting)
- Added .Index to the AltAbility TLO.
- Added .NextIndex to the AltAbility TLO.
- Added .CanTrain to the AltAbility TLO.
Usage: /if (${AltAbility[Companion's Aegis].CanTrain}) /alt buy ${AltAbility[Companion's Aegis].NextIndex}
- Added a few new APIs:
- AltAdvManager::CanSeeAbility
- AltAdvManager::CanTrainAbility
- PcZoneClient::HasAlternateAbility
- Added the /pick # command to the ISXEQ build.
Just a question about how exactly Index / NextIndex is supposed to work.
I found that when buying glyphs, I had to use:
Code: Select all
/alt buy ${AltAbility[Glyph of the Cataclysm].Index}
instead of:
Code: Select all
/alt buy ${AltAbility[Glyph of the Cataclysm].NextIndex}
When does one use one vs the other?
Re: AltAbility TLO changes
Posted: Mon Nov 23, 2015 10:38 pm
by demonstar55
You are correct, going from rank 0 to rank 1 requires you to use Index (this is the ID of the AA rank, as opposed to the ID of the AA group, which is what ID is

)
going from any other rank up requires you to use NextIndex, as in the next rank's ID.
Re: AltAbility TLO changes
Posted: Tue Nov 24, 2015 7:40 pm
by JudgeD
Personal opinion is that it feels a little clunky for folks who might not want to build in checks every time they want to buy AA. I'm assuming there's a good reason, just speaking from a consumer's perspective.
Re: AltAbility TLO changes
Posted: Tue Nov 24, 2015 7:51 pm
by demonstar55
That's how the data is. When you do ${AltAbility[foo]} without any ranks bought you end up with rank 1 and /alt buy takes in the Index of the AA you want to buy, so you have to provide ${AltAbility[foo].Index}. When you have rank 1 it returns rank 1 so you have to do ${AltAbility[foo].NextIndex}.
Re: AltAbility TLO changes
Posted: Tue Nov 24, 2015 8:39 pm
by JudgeD
Cool, thanks for the explanation
Re: AltAbility TLO changes
Posted: Thu Nov 26, 2015 10:27 am
by EqMule
This is he first iteration of this code, maybe it can be improved to always just use .Index or something , I don't know, I didn't really expect people to macro this but use plugins instead, but when I add plugin support I usually also add macro support to be nice to both groups...
Anyway this didn't exist a few days ago at all, so it's still an improvement to nothing

Re: AltAbility TLO changes
Posted: Thu Nov 26, 2015 10:51 am
by demonstar55
Going from no ranks to 1 rank is the only special case.
Re: AltAbility TLO changes
Posted: Sat Nov 28, 2015 5:50 pm
by JudgeD
EqMule wrote:
Anyway this didn't exist a few days ago at all, so it's still an improvement to nothing

Please don't mistake my curiosity as unappreciation :)
Re: AltAbility TLO changes
Posted: Sat Nov 28, 2015 11:53 pm
by JudgeD
Made this simple sub from your additions, thanks :)
viewtopic.php?f=49&t=19871
Re: AltAbility TLO changes
Posted: Sun Nov 29, 2015 12:02 am
by JudgeD
EqMule, I noticed that the wiki warns against using the AltAbility TLO directly, and instead suggests using Me.AltAbility. Is that out of date?
http://www.macroquest2.com/wiki/index.p ... AltAbility
Re: AltAbility TLO changes
Posted: Sun Nov 29, 2015 1:08 am
by demonstar55
${AltAbility[]} goes over asks the AA manager for the AA. This means it can find AAs you don't own but the client knows about.
${Me.AltAbility[]} goes over your owned AAs. This means it can only find AAs you own.
Re: AltAbility TLO changes
Posted: Sun Nov 29, 2015 5:51 pm
by Maskoi
That is very helpful.
Cool Product Website
Posted: Sun Dec 24, 2023 7:02 pm
by FrankJScott
Please try
Google before asking about
Recommended Product Info 52a1b86
Updated Product Website
Posted: Sat Jan 06, 2024 6:21 pm
by FrankJScott
Please try
Google before asking about
Awesome Product Website d1ac70_