.goto(@pick)

@smith:
repeatnextcommanduntilquestmenu(800)
useitemwithobject(583,764,170)
waitforquestmenu(5000)
answer(1)
waitforquestmenu(5000)
answer(2)
waitforquestmenu(5000)
answer(1)
wait(500)
gotoifcountininventorygreater(@smith,4,170)
goto(@door)

@pick:
closedoor(581,761)
wait(500)
gotoifcoordsin(@smith,582,761,584,763)
goto(@pick)

@door:
opendoor(581,761,open)
wait(500)
gotoifcoordsin(@bank,581,761,579,759)
goto(@bank)