매크로

조회 수 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
분류 제목 글쓴이 최근변경 추천
질문 ★급합니다ㅠ 친구선택 스크립트 질문입니다. 고수님들 8 쒜트리 2014.12.01 0/0
질문 ★고수님들 확인좀 부탁 드립니다.★ 2 대청 2016.04.16 0/0
자유 [태환님!]40살넘은 노땅이라그런지 이제점점힘들어지네... 16 튀니지사람들 2014.12.04 0/0
정보 [지니모션 400x800] 별이되어라 미궁 스크립트 4 신기루001 2015.07.16 1/0
정보 [지니모션 400x800] 별이되어라 레이드 초대받기 1 신기루001 2015.08.19 0/0
자유 [잡담] 오랜만에 놀러왔습니다 그런데 1렙이네요;; 9 epox 2022.05.06 0/0
질문 [수정2차 성공] 스크립트 질문드립니다. 9 두매력 2015.08.03 0/0
자유 [세븐나이츠]세븐나이츠 매크로입니다. 13 Skmc37 2015.11.30 1/0
자유 [세븐나이츠] 업뎃내용 반영했습니다. 10 Skmc37 2015.09.08 0/0
자유 [세븐나이츠] 밑에고수님 스크립트로 연구중인데요 2 밀레기 2015.08.23 2/0
자유 [세븐나이츠] 7-9 자동 쫄작, 30레벨 달성시 영웅교체 ... 6 Skmc37 2015.08.19 0/0
자유 [세나]레이드 매크로 3 Skmc37 2015.11.19 0/0
자유 [설명추가]패치에 대한... 가능 의견 입니다 3 르마르딘 2014.12.11 0/0
자유 [별이되어라] 히로매크로 별이되어라 색값 3 푸른빛유성 2014.12.18 0/0
자유 [별이되어라] 뭐가 어떻게 바뀐건지???? 5 hiking 2014.12.20 0/0
자유 [별이되어라] 매크로 또 막혔네요. 6 푸른빛유성 2014.12.18 0/0
정보 [별이되어라] 동료 강화 스크립트제작에 대한 개인적인... 24 하르핌 2015.01.03 2/0
질문 [별이되어라] 궁금한점 하나.. 7 하르핌 2014.12.30 0/0
자유 [별되]태환은린님의 모든던전용 수정한거 테스트 부탁... 6 천구텐구 2014.11.06 0/0
자유 [별되]오늘 처음올라온 스크립트가.... 34 원량난화 2014.12.20 0/0
Board Pagination Prev 1 ... 109110111112113114115116117 ... 123 Next
/ 123

전체 최신 인기글

전체 주간 인기글