 			scrollDown(18)
 		}
 		scrollToZone(fromZone, midasZone2)
-		locator(imgReferi, "Referi", xl, yl, 2)
+		if (!locator(imgReferi, "Referi", xl, yl, 2, 1)) {
+			showDebugSplash("Failed Midas start!")
+			return
+		}
 		xl -= 155
 		yl += 60
 		buySkill(imgMetalDetector, xl, yl-oLvl*3, 5, 5)

				}
				skillSearch := true
				isResuming := false
			}
		}
		if (mod(t, 15) = 0) {

		scrollToBottom()
	}

	while (upLocator(imgGilded, "Gilded hero", xAbs, yAbs, 5, 1, 1, startAt)) {
		local xPixel := xAbs + 83 ; HI[R]E
		local yPixel := yAbs + 38
		if (matchPixelColor(dimmedYellowColor, xPixel, yPixel)) {
