i think your problem has to be more specific, since coding a script is about preset actions for possibilities.
but from what I can understand it deposits your mith picaxe in the bank n wanders off? Seems like the Bank method needs a check to see wether or not your picaxe is in your inventory.