Доброе утро. так тоже лепил. Скрипт раз проходит и идёт перезагрузка не по времени указанному. Сам скрипт простой работает без ошибок. Вот сам скрипт --lua math.randomseed(os.clock()) local handle = findwindow(' версия: 33.0') if handle then workwindow(handle[1][1]) showwindow(handle[1][1]) windowpos(1, 1, 1366, 768) else log('Окно не найдено') end
::nachalo:: -- НАЧАЛО СКРИПТА if color (922, 146, "abs") == 7036372 then wait (300 + math.random (200)) -- сделать паузу kleft (930, 140, "abs") end
while color(478, 90, "abs") ~= 14064229 or color(848, 84, "abs") ~= 2693318 do -- ЖДАТЬ wait(500 + math.random(200)) end
if color (441, 544, "abs") == 5391045 or color(360, 568, 'abs') == 4147038 then -- wait (700 + math.random (200)) -- сделать паузу kleft (416, 600, "abs") -- wait (700 + math.random (200)) -- сделать паузу kleft (771, 389, "abs") -- end
wait (700 + math.random (200)) -- сделать паузу
while color(796, 573, "abs") ~= 13947091 do -- wait (700 + math.random (200)) -- сделать паузу end
local a = findcolor ("763, 539 1035, 650 ( 12156487 ) %arr 2 abs") if a > 0 then wait (100 + math.random (100)) -- сделать паузу kleft (arr[1][1], arr[1][2]) end
kleft (1270, 612, "abs") -- УДАР в СТОРОНУ
while color(703, 561, "abs") ~= 3362157 do -- wait (700 + math.random (200)) -- сделать паузу end
wait (700 + math.random (200)) -- сделать паузу
if color(872, 349, 'abs') == 278677 or color(873, 353, 'abs') == 10034264 or color(871, 352, 'abs') == 9852706 then wait(100 + math.random(200)) kleft(877, 349, 'abs') wait(570 + math.random(200)) kleft(1046, 394, 'abs') end wait(570 + math.random(200))
if color (948, 400, "abs") == 2960685 then wait (500 + math.random (200)) -- сделать паузу kleft (1075, 85, "abs") end wait (300 + math.random (200)) -- сделать паузу
goto nachalo -- НАЧАЛО СКРИПТА
|