Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2024, 06:55:07 am *

Login with username, password and session length
Pages: [1]
Print
Author Topic: AA Buying Macro  (Read 2940 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
  • Total Members: 6156
  • Latest: Rin1
Stats
  • Total Posts: 65127
  • Total Topics: 5066
  • Online Today: 331
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 0
Guests: 272
Total: 272
TinyPortal v1.0 beta 4 © Bloc