I use it via /bcaa //mac po8
Code: Select all
|-----------------------------------------------------------------------------
| file name : po8.mac
|-----------------------------------------------------------------------------
Sub Main
/declare I int local
/declare S string local
/echo Reporting on my total "Peices of Eight"
/varset I 1
/if (!${Window[InventoryWindow]}) /keypress i
/delay 2s ${Window[InventoryWindow]}
/notify InventoryWindow IW_Subwindows tabselect 5
/delay 1s
:NextItem
/varset S ${Window[InventoryWindow].Child[IW_AltCurrPage].Child[IW_AltCurr_PointList].List[${I},2]}
|/echo Debug : List[ ${I} ] = ${S}
/if (${S.Equal[Pieces of Eight]}) {
/varset S ${Window[InventoryWindow].Child[IW_AltCurrPage].Child[IW_AltCurr_PointList].List[${I},3]}
/echo You have [ ${S} ] Peices of Eight
/bc I have [ ${S} ] Peices of Eight
/notify InventoryWindow IW_Subwindows tabselect 1
/keypress ESC
/end
}
/if (${S.Equal[NULL]} || ${I}>32) /end
/varcalc I ${I}+1
/goto :NextItem
/return


