confirm_butcher = never auto_butcher = true rest_wait_percent = 80 explore_auto_rest = true autofight_stop = 50 autopickup_exceptions += = min_hp do crawl.process_keys('\t') coroutine.yield(true,true) hp,max_hp = you.hp() if max_turn <= 1 then crawl.mpr("turn is over") return else max_turn = max_turn - 1 end end crawl.mpr("end of macro") crawl.more_autoclear(false) end function autofight_interrupt_macro(interrupt_name) if interrupt_name == "message" then else crawl.mpr(interrupt_name) end return interrupt_name == test end chk_interrupt_macro.autofight_safe = autofight_interrupt_macro }