--------------------------------------------------------------------------------------------
Sleep(3000)
act1 = ImageSearch('check')
act2 = ImageSearch('느낌표')
if act1 == 1 or act2 == 1 then
Mouse(LBUTTON, CLICK, 182, 760)
Sleep(2500)
ballooncheck1 = ImageSearch('열기구')
ballooncheck2 = ImageSearch('열기구느낌표')
if ImageSearch('기차체크') or ImageSearch('기차느낌표') then
Mouse(LBUTTON, CLICK, 184, 601)
Sleep(3000)
Mouse(LBUTTON, CLICK, 447, 265)
print('첫번째 기차')
Sleep(2000)
Mouse(LBUTTON, CLICK, 447, 441)
print('두번째 기차')
Sleep(2000)
Mouse(LBUTTON, CLICK, 447, 618)
print('세번째 기차')
Sleep(2500)
ret2 = ImageSearch('trail')
while ret2 == 1 do
Sleep(1000)
ImageClick('trail')
ret2 = ImageSearch('trail')
end
exit = ImageSearch('cookie')
while exit == 0 do
Sleep(5000)
Mouse(LBUTTON, CLICK, 1058, 34)
Sleep(2000)
exit = ImageSearch('cookie')
if exit == 1 then
print('기차 빠져나가기')
end
end
end
if ballooncheck1 == 1 or ballooncheck2 == 1 then
Mouse(LBUTTON, CLICK, 182, 507)
Sleep(2500)
Mouse(LBUTTON, CLICK, 548, 771)
Sleep(2500)
Mouse(LBUTTON, CLICK, 548, 771)
Sleep(2500)
Mouse(LBUTTON, CLICK, 548, 771)
Sleep(500)
ImageClick('열기구시작')
exit = ImageSearch('cookie')
while exit == 0 do
Sleep(5000)
Mouse(LBUTTON, CLICK, 1058, 34)
Sleep(2000)
exit = ImageSearch('cookie')
if exit == 1 then
print('열기구 빠져나가기')
end
end
end
end
Sleep(3000)
if ImageSearch('cookie') then
Sleep(2000)
ImageClick('cookie')
print('쿠키목록 누르기')
Sleep(2000)
if ImageSearch('activecookie') then
Sleep(1500)
Mouse(LBUTTON, CLICK, 503, 260)
print('퓨어바닐라 누르기 - 중심이동')
Sleep(1500)
ret3 = ImageSearch('생산확인')
while ret3 == 0 do
print('생산건물 찾기')
Sleep(3500)
Mouse(LBUTTON, CLICK, 531, 399)
Sleep(2000)
ret3 = ImageSearch('생산확인')
if ret3 == 1 then
print('=========생산시작=========')
EnableImage(true, '시간액션')
EnableImage(true, '시작')
break
end
end
end
end