|gbank.mac by playj for RG
|change guild bank items permission to public view
|v0.01 2015
|Usage: Have Open Guild Bank Window and /mac gbank number where number is number of items to change with the default being 5
|for example /mac gbank 7 will attempt to change first 7 items in bank
|currently the macro will change the first item in bank so you need to sort items by Permission so items needing changing are at the top
|change /notify GuildBankWnd GBANK_PermissionCombo listselect 4 to 3 if you want Public If Usable
Sub Main
/declare i int local
/declare BankCount int local 5
/if (${Param0}) /varset BankCount ${Param0}
/echo changing ${BankCount} items in bank to public view
/for i 1 to ${BankCount}
|/notify GuildBankWnd GBANK_ItemList listselect ${i}
/notify GuildBankWnd GBANK_ItemList listselect 1
/delay 7
/notify GuildBankWnd GBANK_PermissionCombo listselect 4
/delay 10
/next i
/return