Добрый день,прошу Вас помочь начинающему пользователю,в освоении столь бесценной программы как Кликерман,код рабочий, написал сам, но очень длинный получился,кто может подскажите как его сократить,буду рад любой помощи,критике,подсказкам
[spoiler]
/////////////перезагрузка//////////////////////
IF($time1 < $_time_t)
GETSCREEN(210,274,304,304)
IF_PICTURE_IN (210,274,304,304, "островной\домой.bmp", -1, 70)
WAIT(1)
LCLICK($_return1+RND(5,20), $_return2+RND(1,5))
WAITMS(1000)
GETSCREEN
IF_PIXEL_IN(239,210,241,212, 10547455 )
WAITMS(200)
LCLICK(RND(737,750), RND(45,50))
WAITMS(200)
LCLICK(RND(1139,1149), RND(157,235))
WAITMS(35000)
$time1 = $_time_t + (RND(1500,1800))
END_IF
END_IF
END_IF
/////////////////бой//////////////////////////
SUB(boy)
GETSCREEN (432,144,660,249)
IF_PICTURE_IN(503,169,624,220, "островной\ход.bmp", -1, 40)
MOVE(RND(496,515,),RND(181,194))
WAITMS(RND(150,370))
$check = 0 // выключатель
$time2 = $_time_t + 5 // таймер
WHILE(($check = 0) & ($time2 > $_time_t)) // условие цикла
GETSCREEN(590,642,644,692)
IF_PICTURE_IN (590,642,644,692, "пещера\снежок5.bmp", -1, 20)
$check = 1
Else
WAITMS(50)
END_IF
END_CYC
GETSCREEN(590,642,644,692)
IF_PICTURE_IN (590,642,644,692, "пещера\снежок5.bmp", -1, 20)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
$check = 0 // выключатель
$time3 = $_time_t + 5 // таймер
WHILE(($check = 0) & ($time3 > $_time_t)) // условие цикла
GETSCREEN(503,175,622,215)
IF_PICTURE_IN (503,175,622,215, "островной\победа.bmp", -1, 70)
$check = 1
Else
WAITMS(50)
END_IF
END_CYC
GETSCREEN (696,586,749,641)
IF_PICTURE_IN (696,586,749,641, "пещера\снежок2.bmp", -1, 20)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(50,70))
GETSCREEN(749,586,802,641)
IF_PICTURE_IN (749,586,802,641, "пещера\снежок3.bmp", -1, 20)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(50,70))
GETSCREEN(803,586,855,641)
IF_PICTURE_IN (803,586,855,641, "пещера\снежок4.bmp", -1, 20)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(50,70))
GETSCREEN(645,588,697,644)
IF_PICTURE_IN (645,588,697,644, "пещера\снежок1.bmp", -1, 20)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(50,70))
GETSCREEN(270,641,331,695)
IF_PICTURE_IN (270,641,331,695, "пещера\плевок.bmp", -1, 90)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(3500,3700))
GETSCREEN(593,590,645,643)
IF_PICTURE_IN (593,590,645,643, "пещера\мана.bmp", -1, 90)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(2050,2070))
GETSCREEN (325,587,380,640)
IF_PICTURE_IN (325,587,380,640, "пещера\квадрат.bmp", -1, 90)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(1050,1070))
LCLICK(RND(471,658),RND(263,473))
WAITMS(RND(2050,2370))
GETSCREEN (327,638,382,695)
IF_PICTURE_IN (327,638,382,695, "пещера\печать.bmp", -1, 90)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(2050,2070))
GETSCREEN(379,586,435,640)
IF_PICTURE_IN (379,586,435,640, "пещера\крест.bmp", -1, 70)
LCLICK($_return1+RND(5,20), $_return2+RND(1,25))
WAITMS(RND(1050,1070))
LCLICK(RND(471,658),RND(263,473))
WAITMS(RND(1050,1070))
ELSE
GETSCREEN(503,175,622,215)
IF_PICTURE_IN (503,175,622,215, "островной\победа.bmp", -1, 60)
WAITMS(1500)
LCLICK(RND(503,514), RND(182,194))
WAITMS(100)
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_IF
END_SUB
//////////////////////дроп/////////////////////////
SUB(drop)
GETSCREEN(457,408,511,469)
IF_PICTURE_IN (457,408,511,469, "островной\лимб.bmp", -1, 100)
LCLICK(RND(469,497),(RND(424,440))
WAITMS(300)
GETSCREEN(518,416,616,500)
IF_PICTURE_IN (518,416,616,500, "забрать.bmp", -1, 70)
LCLICK(RND(536,570),$_return2)
WAITMS(RND(2500,2700))
GETSCREEN(550,557,608,635)
IF_PICTURE_IN (550,557,608,635, "пещера\пусторюк.bmp", -1, 60)
WAITMS(300)
ELSE
LCLICK(RND(564,591),(RND(589,618))
WAITMS(700)
GETSCREEN(25,406,1010,774)
IF_PICTURE_IN (25,406,1010,774, "пещера\обьеденить.bmp", -1, 90)
LCLICK(RND(628,675),$_return2)
WAITMS(2000)
LCLICK(RND(564,591),(RND(589,618))
WAITMS(800)
GETSCREEN(570,487,710,670)
IF_PICTURE_IN (570,487,710,670, "пещера\всундук.bmp", -1, 90)
LCLICK(RND(628,666),$_return2)
WAITMS(RND(3000,3200))
ELSE
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
END_IF
IF_PICTURE_IN (457,408,511,469, "островной\нагрудник.bmp", -1, 100)
LCLICK(RND(469,497),(RND(424,440))
WAITMS(300)
GETSCREEN(500,416,622,500)
IF_PICTURE_IN (500,416,622,500, "забрать.bmp", -1, 70)
LCLICK(RND(536,570),$_return2)
WAITMS(RND(2500,2700))
GETSCREEN(550,557,608,635)
IF_PICTURE_IN (550,557,608,635, "пещера\пусторюк.bmp", -1, 60)
WAITMS(300)
ELSE
LCLICK(RND(564,591),(RND(589,619))
WAITMS(700)
GETSCREEN(25,406,1010,774)
IF_PICTURE_IN (25,406,1010,774, "пещера\обьеденить.bmp", -1, 90)
LCLICK(RND(628,675),$_return2)
WAITMS(2000)
LCLICK(RND(564,591),(RND(589,619))
WAITMS(800)
GETSCREEN(570,487,710,625)
IF_PICTURE_IN (570,487,710,625, "пещера\всундук.bmp", -1, 90)
LCLICK(RND(628,666),$_return2)
WAITMS(RND(3000,3200))
ELSE
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
END_IF
IF_PICTURE_IN (457,408,511,469, "пещера\ветка.bmp", -1, 90)
LCLICK(RND(469,497),(RND(424,440))
WAITMS(300)
GETSCREEN(518,416,616,500)
IF_PICTURE_IN (518,416,616,500, "забрать.bmp", -1, 70)
LCLICK(RND(536,570),$_return2)
WAITMS(RND(2500,2700))
GETSCREEN(550,557,608,635)
IF_PICTURE_IN (550,557,608,635, "пещера\пусторюк.bmp", -1, 60)
WAITMS(300)
ELSE
LCLICK(RND(564,591),(RND(589,618))
WAITMS(700)
GETSCREEN(25,406,1010,774)
IF_PICTURE_IN (25,406,1010,774, "пещера\обьеденить.bmp", -1, 90)
LCLICK(RND(628,675),$_return2)
WAITMS(2000)
LCLICK(RND(564,591),(RND(589,618))
WAITMS(800)
GETSCREEN(610,590,695,657)
IF_PICTURE_IN (610,590,695,657, "пещера\всундук.bmp", -1, 90)
LCLICK(RND(628,666),$_return2)
WAITMS(RND(3000,3200))
ELSE
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
END_IF
GETSCREEN(457,408,511,469)
IF_PICTURE_IN (457,408,511,469, "пещера\мифрил.bmp", -1, 90)
LCLICK(RND(469,497),(RND(424,440))
WAITMS(300)
GETSCREEN(518,416,616,500)
IF_PICTURE_IN (518,416,616,500, "забрать.bmp", -1, 70)
LCLICK(RND(536,570),$_return2)
WAITMS(RND(2500,2700))
GETSCREEN(550,557,608,635)
IF_PICTURE_IN (550,557,608,635, "пещера\пусторюк.bmp", -1, 60)
WAITMS(300)
ELSE
LCLICK(RND(564,591),(RND(589,618))
WAITMS(700)
GETSCREEN(25,406,1010,774)
IF_PICTURE_IN (25,406,1010,774, "пещера\обьеденить.bmp", -1, 90)
LCLICK(RND(628,675),$_return2)
WAITMS(2000)
LCLICK(RND(564,591),(RND(589,618))
WAITMS(800)
GETSCREEN(610,590,695,657)
IF_PICTURE_IN (610,590,695,657, "пещера\всундук.bmp", -1, 90)
LCLICK(RND(628,666),$_return2)
WAITMS(RND(3000,3200))
ELSE
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
END_IF
IF_PICTURE_IN (457,408,511,469, "пещера\купон.bmp", -1, 90)
LCLICK(RND(469,497),(RND(424,440))
WAITMS(300)
GETSCREEN(518,416,616,500)
IF_PICTURE_IN (518,416,616,500, "забрать.bmp", -1, 70)
LCLICK(RND(536,570),$_return2)
WAITMS(RND(2500,2700))
GETSCREEN(550,557,608,635)
IF_PICTURE_IN (550,557,608,635, "пещера\пусторюк.bmp", -1, 60)
WAITMS(300)
ELSE
LCLICK(RND(564,591),(RND(589,618))
WAITMS(700)
GETSCREEN(25,406,1010,774)
IF_PICTURE_IN (25,406,1010,774, "пещера\обьеденить.bmp", -1, 90)
LCLICK(RND(628,675),$_return2)
WAITMS(2500)
LCLICK(RND(564,591),(RND(589,618))
WAITMS(800)
GETSCREEN(570,487,710,664)
IF_PICTURE_IN (570,487,710,664, "пещера\всундук.bmp", -1, 90)
LCLICK(RND(628,666),$_return2)
WAITMS(RND(3000,3200))
ELSE
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
END_IF
IF_PICTURE_IN (457,408,511,469, "пещера\озверин.bmp", -1, 90)
LCLICK(RND(469,497),(RND(424,440))
WAITMS(300)
GETSCREEN(518,416,616,500)
IF_PICTURE_IN (518,416,616,500, "забрать.bmp", -1, 70)
LCLICK(RND(536,570),$_return2)
WAITMS(RND(2500,2700))
GETSCREEN(550,557,608,635)
IF_PICTURE_IN (550,557,608,635, "пещера\пусторюк.bmp", -1, 60)
WAITMS(300)
ELSE
LCLICK(RND(564,591),(RND(589,618))
WAITMS(700)
GETSCREEN(25,406,1010,774)
IF_PICTURE_IN (25,406,1010,774, "пещера\обьеденить.bmp", -1, 90)
LCLICK(RND(628,675),$_return2)
WAITMS(2000)
LCLICK(RND(564,591),(RND(589,618))
WAITMS(800)
GETSCREEN(570,487,710,670)
IF_PICTURE_IN (570,487,710,670, "пещера\всундук.bmp", -1, 90)
LCLICK(RND(628,666),$_return2)
WAITMS(RND(3000,3200))
ELSE
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
END_IF
IF_PICTURE_IN (457,408,511,469, "пещера\проклятие.bmp", -1, 90)
LCLICK(RND(469,497),(RND(424,440))
WAITMS(300)
GETSCREEN(518,416,616,500)
IF_PICTURE_IN (518,416,616,500, "забрать.bmp", -1, 70)
LCLICK(RND(536,570),$_return2)
WAITMS(RND(2500,2700))
GETSCREEN(550,557,608,635)
IF_PICTURE_IN (550,557,608,635, "пещера\пусторюк.bmp", -1, 60)
WAITMS(300)
ELSE
LCLICK(RND(564,591),(RND(589,618))
WAITMS(700)
GETSCREEN(25,406,1010,774)
IF_PICTURE_IN (25,406,1010,774, "пещера\обьеденить.bmp", -1, 90)
LCLICK(RND(628,675),$_return2)
WAITMS(2000)
LCLICK(RND(564,591),(RND(589,618))
WAITMS(800)
GETSCREEN(570,487,710,670)
IF_PICTURE_IN (570,487,710,670, "пещера\всундук.bmp", -1, 90)
LCLICK(RND(628,666),$_return2)
WAITMS(RND(3000,3200))
ELSE
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
END_IF
IF_PICTURE_IN (457,408,511,469, "пещера\агония.bmp", -1, 90)
LCLICK(RND(469,497),(RND(424,440))
WAITMS(300)
GETSCREEN(518,416,616,500)
IF_PICTURE_IN (518,416,616,500, "забрать.bmp", -1, 70)
LCLICK(RND(536,570),$_return2)
WAITMS(RND(2500,2700))
GETSCREEN(550,557,608,635)
IF_PICTURE_IN (550,557,608,635, "пещера\пусторюк.bmp", -1, 60)
WAITMS(300)
ELSE
LCLICK(RND(564,591),(RND(589,618))
WAITMS(700)
GETSCREEN(25,406,1010,774)
IF_PICTURE_IN (25,406,1010,774, "пещера\обьеденить.bmp", -1, 90)
LCLICK(RND(628,675),$_return2)
WAITMS(2000)
LCLICK(RND(564,591),(RND(589,618))
WAITMS(800)
GETSCREEN(570,487,710,670)
IF_PICTURE_IN (570,487,710,670, "пещера\всундук.bmp", -1, 90)
LCLICK(RND(628,666),$_return2)
WAITMS(RND(3000,3200))
ELSE
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
END_IF
GETSCREEN (577,485,681,518)
IF_PICTURE_IN (577,485,681,518, "пещера\выйти.bmp", -1, 90)
LCLICK(RND(596,663),(RND(497,507))
WAITMS(300)
MOVE(RND(982,1073),(RND(240,533))
WAITMS(200)
GETSCREEN(703,510,819,540)
IF_PICTURE_IN (703,510,819,540, "островной\продать.bmp", -1, 90)
LCLICK(RND(741,780),(RND(522,527))
WAITMS(1000)
MOVE(RND(982,1073),(RND(240,533))
WAITMS(50)
ELSE
IF_PICTURE_IN (703,510,819,540, "островной\выбросить.bmp", -1, 90)
LCLICK(RND(741,780),(RND(522,527))
WAITMS(800)
MOVE(RND(982,1073),(RND(240,533))
WAITMS(50)
IF_PICTURE_IN (577,485,681,518, "пещера\выйти.bmp", -1, 70)
LCLICK(RND(596,663),(RND(497,507))
WAITMS(200)
MOVE(RND(982,1073),(RND(240,533))
END_IF
END_IF
END_IF
END_IF
GETSCREEN (577,485,681,518)
IF_PICTURE_IN (577,485,681,518, "пещера\выйти.bmp", -1, 90)
LCLICK(RND(596,663),(RND(497,507))
WAITMS(300)
MOVE(RND(982,1073),(RND(240,533))
WAITMS(200)
END_IF
END_SUB
[/spoiler]