Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 09:40:18 am *

Login with username, password and session length
Pages: [1]
Print
Author Topic: AA Buying Macro  (Read 990 times)
Sanjii
Newbie
*
Posts: 20


View Profile
« on: February 02, 2022, 11:25:29 am »

Got a request today for an AA macro. Here is the one I use. Make sure that autobuy aa is enabled or you'll just go into a confirm loop and nothing is purchased.

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
Logged
Guts
Newbie
*
Posts: 8


View Profile
« Reply #1 on: February 02, 2022, 01:09:07 pm »

thank you for this!!
Logged
Pages: [1]
Print
Jump to:  

Recent

Stats

Members
Stats
  • Total Posts: 64971
  • Total Topics: 5051
  • Online Today: 95
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 1
Guests: 50
Total: 51
TinyPortal v1.0 beta 4 © Bloc