EZ Server

General Category => Quest and Guides => Topic started by: Natedog on August 23, 2015, 09:05:06 pm



Title: BuyAA -- for the lazy people
Post by: Natedog on August 23, 2015, 09:05:06 pm
This will try to buy any AA that it can in the normal 3 tabs

Code:
Sub Main
:loop
/if (${AltAbility[${Window[AAWindow].Child[List1].List[1]}].ID}==NULL && ${AltAbility[${Window[AAWindow].Child[List2].List[1]}].ID}==NULL && ${AltAbility[${Window[AAWindow].Child[List3].List[1]}].ID}==NULL) /endmacro
/if (${Me.AAPoints}>=25) {
/call BuyAA
/goto :loop
}
/return

Sub BuyAA
/declare a int local
/if (!${Window[AAWindow].Open}) {
/windowstate AAWindow open
}
/if (!${Window[AAWindow].Child[CanPurchaseFilter].Checked}) /nomodkey /notify AAWindow CanPurchaseFilter leftmouseup
/for a 3 downto 1
/if (!${AltAbility[${Window[AAWindow].Child[List${a}].List[1]}].ID}==NULL) {
/nomodkey /notify AAWindow AAW_Subwindows tabselect ${a}
/nomodkey /notify AAWindow List${a} listselect 1
/nomodkey /notify AAWindow List${a} leftmouse 1
/delay 1
/nomodkey /notify AAWindow TrainButton leftmouseup
/delay 1
/return
}
/next a
/return


Save into a file  "buyaa.mac" inside the macros folder of your MQ2 and just run it with /macro buyaa


EDIT : Once it finishes buying the first 3 tabs worth of AAs.. it will auto end


Make sure Fast AA Purchase is ON
(http://i.imgur.com/6ShOVE3.png)


Title: Re: BuyAA -- for the lazy people
Post by: Akkadius on August 23, 2015, 09:15:44 pm
Modified delays for .1 second

Thanks for the post Natedog. This will help a lot of people.


Title: Re: BuyAA -- for the lazy people
Post by: Openwounds on August 23, 2015, 09:31:05 pm
Thanks so much.  Saved me hours of manual clicking.


Title: Re: BuyAA -- for the lazy people
Post by: Waraesh on August 23, 2015, 11:16:44 pm
Natedog = Raw Wieny
He just cannot be beat!

Thanks again for this massive time saver!


Title: Re: BuyAA -- for the lazy people
Post by: AcuteAnthrax on August 24, 2015, 06:35:15 am
This is overall a great little macro. I'd love to see a link to this thread or a mention of it throw in the motd just because some people might not come here before and with people having upwards to 30 toons I'd imagine that much clicking sounds dreadful.


Title: Re: BuyAA -- for the lazy people
Post by: Adydar on August 24, 2015, 09:09:07 am
Was talking to my buddy about how bad it will suck to rebuy all the AAs for the whole crew, thanks for putting this up there, major good karma points.


Title: Re: BuyAA -- for the lazy people
Post by: Rent Due on August 24, 2015, 09:54:40 am
very cool, very cool indeed sir


Title: Re: BuyAA -- for the lazy people
Post by: balidet on August 25, 2015, 05:04:59 pm
I take back most of what them other guys been saying about you man...


this is great!

you just gave me back 1 hour of my life that I can Squander on this game!


Title: Re: BuyAA -- for the lazy people
Post by: Kruciel on August 25, 2015, 08:34:50 pm
Don't use it Rent, Nate has dem keyloggers  :o


Title: Re: BuyAA -- for the lazy people
Post by: Kruciel on September 06, 2015, 11:09:10 pm
Bump for late ppls coming back.


Title: Re: BuyAA -- for the lazy people
Post by: Drajor on September 07, 2015, 03:18:24 am
*pats Natedog*


Title: Re: BuyAA -- for the lazy people
Post by: Peign on June 06, 2016, 08:42:01 pm
A bit late I know, but thanks for this Natedog!


Title: Re: BuyAA -- for the lazy people
Post by: warrior5 on June 06, 2016, 10:42:31 pm
^ !!


Title: Re: BuyAA -- for the lazy people
Post by: gnonim on June 07, 2016, 07:59:34 am
very awesome, thanks much!


Title: Re: BuyAA -- for the lazy people
Post by: esportinception7 on May 01, 2018, 10:28:40 pm
I need to create a file in win 10 as a .mac file. How would I do this? I tried using notepad and saving as above as .mac but it's not working.


Title: Re: BuyAA -- for the lazy people
Post by: Dimur on May 02, 2018, 12:07:35 am
Make sure when saving in notepad using the Save As from File drop-down menu, you name the file and append it with .mac...so if you save it as buyaa for the name you type buyaa.mac and be sure to specify, under the Save as file type drop-down menu, All Files(*) because it will default to .txt Text File.


Title: Re: BuyAA -- for the lazy people
Post by: s0rcier on December 08, 2018, 09:47:06 pm

added file attachment, just download and save in your macroquest/macro folders...

this version have 1 extra lines that would turn on fast aa purchase before attempting to purchase aa, so you dont have to worry about that anymore... thanks dimur for teaching me how to do it...

Hardtime