1
Общие вопросы / Re: Помогите с рыбалкой
« on: April 23, 2018, 03:36:41 PM »
Заработало спасибо.dramster да лишний end_if был
Добавлена тема оформления "Clickermann" для кода с подсветкой синтаксиса. Выбирается из выпадающего списка "Код" (рядом с "цвет", "размер" и "шрифт") в режиме редактирования поста. Либо просто BB-тегом "code=clickermann"
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
IF_PICTURE_IN (530, 120, 690,690, "img\nazivka.bmp", 14342874,13880520)
Это исключить фон,я так понял надо закрасить фон nazivka.bmp черным и поставить 1 цвет в исключение?
$checka = 0 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
WHILE($checka = 0)
GETSCREEN
IF_PICTURE_IN (530, 120, 690,690, "img\nazivka.bmp", 14342874,13880520)
WAITMS(300)
LCLICK($_return1, $_return2+23)
INC ($aa, 1)
WAITMS(300)
LOGWRITE ("Наживка ОК ", $aa)
ELSE
WAITMS(500)
WHEELDOWN(5)
WAITMS(500)
END_IF
// Возвращение к рыбалке
IF($aa = 6)
WAITMS(500)
$checka = 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
$aaa = 0
WAITMS(300)
$aa = 0
WAITMS(50)
LCLICK(782,120)
WAIT(8)
END_IF
END_CYC
// Рыбалка
THREAD(osnova,1) // поток основного кода
DEFINE($aa,0)
DEFINE($aaa,0)
WAIT(2)
$check1 = 0
WHILE($check1 = 0)
WAITMS(300)
GETSCREEN
IF(PXL(802,479) = 6780292)
WAITMS (500)
INC ($aaa, 1)
LOGWRITE ("Заброс ОК ", $aaa)
LCLICK(RND(386,606),RND(379,447))
WAITMS(300)
END_IF
WAITMS(3000)
GETSCREEN
IF_PICTURE_IN(350,300,780,460,"img\poplovok.bmp")
WAITMS(1000)
$check1 = 1
WAITMS(50)
MOVE($_return1+20, $_return2+15)
WAITMS(300)
END_IF
WAITMS(500)
$check2 = 0
WHILE($check2 = 0)
GETSCREEN
IF_PICTURE_IN(350,300,780,460,"img\klev.bmp")
WAITMS(100)
LCLICK($_return1+3, $_return2-3)
WAITMS(100)
logwrite("Поклёвка ОК")
WAITMS(100)
END_IF
WAITMS(100)
GETSCREEN
IF(PXL(802,479) = 6780292)
WAITMS (100)
$check2 = 1
END_IF
WAITMS(300)
// зарядка наживки
IF($aaa = 15)
WAITMS(50)
$checkb = 0
WHILE($checkb = 0)
IF(PXL(809,244) ! 1842718)
WAITMS(300)
$checkb = 1
WAITMS(300)
LCLICK(849,119)
WAIT(5)
LCLICK(611,172)
WAIT(3)
END_IF
$checka = 0
WHILE($checka = 0)
GETSCREEN
IF_PICTURE_IN (530, 120, 690,690, "img\nazivka.bmp", 14342874,13880520)
WAITMS(300)
LCLICK($_return1, $_return2+23)
INC ($aa, 1)
WAITMS(300)
LOGWRITE ("Наживка ОК ", $aa)
END_IF
ELSE
WAITMS(500)
WHEELDOWN(5)
WAITMS(500)
END_IF
// Возвращение к рыбалке
IF($aa = 6)
WAITMS(500)
$checka = 1
$aaa = 0
WAITMS(300)
$aa = 0
WAITMS(50)
LCLICK(782,120)
WAIT(8)
END_IF
END_CYC
END_CYC
END_CYC
END_CYC
END_THREAD
// Автобой
$check4 = 0
WHILE($check4 = 0)
WAITMS(500)
GETSCREEN
IF_PICTURE_IN(673,190,696,213,"img\obnova.bmp")
WAIT(RND(10,25))
LCLICK($_return1, $_return2)
WAITMS(500)
logwrite("Обновление ОК")
WAITMS(500)
END_IF
WAITMS(1500)
GETSCREEN
IF_PICTURE_IN(50,602,81,632,"img\zver.bmp")
WAITMS(100)
SETTHREAD (osnova, 2)
WAITMS (100)
logwrite("Поток ОФФ ОК")
WAITMS(500)
LCLICK($_return1, $_return2)
WAITMS(50)
logwrite("Призыв зверя ОК")
END_IF
WAITMS(1500)
GETSCREEN
IF_PICTURE_IN(642,358,666,387,"img\ok.bmp")
WAITMS(500)
LCLICK($_return1, $_return2)
WAITMS(500)
logwrite("Ок")
WAITMS(300)
END_IF
WAITMS(1500)
GETSCREEN
IF_PICTURE_IN(28,539,244,565,"img\priem.bmp")
WAITMS(500)
LCLICK($_return1, $_return2)
WAITMS(500)
logwrite("Приём ОК")
WAITMS(300)
END_IF
WAITMS(1500)
GETSCREEN
IF_PICTURE_IN(660,221,687,247,"img\boi.bmp")
WAIT(RND(1,3))
LCLICK($_return1, $_return2)
WAITMS(500)
logwrite("Удар ОК")
WAITMS(300)
END_IF
WAITMS(1500)
GETSCREEN
IF_PICTURE_IN(625,200,730,230,"img\vernutsa.bmp")
WAITMS(500)
LCLICK($_return1, $_return2)
WAITMS(500)
END_IF
WAITMS(500)
GETSCREEN
IF_PICTURE_IN(625,200,730,230,"img\vernutsa2.bmp")
WAITMS(500)
LCLICK($_return1, $_return2)
WAITMS(500)
END_IF
WAITMS(2500)
GETSCREEN
IF_PICTURE_IN (360,400, 450,450, "img\vxod.bmp")
WAITMS(150)
$check4 = 1
logwrite("Выход из боя ОК")
WAITMS(150)
END_IF
END_CYC
// Вход
$check5 = 0
WHILE($check5 = 0)
WAITMS(1500)
GETSCREEN
IF_PICTURE_IN (360,400, 450,450, "img\vxod.bmp")
WAITMS(700)
LCLICK($_return1, $_return2)
WAITMS(700)
LCLICK($_return1+15, $_return2+5)
WAITMS(700)
END_IF
WAITMS(5700)
GETSCREEN
IF(PXL(858,333) = 4735295)
WAITMS (100)
$check5 = 1
WAITMS(100)
logwrite("Вход ОК")
END_IF
WAITMS(100)
SETTHREAD (osnova, 1)
WAITMS(500)
logwrite("Поток ОК")
$check = 0
LOGSHOW (1, 100,100)
WHILE($check = 0)
$check = 0
WHILE($check = 0)
getscreen
IF_PICTURE_IN (0,0, $_xmax, $_ymax, "img1.bmp" ,8512998, 100)
TOCLIP ("Ñëîâî1")
WAITMS(50)
KEYDOWN (#CTRL) // Ctrl+V
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
KEYUP (#CTRL)
WAITMS (100)
KEYPRESS(#ENTER) // Enter
WAITMS (100)
LOGWRITE ("Ñëîâî1")
ELSE
getscreen
IF_PICTURE_IN (0,0, $_xmax, $_ymax, "img2.bmp" ,8512998, 100)
TOCLIP ("Ñëîâî2")
WAITMS(50)
KEYDOWN (#CTRL) // Ctrl+V
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
KEYUP (#CTRL)
WAITMS (100)
KEYPRESS(#ENTER) // Enter
WAITMS (100)
LOGWRITE ("Ñëîâî2")
ELSE
getscreen
IF_PICTURE_IN (0,0, $_xmax, $_ymax, "img3.bmp" ,8512998, 100)
TOCLIP ("Ñëîâî3")
WAITMS(50)
KEYDOWN (#CTRL) // Ctrl+V
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
KEYUP (#CTRL)
WAITMS (100)
KEYPRESS(#ENTER) // Enter
WAITMS (100)
LOGWRITE ("Ñëîâî3")
ELSE
getscreen
IF_PICTURE_IN (0,0, $_xmax, $_ymax, "img4.bmp" ,8512998, 100)
TOCLIP ("Ñëîâî4")
WAITMS(50)
KEYDOWN (#CTRL) // Ctrl+V
WAITMS (50)
KEYDOWN (#V)
WAITMS (50)
KEYUP (#V)
KEYUP (#CTRL)
WAITMS (100)
KEYPRESS(#ENTER) // Enter
WAITMS (100)
LOGWRITE ("Ñëîâî4")
ELSE
$check = 1
END_IF
END_CYC
GETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"vernutsa2.bmp")
LCLICK($_return1, $_return2)
WAIT(1)
END_IF
GETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"obnova.bmp")
LCLICK($_return1, $_return2)
WAIT(10)
END_IF
WAITMS (100)
END_CYC
ELSE
GETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"end.bmp")
$check = 1 // ðàçðåøàåì âûõîä èç öèêëà
WAITMS(100)
END_IF
WAITMS (50)
END_IF
GETSCREEN
WHILE(PXL (206,171) ! 255)
WAITMS (100)
GETSCREEN
END_CYC
$S_CORR = 0
waitms(8 + $S_CORR)
move(808,254)
waitms(731 + $S_CORR)
move(808,252)
waitms(11 + $S_CORR)
move(807,251)
waitms(4 + $S_CORR)
move(807,250)
waitms(11 + $S_CORR)
move(807,249)
waitms(16 + $S_CORR)
move(807,248)
waitms(13 + $S_CORR)
move(807,247)
waitms(85 + $S_CORR)
move(807,246)
waitms(6 + $S_CORR)
move(807,245)
waitms(17 + $S_CORR)
move(807,244)
waitms(14 + $S_CORR)
move(807,243)
waitms(16 + $S_CORR)
move(807,242)
waitms(16 + $S_CORR)
move(807,241)
waitms(8 + $S_CORR)
move(807,240)
waitms(8 + $S_CORR)
move(807,239)
waitms(19 + $S_CORR)
move(808,239)
waitms(1 + $S_CORR)
move(808,238)
waitms(3 + $S_CORR)
move(808,237)
waitms(7 + $S_CORR)
move(809,236)
waitms(9 + $S_CORR)
move(810,236)
waitms(7 + $S_CORR)
move(810,235)
waitms(8 + $S_CORR)
move(811,234)
waitms(6 + $S_CORR)
move(811,233)
waitms(7 + $S_CORR)
move(812,232)
waitms(9 + $S_CORR)
move(813,231)
waitms(7 + $S_CORR)
move(814,229)
waitms(9 + $S_CORR)
move(814,228)
waitms(8 + $S_CORR)
move(815,226)
waitms(17 + $S_CORR)
move(816,225)
waitms(5 + $S_CORR)
move(817,223)
waitms(12 + $S_CORR)
move(818,222)
waitms(4 + $S_CORR)
move(818,220)
waitms(10 + $S_CORR)
move(820,218)
waitms(5 + $S_CORR)
move(822,215)
waitms(9 + $S_CORR)
move(825,212)
waitms(6 + $S_CORR)
move(827,209)
waitms(7 + $S_CORR)
move(831,206)
waitms(9 + $S_CORR)
move(834,203)
waitms(8 + $S_CORR)
move(838,201)
waitms(8 + $S_CORR)
move(842,198)
waitms(25 + $S_CORR)
move(844,196)
waitms(1 + $S_CORR)
move(846,193)
waitms(1 + $S_CORR)
move(849,191)
waitms(4 + $S_CORR)
move(851,189)
waitms(6 + $S_CORR)
move(852,188)
waitms(9 + $S_CORR)
move(852,187)
waitms(7 + $S_CORR)
move(853,187)
waitms(8 + $S_CORR)
move(338,315)
waitms(14 + $S_CORR)
move(338,316)
waitms(170 + $S_CORR)
move(339,316)
waitms(30 + $S_CORR)
move(340,317)
waitms(37 + $S_CORR)
move(341,317)
waitms(32 + $S_CORR)
move(341,318)
waitms(250 + $S_CORR)
lDown(341,318)
waitms(136 + $S_CORR)
lUp(341,318)
waitms(3706 + $S_CORR)
// deleted
waitms(1 + $S_CORR)
// deleted
waitms(318 + $S_CORR)
// deleted
waitms(20 + $S_CORR)
keyUp(17)
waitms(0 + $S_CORR)
keyUp(83)
waitms(0 + $S_CORR)
keyUp(162)
END_IF
END_CYC
2 Авто БОЙGETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"priem.bmp")
LCLICK($_return1, $_return2)
WAIT(2)
GETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"ok.bmp")
LCLICK($_return1, $_return2)
WAIT(1)
END_IF
GETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"boi.bmp")
LCLICK($_return1, $_return2)
WAIT(4)
END_IF
GETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"vernutsa.bmp")
LCLICK($_return1, $_return2)
WAIT(1)
END_IF
GETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"vernutsa2.bmp")
LCLICK($_return1, $_return2)
WAIT(1)
END_IF
GETSCREEN
IF_PICTURE_IN(0,0,$_xmax,$_ymax,"obnova.bmp")
LCLICK($_return1, $_return2)
WAIT(10)
END_IF