You can use nested #LOOP statements to try all the permutations. I'm assuming its a three tumbler lock with a range of 0 to 59.
#LOOP 0, 59 {
#VAR firstnum %i
#LOOP 0, 59 {
#VAR secondnum %i
#LOOP 0, 59 {
dial left @firstnum
dial right @secondnum
dial left %i
pull handle
}
}
}
You should modify this to fit your MUD.
Troubadour