사용법은 밑에글 읽고 오세요~~
https://tailstar.net/hiromacro_best/22063307

수정된것들
- log값 대부분 삭제
log가 많으면 히로매크로나 나중에 자동으로 꺼지더군요...
만약 색값 안맞으면 1.1버젼으로 색값 따오셔서 바꾸세요~!
-메세지 페메대신 toast로 대체
-루프 오류 수정

//자동모험 좌표
var #auto_m_x 214
var #auto_m_y  892
//자동모험 클릭 컬러
var #auto_m_r 0
var #auto_m_g 0
var #auto_m_b 0

//시작하기 좌표
var #start_x 89
var #start_y 1247

//자동모험 확인 버튼
var #ok_x 156
var #ok_y 1108

//영웅관리 좌표
var #chan_x 73
var #chan_y 749

//30렙 업적 좌표
var #girl_x1 488
var #girl_y1 449
var #girl_x2 101
var #girl_y2 1805
//30렙 색값
var #girl_r 0
var #girl_g 0
var #girl_b 0

//영웅 30렙 확인 좌표(초월?)
var #level_x 762
var #level_y 1679
//영웅 30렙 업적컬러 
var #level_r 0
var #level_g 0
var #level_b 0


//1쫄 교체 좌표
var #1_x 809
var #1_y 340
//2쫄 교체 좌표
var #2_x 641
//3쫄 교체 좌표
var #3_x 456
//4쫄 교체 좌표
var #4_x 289
//쫄 색값
var #1_r 0
var #1_g 0
var #1_b 0
var #2_r 0
var #2_g 0
var #2_b 0
var #3_r 0
var #3_g 0
var #3_b 0
var #4_r 0
var #4_g 0
var #4_b 0

//팀 해체(팀선택) 좌표
var #but_x 69
var #but_y 1703

//내림차순 좌표
var #up_x 901
var #up_y 1804
//내림차순 색값
var #up_r 0
var #up_g 0
var #up_b 0

//1-1칸
var #1_1_x 695
var #1_1_y 831
//1-2칸
var #1_2_y 1061
//1-3칸
var #1_3_y 1293
//1-4칸
var #1_4_y 1509
//1-5칸
var #1_5_y 1725
//2-1칸
var #2_1_x 385
//3-1칸
var #3_1_x 171

//영웅 팀 설정 실패 좌표
var #f_x 575
var #f_y 1129
//데이터
var #f_r 0
var #f_g 0
var #f_b 0

//최대치 모험 불가
var #full_x 139
var #full_y 752
//최대치 모험 색값
var #full_r 0
var #full_g 0
var #full_b 0

//아무데나 터치
var #r_x 268
var #r_y 569

//오류 확인 카운트
var #count 0

//임시 변수
var #choco 0




:start

//@@@@@@@@@@@ 자동모험 확인 @@@@@@@@@@@@@@@@
//자동모험 색값 따오기

sleep 3000
getRGB #auto_m_r #auto_m_g #auto_m_b #auto_m_x #auto_m_y


//(if)값 비교
if #auto_m_r > 70
//맞으면 시작하기 터치
TouchPress 0 #start_x #start_y
sleep 1000

//확인 터치
TouchPress 0 #ok_x #ok_y
sleep 1000

else
//틀리면 자동모험 터치
TouchPress 0 #auto_m_x  #auto_m_y
sleep 2500
//시작하기 터치
TouchPress 0 #start_x #start_y
sleep 1000
//확인 터치
TouchPress 0 #ok_x #ok_y
sleep 1000

endif

:choco

//@@@@@@@@@@@@ 장비. 유닛 풀 확인 @@@@@@@@@@@@@
sleep 2000
getRGB #full_r #full_g #full_b #full_x #full_y

if #full_r == 64 and #full_g == 18 and #full_b == 2
//다참
toast @@@@@@@@@@@@@가방이 꽉 찼습니다@@@@@@@@@@@@@@@@@@@
Goto :end
endif

if #choco > 115
//에러
toast @@@@@@@@@@@@@@ 메크로 에러가 발생했습니다 @@@@@@@@@@@@
Goto :end
endif


//@@@@@@@@@@@ 30렙 업적확인 @@@@@@@@@@@@@@@@@@
#choco = #choco+1

sleep 2000
getRGB #girl_r #girl_g #girl_b #girl_x1 #girl_y1
sleep 1000
log #girl_r _girl_r
log #choco = _g_choco

if #girl_r == 232
touchpress 0 #girl_x2 #girl_y2
sleep 1000
log #choco _choco_
else
Goto :choco
endif

//영웅관리 터치
#choco = 0
sleep 1000
touchpress 0 #chan_x #chan_y
sleep 2000


//@@@@@@@@@쫄 제거@@@@@@@@@@@
//쫄1 터치
TouchPress 0 #1_x #1_y
sleep 1000
//팀해체 클릭
TouchPress 0 #but_x #but_y
sleep 1000


//쫄2 터치
TouchPress 0 #2_x #1_y
sleep 1000
//팀해체 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//쫄3 터치
TouchPress 0 #3_x #1_y
sleep 1000
//팀해체 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//쫄4 터치
TouchPress 0 #4_x #1_y
sleep 1000
//팀해체 클릭
TouchPress 0 #but_x #but_y
sleep 1000


//@@@@@@@@@@@@내림차순@@@@@@@@@@@@@@

//내림차순 색값 따오기
sleep 2000
getRGB #up_r #up_g #up_b #up_x #up_y

//(if)내림차순 확인
if #up_r =< 15
//맞으면 차순 두번 클릭
TouchPress 0 #up_x #up_y
sleep 1000
TouchPress 0 #up_x #up_y
sleep 1000
else
//틀리면 차순 한번 클릭
TouchPress 0 #up_x #up_y
sleep 1000
endif


//@@@@@@쫄 넣기@@@@@@@@@@

//@@1-1 클릭
TouchPress 0 #1_1_x #1_1_y
sleep 1000
//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #1_r #1_g #1_b #1_x #1_y
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y

if #1_r < 13
TouchPress 0 #1_x #1_y
sleep 1000
Goto :area1-1
endif

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area1-1
endif

if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area1-1
endif

if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area1-1
endif

:area1-1

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@1-2 클릭
TouchPress 0 #1_1_x #1_2_y
sleep 1000
//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area1-2
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area1-2
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area1-2
endif

:area1-2

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@1-3 클릭
TouchPress 0 #1_1_x #1_3_y
sleep 1000
//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y

sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area1-3
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area1-3
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area1-3
endif

:area1-3

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@1-4 클릭
TouchPress 0 #1_1_x #1_4_y
sleep 1000
//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area1-4
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area1-4
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area1-4
endif

:area1-4

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@1-5 클릭
TouchPress 0 #1_1_x #1_5_y
sleep 1000
//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area1-5
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area1-5
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area1-5
endif

:area1-5

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@2-1 클릭
TouchPress 0 #2_1_x #1_1_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area2-1
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area2-1
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area2-1
else
Goto :endchange2
endif

:area2-1

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@2-2 클릭
TouchPress 0 #2_1_x #1_2_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area2-2
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area2-2
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area2-2
else
Goto :endchange2
endif

:area2-2

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@2-3 클릭
TouchPress 0 #2_1_x #1_3_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area2-3
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area2-3
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area2-3
else
Goto :endchange2
endif

:area2-3

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@2-4 클릭
TouchPress 0 #2_1_x #1_4_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area2-4
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area2-4
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area2-4
else
Goto :endchange2
endif

:area2-4

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@2-5 클릭
TouchPress 0 #2_1_x #1_5_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area2-5
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area2-5
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area2-5
else
Goto :endchange2
endif

:area2-5

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@3-1 클릭
TouchPress 0 #3_1_x #1_1_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area3-1
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area3-1
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area3-1
else
Goto :endchange2
endif

:area3-1

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@3-2 클릭
TouchPress 0 #3_1_x #1_2_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area3-2
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area3-2
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area3-2
else
Goto :endchange2
endif

:area3-2

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@3-3 클릭
TouchPress 0 #3_1_x #1_3_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area3-3
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area3-3
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area3-3
else
Goto :endchange2
endif

:area3-3

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@3-4 클릭
TouchPress 0 #3_1_x #1_4_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area3-4
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area3-4
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area3-4
else
Goto :endchange2
endif

:area3-4

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000


//@@3-5 클릭
TouchPress 0 #3_1_x #1_5_y
sleep 1000

//만렙 색값 따오기
sleep 2000
getRGB #level_r #level_g #level_b #level_x #level_y
//(if)30렙 확인
if #level_r < 70
Goto :endchange1
endif

//팀선택 클릭
TouchPress 0 #but_x #but_y
sleep 1000

//1~~4쫄 공간 확인
sleep 1000
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
sleep 1000

if #2_r < 13
TouchPress 0 #2_x #1_y
sleep 1000
Goto :area3-5
endif
if #3_r < 13
TouchPress 0 #3_x #1_y
sleep 1000
Goto :area3-5
endif
if #4_r < 13
TouchPress 0 #4_x #1_y
sleep 1000
Goto :area3-5
else
Goto :endchange2
endif

:area3-5

//영웅 팀 실패 확인
TouchPress 0 #r_x #r_y
sleep1000

:endchange1
sleep 1000
KeyPress K_BACK
sleep 1000


:endchange2


//@@@@@@@@@@ 쫄부족 확인 @@@@@@@@@@@
//1~~4쫄 공간 확인
sleep 1000
getRGB #1_r #1_g #1_b #1_x #1_y
getRGB #2_r #2_g #2_b #2_x #1_y
getRGB #3_r #3_g #3_b #3_x #1_y
getRGB #4_r #4_g #4_b #4_x #1_y
log #1_r _1r_0_0_
log #2_r _2r_0_0_
log #3_r _3r_0_0_
log #4_r _4r_0_0_
sleep 1000


if #1_r < 13
Goto :erro
endif
if #2_r < 13
Goto :erro
endif
if #3_r < 13
Goto :erro
endif
if #4_r < 13
Goto :erro
else
Goto :endchange3
endif

:erro

//에러
toast @@@@@@@@@@@@ 영웅이 부족합니다 @@@@@@@@@@@@@@@@@@

:endchange3

sleep 1000
KeyPress K_BACK
sleep 1000

Goto :start

:end

답글