RS3 or OSRS? I know you could circumvent this problem manually in RS3 by using a bank preset (Bank condition = OPEN? -> TRUE-> Keyboard action PRESS "preset #". Opening the bank itself would be done with an NPC or game object interaction depending on the specific bank that you're using