매크로

조회 수 572 추천 0 댓글 2
?

안녕하세요~ 별되 유저 인데요.

요새 이 사이트를 알게 된 뒤로 메크로에 맛이 들려서 열심히 이것저것

건드리면서 공부하다가 문제에 부딪혔어요ㅠ


태환은린님이 올려주신

"심연레이드 장비무시" 메크로에다가

장비판매기능을 더해볼려고 열심히 만들었는데, 정상 작동을 안하는 거 같아요.


레이드 보스잡는 도중인데, 자꾸 인벤 정리할 때 설정해놓은?문구(toast)가 떠요.

뭔가 순서가 어그러진 느낌인데, 왜 그런지 도저히 모르겠네요.


일단 제가 수정한 스크립트에요.


DEVICE: Samsung Galaxy Note 3 - 4.3 - API 18 - 1080x1920 4.3
SCREEN_SIZE: 480x800


var #color 0


//모험 대기
var #mainx 109
var #mainy 779
var #mainc 5346447


//레이드 대기 화면
var #main1x 419
var #main1y 331
var #main1c 9689578


//모험하기
var #gox 33
var #goy 780


//레이드 입장
var #go1x 228
var #go1y 738


//레이드 신청
var #go2x 49
var #go2y 726


//장비칸부족 팝업
var #shopx 167
var #shopy 451
var #shopc 5923441


//장비창 확인
var #shopxx 367
var #shopxy 28
var #shopxc 1137887


//레이드 입장 확인
var #go3x 162
var #go3y 411


//레이드 실패
var #goxx 321
var #goxy 175
var #goxc 923941


//죽었다
var #diex 399
var #diey 25
var #diec 0


//레이드 거절
var #goxxx 151
var #goxxy 767
var #goxxc 3356048


//사냥터에서 멈춤
var #exitx 265
var #exity 720
var #exitc 9615284


//수락 확인
var #okx 158
var #oky 517


//거절 취소
var #nox 155
var #noy 356


//나가기
var #exit1x 59
var #exit1y 38


//여기서부터 시작
//매크로 시작 라벨
:start
sleep 100


//루프 라벨
:loop
sleep 10


//메인화면
:go
sleep 100
getcolor #color #mainx #mainy
sleep 50
if #color == #mainc
toast 메인 화면 대기
sleep 1000
toast 레이드 시작
sleep 100
touchpress 0 #gox #goy
sleep 3000
touchpress 0 #go1x #go1y
sleep 2000
goto:shop
endif

//레이드 입장버튼 누른 후 무조건 shop으로 이동


//장비칸부족 팝업

//장비부족하다는 팝업 떳으면 확인 누른 후 shopgo로 이동

//아니면 go1로 이동
:shop
sleep 50
getcolor #color #shopx #shopy
sleep 50
if #color == #shopc
sleep 50
toast 가방 빈칸 부족
sleep 1000
touchpress 0 #shopx #shopy
sleep 100
touchpress 0 #exit1x #exit1y
sleep 1000
touchpress 0 43 119
sleep 5000
goto :shopgo
else
sleep 500
goto:go1
endif


//레이드 메인화면
:go1
sleep 1000
getcolor #color #main1x #main1y
sleep 500
if #color > 9680000 and #color < 9690000
toast 레이드 대기 화면
sleep 1000
toast 레이드 시작
sleep 100
touchpress 0 #go2x #go2y
sleep 1000
touchpress 0 #go3x #go3y
sleep 15000
goto:gogo
endif

//레이드 대기화면 맞으면 레이드 신청 누르고 gogo로 이동


//레이드중 라벨

//레이드 시작 후 die인지 실패인지 확인하면서 종료 확인 될때까지 gogo 반복

//그런데 여기서 뜬금없이 1번 분석중, 2번 분석중, 3번 분석중, 4번 분석중 문구가 뜸
:gogo
sleep 500
toast 레이드 중....
sleep 100
goto:die
sleep 100
goto:gox
sleep 100
getcolor #color 64 543
if #color > 1430000 and #color < 1480000
sleep 1000
toast 모험종료 확인중
sleep 15000
goto:go
sleep 100
else
goto:gogo
sleep 500
endif


//죽었다
:die
sleep 50
getcolor #color #diex #diey
sleep 50
if #color == #diec
sleep 50
toast 죽었다 부활하자
sleep 1000
touchDown 0 51 640
sleep 100
touchUp 0
sleep 1000
touchDown 0 51 711
sleep 100
touchUp 0
sleep 1000
endif


//레이드 실패
:gox
sleep 50
getcolor #color #goxx #goxy
sleep 50
if #color == #goxc
sleep 50
toast 실패하여 돌아갑니다.
sleep 1000
touchpress 0 #nox #noy
sleep 100
touchUp 0
sleep 1000
endif


//레이드 거절하기
:goxx
sleep 50
getcolor #color #goxxx #goxxy
sleep 50
if #color == #goxxc
sleep 50
toast 레이드 거절하기
sleep 1000
touchpress 0 #goxxx #goxxy
sleep 100
touchUp 0
sleep 1000
touchpress 0 #nox #noy
sleep 100
touchUp 0
sleep 1000
else
sleep 100
goto:go
endif


//장비창확인
:shopgo
sleep 3000
getcolor #color #shopxx #shopxy
sleep 500
if #color == #shopxc
sleep 1000
toast 장비 판매 시작
goto:1ven1
endif

//인벤창이 맞으면 1ven1로 이동


//1번가방
:1ven1
sleep 1000
getcolor #color 393 736
toast 1번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 393 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:1ven2
endif

//1인벤 1아이템(첫번째 가방?첫째줄 4번째 아이템)?감정 후 파란색이나 보라색이면 등급판매

//판매 후 loop로 이동

//아니면 1ven2로 이동


:1ven2
sleep 1000
getcolor #color 305 736
toast 2번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 305 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:1ven3
endif

//1인벤 2아이템(첫번째 가방?둘째줄 4번째 아이템)?감정 후 파란색이나 보라색이면 등급판매

//판매 후 loop로 이동

//아니면 1ven3로 이동


:1ven3
sleep 1000
getcolor #color 218 736
toast 3번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 218 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:1ven4
endif


:1ven4
sleep 1000
getcolor #color 128 736
toast 4번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 128 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:2ven1
endif


//2번가방
:2ven1
sleep 1000
touchpress 0 58 649
sleep 3000
getcolor #color 393 736
toast 1번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 393 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:2ven2
endif


:2ven2
sleep 1000
getcolor #color 305 736
toast 2번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 305 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:2ven3
endif


:2ven3
sleep 1000
getcolor #color 218 736
toast 3번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 218 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:2ven4
endif


:2ven4
sleep 1000
getcolor #color 128 736
toast 4번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 128 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:3ven1
endif


//3번가방
:3ven1
sleep 1000
touchpress 0 58 649
sleep 3000
getcolor #color 393 736
toast 1번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 393 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:3ven2
endif


:3ven2
sleep 1000
getcolor #color 305 736
toast 2번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 305 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:3ven3
endif


:3ven3
sleep 1000
getcolor #color 218 736
toast 3번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 218 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:3ven4
endif


:3ven4
sleep 1000
getcolor #color 128 736
toast 4번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 128 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:4ven1
endif


//4번가방
:4ven1
sleep 1000
touchpress 0 58 649
sleep 3000
getcolor #color 393 736
toast 1번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 393 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:4ven2
endif


:4ven2
sleep 1000
getcolor #color 305 736
toast 2번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 305 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:4ven3
endif


:4ven3
sleep 1000
getcolor #color 218 736
toast 3번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 218 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:4ven4
endif


:4ven4
sleep 1000
getcolor #color 128 736
toast 4번 분석 중
sleep 1000
if #color > 16700000 and #color < 16800000
sleep 1000
touchpress 0 128 701
sleep 1000
touchpress 0 43 533
sleep 1000
touchpress 0 161 314
sleep 10000
touchpress 0 56 36
sleep 1000
goto:loop
else
goto:loop
endif


//사냥터에서 멈춤
:exit
sleep 50
getcolor #color #exitx #exity
sleep 50
if #color == #exitc
sleep 50
toast 사냥터에서 멈춰서 돌아감
sleep 1000
touchDown 0 62 34
sleep 100
touchUp 0
sleep 1000
else
sleep 100
goto:go
endif


goto :loop

:end


  • 루진 2014.11.01 22:03

    저랑 똑같은 문제를 겪고 계시는군요 ㅠㅠ

  • 천우 2014.11.13 12:35

    이거... 수정해서.. 사용중이였는데... 생각없이 디바이스삭제.. ㅜㅜ


List of Articles
분류 제목 글쓴이 최근변경 추천
질문 별되 피닉스 좌표좀 알려주실 고수님 ㅠ 4 유키 2014.11.23 0/0
질문 태환은린님 ova는 색값 자동설정인데요? 3 우후훅 2014.11.02 0/0
질문 별되 스크립트 수정했는데 잘 안되네요. 한번 봐주세요. 2 장춘자 2014.11.13 0/0
질문 히로 매크로를 돌리는데 반달곰벌레 2014.11.01 0/0
질문 블랙으로 히로매크로 slsl 2014.11.01 0/0
질문 태환은린님 스스스 작업에 대해서 ㅠ 3 아나바리 2014.11.03 0/0
질문 스크립트를 삭제는 어떻게하나요? 1 히라요나 2014.11.01 0/0
질문 히로매크로 특정부분 색값0.. 왜이러죠? 2 우후훅 2014.11.02 1/0
질문 히로매크로는 아이템 자동판매 스크립트가 아직 없나요?? 2 이자쓱이 2014.11.14 0/0
질문 단순 녹화기능으로 짠건 반복이 안되나요? 2 크레이 2014.11.01 0/0
질문 스크립트에 대해 질문이 있습니다~! 3 므흣행 2014.11.14 0/0
자유 매크로 문제 도움좀ㅜㅜ 2 커아 2014.11.02 0/0
질문 매크로 좀 도와주세요 3 qpqdi 2014.11.01 0/0
질문 자동으로 루트 권한 부여가 안되는데요.. 2 옥수수 2014.11.01 0/0
질문 스크립트가 씹히는(?) 상황인거 같은데 뭐가 문제인거죠?? 2 초지검 2014.11.16 0/0
질문 밑에 심연 스크랩트 수정하는거보고따라햇는데요 ㅠㅠ.. 3 내얼굴인데예 2014.11.01 0/0
정보 왕초보의 히로매크로 도전하기 23 epox 2015.03.19 2/0
질문 별이되어라 히로매크로 스크립트 수정 질문좀 할께요 4 헬로우 2014.11.01 0/0
질문 도아주십시오 고수님들!! 라용용 2014.10.31 0/0
질문 그.. 매크로 돌릴려고 했는데 사냥중...뜨면서 4 내얼굴인데예 2014.10.31 0/0
Board Pagination Prev 1 ... 109110111112113114115116117 ... 123 Next
/ 123

전체 최신 인기글

전체 주간 인기글