do #scnt is the variable in uo that is the current time. the first line below i add time to the current time to set a safety time.
the last line, the until line, i keep sending it to repeat that area of code until if does not find or ( || ) means or the preset time is reached. 25 = 25 seconds when doing timers... diff than wait 20
set %safety_timer_long #scnt + 25
repeat
if #menubutton = pause
gosub pause
cmpPix 1 f
{
gosub healpet
}
finditem %killit
until #findcnt < 1 || #scnt > %safety_timer_long