Shrines problems

when my bot search for shrines before baal he continue searching shrines after find 1, and he go to dark wood wp and continue searching , so he loose a lot of time ( 1º and 2º wave ~)

is there any way to go baal after find 1 shrine?

What script are you using to find shrines?