private TaskResult RunStep7(TaskContext arg) { Role role = (Role)Role; role.GoToMap("副本"); int count = 0; while (true) { if (Dm.FindPicAndClick(116, 72, 936, 351, @"\bmp\战斗.bmp") || Dm.FindMultiColorAndClick(122, 58, 318, 196, "ffb40b", "19|-17|ffb814,35|0|ffb40b-202020,34|-34|fff303-202020,25|-25|ffdd12,26|-4|ff8804,8|-7|ff9907,28|-29|ffe009", 17, 59)) { count = 0; if (role.GoToFighting() == false) { Dm.DebugPrint("装备不够好或等级不够,提升实力再来!"); break; } } else { count++; if (count > 5) { break; } Dm.Swipe(670, 427, 93, 427); //向右划 Dm.Delay(1000); } Dm.Delay(2000); } role.CloseWindow(); return(TaskResult.Success); }