붙여넣기시 발생되는 오류는 #붙여넣기x,#붙여넣기y 부분의 좌표를 수정하시면 됩니다.
ps.
기존 제 스크립트 사용하시는 분은 결제팝업 및 기타 색값 조정한 부분은 그대로 따오시기 바랍니다.
DEVICE: SHV-E300K 4.4.2
SCREEN_SIZE: 1080x1920
//------ 기본설정 ----------------------------------------
//던전 라운드
var #mode 5
//신발구매 하려면 1 // 안하려면 0
var #신발사요 1
//장비판매 하려면 1 // 안하려면 0
var #장비팔아요 0
//동료 가득 찼을 때 멈추려면 1 // 계속하면 0
var #동료수동강화 1
//--------------------------------------------------------
//붙여넣기
var #붙여넣기x 668
var #붙여넣기y 131
//--------------------------------------------------------
var #round 0
var #신발구매 0
//색상값
var #color 1
var #color2 1
var #color3 1
var #color4 1
var #r 1
var #g 1
var #b 1
var #r2 1
var #g2 1
var #b2 1
var #r3 1
var #g3 1
var #b3 1
var #r4 1
var #g4 1
var #b4 1
var #r5 1
var #g5 1
var #b5 1
//------ 좌표설정 ------
//여관
var #여관x 1020
var #여관y 1305
//236 206 20
//220 190 4
var #t모험하기x 69
var #t모험하기y 1818
//83 83 83
//71 71 71
var #동료관리x 75
var #동료관리y 125
//모험하기
var #모험하기x 98
var #모험하기y 1837
//255 255 255
//243 243 243
//월드맵
var #월드맵x 1027
var #월드맵y 651
//월드맵2
var #월드맵2x 1022
var #월드맵2y 1299
//255 255 255
//243 243 243
//사냥터 라벨
var #사냥터x 652
var #사냥터y 556
var #사냥터2x 951
var #사냥터2y 792
//242 223 240
//230 211 228
//신화모드
var #신화x 141
var #신화y 796
//전설모드
var #전설x 150
var #전설y 585
//영웅모드
var #영웅x 130
var #영웅y 385
//일반모드
var #일반x 136
var #일반y 218
//3번방
var #k3x 825
var #k3y 540
//4번방
var #k4x 818
var #k4y 767
//5번방
var #k5x 822
var #k5y 968
//6번방
var #k6x 584
var #k6y 991
//7번방
var #k7x 583
var #k7y 1221
//클리어
var #맵클x 802
var #맵클y 596
var #맵클2x 803
var #맵클2y 1037
var #맵클3x 554
var #맵클3y 1240
//동료획득
var #monx 67
var #mony 111
var #monc 0
//탐험성공
var #succx 710
var #succy 1250
var #succ2x 699
var #succ2y 800
//업적
var #업적x 791
var #업적y 961
//가방풀
var #가방풀x 596
var #가방풀y 595
var #가방풀2x 369
var #가방풀2y 660
//장비무시
var #장비무시x 365
var #장비무시y 1160
//동료풀
var #동료풀x 650
var #동료풀y 743
var #동료풀2x 584
var #동료풀2y 1448
//동료무시
var #동료무시x 365
var #동료무시y 1160
var #서버x 602
var #서버y 613
var #서버2x 605
var #서버2y 1273
var #서버확인x 339
var #서버확인y 936
//가방
var #11x 885
var #11y 1163
var #12x 864
var #12y 1361
var #13x 866
var #13y 1563
var #14x 867
var #14y 1759
var #21x 701
var #21y 1162
var #22x 678
var #22y 1360
var #23x 689
var #23y 1563
var #24x 682
var #24y 1756
var #31x 502
var #31y 1163
var #32x 481
var #32y 1361
var #33x 487
var #33y 1563
var #34x 484
var #34y 1758
var #41x 297
var #41y 1162
var #42x 312
var #42y 1359
var #43x 317
var #43y 1562
var #44x 302
var #44y 1759
//아이템 색깔
//빨
//214 44 26
//198 28 10
//주
//255 156 47
//240 140 31
//보
//163 68 255
//147 52 235
//파
//39 152 255
//23 136 240
//녹
//48 212 101
//32 194 85
//흰
//255 255 255
//235 235 235
//가방 작업 진행중
var #포로리x 645
var #포로리y 965
var #포로리c 16777215
//장비
var #xy 0
var #가방x 0
var #가방y 0
var #판매x 119
var #판매y 1292
var #등급판매x 353
var #등급판매y 690
var #등급판매2x 363
var #등급판매2y 838
var #낱개판매x 355
var #낱개판매y 1160
var #템닫기x 985
var #템닫기y 1760
//포션
var #소포x 583
var #소포y 526
var #소포2x 593
var #소포2y 862
var #대포x 611
var #대포y 529
var #대포2x 596
var #대포2y 895
var #특대포x 608
var #특대포y 534
var #특대포2x 592
var #특대포2y 847
//신발경고
var #shoex 325
var #shoey 625
var #shoe1x 355
var #shoe1y 855
//친구창
var #친구x 798
var #친구y 1253
var #친구선택x 780
var #친구선택y 1393
//나가기
var #나가기x 135
var #나가기y 100
//-------- 팝업 --------
//자정팝업
var #체크x 80
var #체크y 120
var #체크c 12434877
var #자정하단1x 66
var #자정하단1y 688
//238 238 238
//222 222 222
var #자정하단2x 66
var #자정하단2y 1242
//238 238 238
//222 222 222
var #체크확인x 65
var #체크확인y 965
var #자정확인x 100
var #자정확인y 965
//출석
var #출석하단1x 153
var #출석하단1y 502
//230 208 158
//214 192 142
var #출석하단2x 149
var #출석하단2y 1258
//226 202 152
//210 186 136
var #출석확인x 145
var #출석확인y 965
var #출석확인2x 340
var #출석확인2y 965
//결제팝업
var #결제x 99
var #결제y 1229
//255 255 255
//243 243 243
var #결제2x 110
var #결제2y 700
//182 69 16
//174 61 8
//상점인지 골드로 확인
var #상점확인x 1000
var #상점확인y 780
//240 216 20
//228 204 8
var #팝업취소x 110
var #팝업취소y 625
var #확인x 350
var #확인y 1170
var #상점x 138
var #상점y 1422
var #신발20개x 700
var #신발20개y 1600
var #구매확인x 343
var #구매확인y 1248
var #상점닫기x 973
var #상점닫기y 1838
//캐릭터 생성 삭제
var #생성 0
var #삭제 0
var #선택창x 943
var #선택창y 236
//115 75 26
//103 63 14
var #다음x 129
var #다음y 1603
var #삭제x 141
var #삭제y 271
var #삭제창x 637
var #삭제창y 571
//140 105 14
//128 92 2
var #삭제창2x 711
var #삭제창2y 967
var #시작하기x 146
var #시작하기y 517
var #생성x 143
var #생성y 453
var #사제x 569
var #사제y 1649
//63 32 16
//51 20 4
//skip
var #skipx 192
var #skipy 1441
var #skip2x 897
var #skip2y 1416
var #skip3x 902
var #skip3y 533
var #skip4x 186
var #skip4y 327
//대화 skip
var #대화x 983
var #대화y 183
var #대화x 992
var #대화y 1690
var #대화x 77
var #대화y 234
var #대화x 99
var #대화y 1842
//벨스노우 skip
var #벨스x 300
var #벨스y 1350
var #벨스2x 924
var #벨스2y 1710
var #1완료x 503
var #1완료y 919
var #1완료2x 495
var #1완료2y 984
var #장비x 78
var #장비y 270
var #인벤정리x 131
var #인벤정리y 1034
var #창고가기x 125
var #창고가기y 1822
var #인벤자물쇠x 248
var #인벤자물쇠y 1074
var #인벤정보x 1036
var #인벤정보y 272
//========= 스크립트 시작 =========//
:start
#round = #mode
sleep 100
//========= 메인 시작 =========//
:main
sleep 500
//튜토리얼 1장 완료
getRGB #r #g #b #1완료x #1완료y
getRGB #r2 #g2 #b2 #1완료2x #1완료2y
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255
sleep 500
touchPress 0 1079 1919
goto :main
endif
//튜토리얼
getRGB #r #g #b #여관x #여관y
getRGB #r2 #g2 #b2 #t모험하기x #t모험하기y
getRGB #r3 #g3 #b3 #동료관리x #동료관리y
getRGB #r4 #g4 #b4 #장비x #장비y
//1. 동료관리
if 220 <= #r and #r <= 236 and 190 <= #g and #g <= 206 and 4 <= #b and #b <= 20 and 71 <= #r2 and #r2 <= 83 and 71 <= #g2 and #g2 <= 83 and 71 <= #b2 and #b2 <= 83 and 243 <= #r3 and #r3 <= 255 and 243 <= #g3 and #g3 <= 255 and 243 <= #b3 and #b3 <= 255
sleep 500
touchPress 0 #동료관리x #동료관리y
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress #나가기x #나가기y
//2. 장비
elseif 220 <= #r and #r <= 236 and 190 <= #g and #g <= 206 and 4 <= #b and #b <= 20 and 71 <= #r2 and #r2 <= 83 and 71 <= #g2 and #g2 <= 83 and 71 <= #b2 and #b2 <= 83 and 243 <= #r4 and #r4 <= 255 and 243 <= #g4 and #g4 <= 255 and 243 <= #b4 and #b4 <= 255
sleep 500
touchPress 0 #장비x #장비y
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
endif
//튜토리얼 가방 확장
getRGB #r #g #b #여관x #여관y
getRGB #r2 #g2 #b2 #창고가기x #창고가기y
getColor #color #인벤자물쇠x #인벤자물쇠y
if 220 <= #r and #r <= 236 and 190 <= #g and #g <= 206 and 4 <= #b and #b <= 20 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #color == 0
sleep 500
touchPress 0 #인벤자물쇠x #인벤자물쇠y
sleep 1000
touchPress 0 367 753 //취소
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 500
touchPress 0 1079 1919
sleep 1000
touchPress 0 #나가기x #나가기y
sleep 1000
goto :main
endif
//서버 오류
getRGB #r #g #b #서버x #서버y
getRGB #r2 #g2 #b2 #서버2x #서버2y
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255
sleep 7000
touchPress 0 #서버확인x #서버확인y
endif
//게임종료창
getRGB #r #g #b 373 744
getRGB #r2 #g2 #b2 600 1140
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255
touchPress 0 373 744 //취소
endif
getRGB #r #g #b 373 744
getRGB #r2 #g2 #b2 580 845
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255
touchPress 0 373 744 //취소
endif
//대화 skip
getColor #color #대화x #대화y
getColor #color2 #대화2x #대화2y
getColor #color3 #대화3x #대화3y
getColor #color4 #대화4x #대화4y
if #color == 0 and #color2 == 0 and #color3 == 0 and #color4 == 0
touchPress 0 1079 1919
goto :main
endif
//skip
getColor #color #skipx #skipy
getColor #color2 #skip2x #skip2y
getColor #color3 #skip3x #skip3y
getColor #color4 #skip4x #skip4y
if #color == 0 and #color2 == 0 and #color3 == 0 and #color4 == 0
sleep 500
touchPress 0 120 1798 //skip 버튼
sleep 1000
touchPress 0 376 1167 //skip 확인 버튼
sleep 2000
goto :main
endif
//벨스 skip
getRGB #r #g #b #벨스x #벨스y
getRGB #r2 #g2 #b2 #벨스2x #벨스2y
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 216 <= #r2 and #r2 <= 228 and 91 <= #g2 and #g2 <= 103 and 50 <= #b2 and #b2 <= 62
touchPress 0 1079 1919
goto :main
endif
//월드맵 확인
getRGB #r #g #b #월드맵x #월드맵y
getRGB #r2 #g2 #b2 #월드맵2x #월드맵2y
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #삭제 == 1
sleep 500
touchPress 0 #나가기x #나가기y
elseif 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #round != 0
sleep 500
goto :놀우드
endif
//사냥터 확인
sleep 500
getRGB #r #g #b #사냥터x #사냥터y
getRGB #r2 #g2 #b2 #사냥터2x #사냥터2y
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 230 <= #r2 and #r2 <= 242 and 211 <= #g2 and #g2 <= 223 and 128 <= #b2 and #b2 <= 140
sleep 500
goto :방
endif
//결제 팝업
getRGB #r #g #b #결제x #결제y
getRGB #r2 #g2 #b2 #결제2x #결제2y
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 174 <= #r2 and #r2 <= 178 and 61 <= #g2 and #g2 <= 69 and 8 <= #b2 and #b2 <= 16
toast 결제 팝업
sleep 500
touchPress 0 #팝업취소x #팝업취소y
sleep 500
touchPress 0 #확인x #확인y
endif
//자정or업데이트 확인
getRGB #r #g #b #자정하단1x #자정하단1y
getRGB #r2 #g2 #b2 #자정하단2x #자정하단2y
getColor #color #체크x #체크y
if 222 <= #r and #r <= 238 and 222 <= #g and #g <= 238 and 222 <= #b and #b <= 238 and 222 <= #r2 and #r2 <= 238 and 222 <= #g2 and #g2 <= 238 and 222 <= #b2 and #b2 <= 238 and #color == #체크c
toast 업데이트 체크
sleep 500
touchPress 0 #체크x #체크y
sleep 500
touchPress 0 #체크확인x #체크확인y
sleep 500
elseif 222 <= #r and #r <= 238 and 222 <= #g and #g <= 238 and 222 <= #b and #b <= 238 and 222 <= #r2 and #r2 <= 238 and 222 <= #g2 and #g2 <= 238 and 222 <= #b2 and #b2 <= 238 and #color != #체크c
toast 공지
sleep 500
touchPress 0 #자정확인x #자정확인y
endif
//캐릭터선택창
getRGB #r #g #b #선택창x #선택창y
getRGB #r2 #g2 #b2 #다음x #다음y
//캐릭생성
if 103 <= #r and #r <= 115 and 63 <= #g and #g <= 75 and 14 <= #b and #b <= 26 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #생성 == 0 and #삭제 == 0
toast 캐릭생성
sleep 500 //10번째 자리에 캐릭터 생성
touchPress 0 #다음x #다음y
sleep 1000
touchPress 0 273 1391
//캐릭생성후 시작하기
elseif 103 <= #r and #r <= 115 and 63 <= #g and #g <= 75 and 14 <= #b and #b <= 26 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #생성 == 2
sleep 500
touchPress 0 #시작하기x #시작하기y
sleep 500
#생성 = 0
//캐릭삭제
elseif 103 <= #r and #r <= 115 and 63 <= #g and #g <= 75 and 14 <= #b and #b <= 26 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #삭제 == 1
toast 캐릭삭제
sleep 500
touchPress 0 #삭제x #삭제y
sleep 1000
touchPress 0 364 1154 //삭제확인
endif
//캐릭터생성창
getRGB #r #g #b #사제x #사제y
getRGB #r2 #g2 #b2 #생성x #생성y
if 51 <= #r and #r <= 63 and 20 <= #g and #g <= 32 and 4 <= #b and #b <= 16 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255
sleep 500
touchPress 0 #사제x #사제y
sleep 1000
touchPress 0 928 431 //캐릭터 이름을 입력하세요
sleep 1500
#생성 = 1
goto :이름입력
endif
//캐릭터삭제창
getRGB #r #g #b #삭제창x #삭제창y
getRGB #r2 #g2 #b2 #삭제창2x #삭제창2y
if 128 <= #r and #r <= 140 and 92 <= #g and #g <= 105 and 2 <= #b and #b <= 14 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255
sleep 500
touchPress 0 496 921 //삭제 캐릭터 이름을 입력하세요
sleep 1500
#삭제 = 1
goto :이름입력
endif
//동료관리창
getRGB #r #g #b 850 1852
getRGB #r2 #g2 #b2 55 1084
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255
sleep 500
touchPress 0 #나가기x #나가기y
endif
//신발구매2
getRGB #r #g #b #상점확인x #상점확인y
if 228 <= #r and #r <= 240 and 204 <= #g and #g <= 216 and 8 <= #b and #b <= 20 and #신발구매 == 2
goto :신발구매2
endif
//신발구매
getRGB #r #g #b #여관x #여관y
getRGB #r2 #g2 #b2 #모험하기x #모험하기y
if 220 <= #r and #r <= 236 and 190 <= #g and #g <= 206 and 4 <= #b and #b <= 20 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #신발구매 == 1 and #신발사요 == 1
sleep 500
goto :신발구매
endif
//출석
getRGB #r #g #b #출석하단1x #출석하단1y
getRGB #r2 #g2 #b2 #출석하단2x #출석하단2y
if 214 <= #r and #r <= 230 and 192 <= #g and #g <= 208 and 142 <= #b and #b <= 158 and 210 <= #r2 and #r2 <= 226 and 186 <= #g2 and #g2 <= 202 and 136 <= #b2 and #b2 <= 152
toast 출석
sleep 500
touchPress 0 #출석확인x #출석확인y
sleep 1000
touchPress 0 #출석확인2x #출석확인2y
endif
//업적보상
getRGB #r #g #b #업적x #업적y
if #r >= 180 and #r <= 200 and #g >= 155 and #g <= 175 and #b >= 5 and #b <= 25
toast 업적보상
sleep 1000
touchPress 0 #업적x #업적y
endif
//장비 나가기
getRGB #r #g #b #인벤정리x #인벤정리y
getRGB #r2 #g2 #b2 #창고가기x #창고가기y
getRGB #r3 #g3 #b3 #인벤정보x #인벤정보y
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and 48 <= #r3 and #r3 <= 60 and 48 <= #g3 and #g3 <= 60 and 48 <= #b3 and #b3 <= 60
sleep 500
touchPress 0 #나가기x #나가기y
endif
sleep 1000
//캐릭터 삭제하러
getRGB #r #g #b #여관x #여관y
getRGB #r2 #g2 #b2 #모험하기x #모험하기y
getRGB #r3 #g3 #b3 272 67 //환경설정
if 220 <= #r and #r <= 236 and 190 <= #g and #g <= 206 and 4 <= #b and #b <= 20 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and 243 <= #r3 and #r3 <= 255 and 243 <= #g3 and #g3 <= 255 and 243 <= #b3 and #b3 <= 255 and #삭제 == 1
toast 삭제하러
sleep 1000
touchPress 0 257 51 //환경설정
sleep 1500
touchPress 0 69 999 //캐릭터 선택창 가기
sleep 700
touchPress 0 358 1157 //캐릭터 선택 화면으로 이동합니다
sleep 2000
goto :main
//놀우드 완료
elseif 220 <= #r and #r <= 236 and 190 <= #g and #g <= 206 and 4 <= #b and #b <= 20 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #round == 0
#삭제 = 1
sleep 500
//모험하기
elseif 220 <= #r and #r <= 236 and 190 <= #g and #g <= 206 and 4 <= #b and #b <= 20 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and #신발구매 == 0
sleep 1000
touchPress 0 #모험하기x #모험하기y
sleep 500
goto :main
else
goto :main
endif
//--------- 메인 종료 ---------//
//놀우드
:놀우드
touchDown 0 940 1760
touchMove 0 170 125
touchUp 0
sleep 100
touchPress 0 290 880
touchPress 0 240 880
touchPress 0 190 880
sleep 1500
goto :main
//========= 1번부터 9번방 =========//
:방
sleep 1500
//1번방
getRGB #r #g #b #k3x #k3y
if #r >= 240 and #r <= 255 and #g >= 240 and #g <= 255 and #b >= 240 and #b <= 255 and #mode >= 1
#round = #round - 1
sleep 500
touchPress 0 720 636 //1번방
sleep 100
touchPress 0 720 636 //1번방 재터치
sleep 500
goto :shoe
endif
//2번방
getRGB #r #g #b #k4x #k4y
if #r >= 240 and #r <= 255 and #g >= 240 and #g <= 255 and #b >= 240 and #b <= 255 and #mode >= 2
#round = #round - 1
sleep 500
touchPress 0 744 784 //2번방
sleep 100
touchPress 0 744 784 //2번방 재터치
sleep 500
goto :shoe
endif
//3번방
getRGB #r #g #b #k5x #k5y
if #r >= 240 and #r <= 255 and #g >= 240 and #g <= 255 and #b >= 240 and #b <= 255 and #mode >= 3
#round = #round - 1
sleep 500
touchPress 0 720 1052 //3번방
sleep 100
touchPress 0 744 1052 //3번방 재터치
sleep 500
goto :shoe
endif
//4번방
getRGB #r #g #b #k6x #k6y
if #r >= 240 and #r <= 255 and #g >= 240 and #g <= 255 and #b >= 240 and #b <= 255 and #mode >= 4
#round = #round - 1
sleep 500
touchPress 0 485 1064 //4번방
sleep 100
touchPress 0 485 1064 //4번방 재터치
sleep 500
goto :shoe
endif
//놀우드 막보
getRGB #r #g #b #k7x #k7y
getRGB #r2 #g2 #b2 414 1291
if #r >= 240 and #r <= 255 and #g >= 240 and #g <= 255 and #b >= 240 and #b <= 255 and #r2 >= 95 and #r2 <= 115 and #g2 >= 0 and #g2 <= 15 and #b2 >= 0 and #b2 <= 15 and #mode >= 5
#round = 0
sleep 500
touchPress 0 479 1280 //놀우드막보
sleep 100
touchPress 0 479 1280 //놀우드막보 재터치
sleep 500
goto :shoe
endif
//모든맵 클리어
getRGB #r #g #b #맵클x #맵클y
getRGB #r2 #g2 #b2 #맵클2x #맵클2y
getRGB #r3 #g3 #b3 #맵클3x #맵클3y
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255 and 243 <= #r3 and #r3 <= 255 and 243 <= #g3 and #g3 <= 255 and 243 <= #b3 and #b3 <= 255
#round = 0
#삭제 = 1
touchPress 0 #나가기x #나가기y
sleep 700
touchPress 0 #나가기x #나가기y
sleep 500
goto :main
else
goto :방
endif
//========= 신발확인 =========//
:shoe
sleep 500
//신발확인
getRGB #r #g #b #shoex #shoey
//신발 충전 대기
if #r >= 224 and #r <= 236 and #g >= 224 and #g <= 236 and #b >= 224 and #b <= 236 and #신발사요 == 0
toast 신발부족 [ 자동충전대기 ]
sleep 2000
toast 신발부족 [ 자동충전대기 ]
sleep 2000
touchPress 0 #shoe1x #shoe1y
sleep 500
goto :방
//신발 구매
elseif #r >= 224 and #r <= 236 and #g >= 224 and #g <= 236 and #b >= 224 and #b <= 236 and #신발사요 == 1
toast 신발부족
touchPress 0 #shoe1x #shoe1y
sleep 300
touchPress 0 #나가기x #나가기y
sleep 300
touchPress 0 #나가기x #나가기y
toast 신발 구매 요망
#신발구매 = 1
sleep 2000
goto :main
endif
//가방확인
getRGB #r #g #b #가방풀x #가방풀y
getRGB #r2 #g2 #b2 #가방풀2x #가방풀2y
if 235 <= #r and #r <= 255 and 235 <= #g and #g <= 255 and 235 <= #b and #b <= 255 and 235 <= #r2 and #r2 <= 255 and 235 <= #g2 and #g2 <= 255 and 235 <= #b2 and #b2 <= 255 and #장비팔아요 == 1
touchPress 0 #가방풀2x #가방풀2y
sleep 100
#xy = 11
goto :가방정리
//장비무시
elseif 235 <= #r and #r <= 255 and 235 <= #g and #g <= 255 and 235 <= #b and #b <= 255 and 235 <= #r2 and #r2 <= 255 and 235 <= #g2 and #g2 <= 255 and 235 <= #b2 and #b2 <= 255 and #장비팔아요 == 0
touchPress 0 #장비무시x #장비무시y
endif
//동료확인
getRGB #r #g #b #동료풀x #동료풀y
getRGB #r2 #g2 #b2 #동료풀2x #동료풀2y
if 235 <= #r and #r <= 255 and 235 <= #g and #g <= 255 and 235 <= #b and #b <= 255 and 235 <= #r2 and #r2 <= 255 and 235 <= #g2 and #g2 <= 255 and 235 <= #b2 and #b2 <= 255 and #동료수동강화 == 1
sleep 100
goto :동료자리부족
elseif 235 <= #r and #r <= 255 and 235 <= #g and #g <= 255 and 235 <= #b and #b <= 255 and 235 <= #r2 and #r2 <= 255 and 235 <= #g2 and #g2 <= 255 and 235 <= #b2 and #b2 <= 255 and #동료수동강화 == 0
touchPress 0 #동료무시x #동료무시y
endif
//친구선택
getRGB #r #g #b #친구x #친구y
if 240 <= #r and #r <= 255 and 240 <= #g and #g <= 255 and 240 <= #b and #b <= 255
goto :friend
else
goto :shoe
endif
//친구선택
:friend
getRGB #r #g #b #친구선택x #친구선택y
if 184 <= #r and #r <= 196 and 52 <= #g and #g <= 64 and 0 <= #b and #b <= 12
touchPress 0 70 955 //입장
sleep 30000
else
touchPress 0 808 1399 //친구선택
sleep 500
touchPress 0 70 955 //입장
sleep 30000
endif
//========= 던전 =========//
:hunt
sleep 100
//게임종료창
getRGB #r #g #b 373 744
getRGB #r2 #g2 #b2 580 845
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 243 <= #r2 and #r2 <= 255 and 243 <= #g2 and #g2 <= 255 and 243 <= #b2 and #b2 <= 255
touchPress 0 373 744 //취소
endif
//벨스노우 skip
getRGB #r #g #b #벨스x #벨스y
getRGB #r2 #g2 #b2 903 1712 //벨스노우 주황머리
if 243 <= #r and #r <= 255 and 243 <= #g and #g <= 255 and 243 <= #b and #b <= 255 and 225 <= #r2 and #r2 <= 237 and 120 <= #g2 and #g2 <= 132 and 73 <= #b2 and #b2 <= 85
touchPress 0 1079 1919
sleep 500
endif
getColor #color #monx #mony
getColor #color2 #failx #faily
getColor #color3 #fail2x #fail2y
getRGB #r #g #b #succx #succy
getRGB #r2 #g2 #b2 #succ2x #succ2y
sleep 100
//동료획득
if #color == #monc
sleep 500
toast 동료획득
touchPress 0 110 1069 //확인
sleep 2000
goto :hunt
//탐험성공
elseif #r >= 240 and #r <= 255 and #g >= 240 and #g <= 255 and #b >= 240 and #b <= 255 and #r2 >= 240 and #r2 <= 255 and #g2 >= 240 and #g2 <= 255 and #b2 >= 240 and #b2 <= 255
sleep 500
touchPress 0 924 1061 //탐험성공 상단
sleep 500
touchPress 0 924 1061 //탐험성공 상단
sleep 1000
touchPress 0 110 1069 //확인
sleep 500
touchPress 0 110 1069 //확인
goto :main
else
goto :hunt
endif
//========= 신발구매 =========//
:신발구매
sleep 100
touchPress 0 #상점x #상점y
sleep 500
#신발구매 = 2
sleep 500
goto :main
//========= 신발구매2 =========//
:신발구매2
sleep 500
touchPress 0 #신발20개x #신발20개y
sleep 300
touchPress 0 #신발20개x #신발20개y
sleep 500
touchPress 0 #구매확인x #구매확인y
goto :구매중
//========= 신발구매중 =========//
:구매중
sleep 1000
getColor #color #포로리x #포로리y
if #color == #포로리c
sleep 500
goto :구매중
else
touchPress 0 #상점닫기x #상점닫기y
sleep 500
touchPress 0 #상점닫기x #상점닫기y
sleep 300
#신발구매 = 0
goto :main
endif
//========= 장비판매 =========//
:가방정리
sleep 500
//장비 목록 검색 대기
getRGB #r #g #b 924 645 //좌측 캐릭터 정보창
if 240 <= #r and #r <= 255 and 240 <= #g and #g <= 255 and 240 <= #b and #b <= 255
sleep 100
goto :가방정리2
else
goto :가방정리
endif
//========= 장비판매2 =========//
:가방정리2
sleep 100
if #xy == 11
#가방x = #11x
#가방y = #11y
elseif #xy == 12
#가방x = #12x
#가방y = #12y
elseif #xy == 13
#가방x = #13x
#가방y = #13y
elseif #xy == 14
#가방x = #14x
#가방y = #14y
elseif #xy == 15
#가방x = #21x
#가방y = #21y
elseif #xy == 16
#가방x = #22x
#가방y = #22y
elseif #xy == 17
#가방x = #23x
#가방y = #23y
elseif #xy == 18
#가방x = #24x
#가방y = #24y
elseif #xy == 19
#가방x = #31x
#가방y = #31y
elseif #xy == 20
#가방x = #32x
#가방y = #32y
elseif #xy == 21
#가방x = #33x
#가방y = #33y
elseif #xy == 22
#가방x = #34x
#가방y = #34y
elseif #xy == 23
#가방x = #41x
#가방y = #41y
elseif #xy == 24
#가방x = #42x
#가방y = #42y
elseif #xy == 25
#가방x = #43x
#가방y = #43y
elseif #xy == 26
#가방x = #44x
#가방y = #44y
elseif #xy > 26
sleep 500
goto :인벤
endif
//장비 색값 확인
sleep 500
getRGB #r #g #b #가방x #가방y
//빨강
if 198 <= #r and #r <= 214 and 28 <= #g and #g <= 44 and 10 <= #b and #b <= 26 and #고급템 == 2
sleep 100
#가방y = #가방y - 40
touchPress 0 #가방x #가방y
sleep 1000
goto :판매
//주황
elseif 240 <= #r and #r <= 255 and 140 <= #g and #g <= 156 and 31 <= #b and #b <= 47 and #고급템 > 0
sleep 100
#가방y = #가방y - 40
touchPress 0 #가방x #가방y
sleep 1000
goto :판매
//보라
elseif 147 <= #r and #r <= 163 and 52 <= #g and #g <= 68 and 235 <= #b and #b <= 255
sleep 100
#가방y = #가방y - 40
touchPress 0 #가방x #가방y
sleep 1000
goto :판매
//파랑
elseif 23 <= #r and #r <= 39 and 136 <= #g and #g <= 152 and 240 <= #b and #b <= 255
sleep 100
#가방y = #가방y - 40
touchPress 0 #가방x #가방y
sleep 1000
goto :판매
//초록
elseif 32 <= #r and #r <= 48 and 194 <= #g and #g <= 212 and 85 <= #b and #b <= 101
sleep 100
#가방y = #가방y - 40
touchPress 0 #가방x #가방y
sleep 1000
goto :판매
//하양
elseif 235 <= #r and #r <= 255 and 235 <= #g and #g <= 255 and 235 <= #b and #b <= 255
sleep 100
#가방y = #가방y - 40
touchPress 0 #가방x #가방y
sleep 1000
#쓰레기 = 1
goto :판매
else
#xy = #xy + 1
sleep 1000
goto :가방정리2
endif
//========= 장비판매3 =========//
:판매
touchPress 0 #판매x #판매y
sleep 1000
//고급템 판매
if #고급템 > 0
touchPress 0 355 1160 //판매 확인
sleep 500
touchPress 0 985 1760 //아이템 세부정보 닫기
sleep 500
#xy = #xy + 1
sleep 1500
goto :가방정리2
endif
sleep 1000
//포션 판매
//소
getRGB #r #g #b #소포x #소포y
getRGB #r2 #g2 #b2 #소포2x #소포2y
if 240 <= #r and #r <= 255 and 240 <= #g and #g <= 255 and 240 <= #b and #b <= 255 and 240 <= #r2 and #r2 <= 255 and 240 <= #g2 and #g2 <= 255 and 240 <= #b2 and #b2 <= 255
touchPress 0 #낱개판매x #낱개판매y
sleep 500
touchPress 0 #템닫기x #템닫기y //아이템 세부정보 닫기
sleep 500
#xy = #xy + 1
sleep 1500
goto :가방정리2
endif
//대
getRGB #r #g #b #대포x #대포y
getRGB #r2 #g2 #b2 #대포2x #대포2y
if 240 <= #r and #r <= 255 and 240 <= #g and #g <= 255 and 240 <= #b and #b <= 255 and 240 <= #r2 and #r2 <= 255 and 240 <= #g2 and #g2 <= 255 and 240 <= #b2 and #b2 <= 255
touchPress 0 #낱개판매x #낱개판매y
sleep 500
touchPress 0 #템닫기x #템닫기y //아이템 세부정보 닫기
sleep 500
#xy = #xy + 1
sleep 1500
goto :가방정리2
endif
//특대
getRGB #r #g #b #특대포x #특대포y
getRGB #r2 #g2 #b2 #특대포2x #특대포2y
if 240 <= #r and #r <= 255 and 240 <= #g and #g <= 255 and 240 <= #b and #b <= 255 and 240 <= #r2 and #r2 <= 255 and 240 <= #g2 and #g2 <= 255 and 240 <= #b2 and #b2 <= 255
touchPress 0 #낱개판매x #낱개판매y
sleep 500
touchPress 0 #템닫기x #템닫기y //아이템 세부정보 닫기
sleep 500
#xy = #xy + 1
sleep 1500
goto :가방정리2
endif
//일반템 판매
getRGB #r #g #b #등급판매x #등급판매y
getRGB #r2 #g2 #b2 #등급판매2x #등급판매2y
if 240 <= #r and #r <= 255 and 240 <= #g and #g <= 255 and 240 <= #b and #b <= 255 and 240 <= #r2 and #r2 <= 255 and 240 <= #g2 and #g2 <= 255 and 240 <= #b2 and #b2 <= 255
touchPress 0 #등급판매x #등급판매y
sleep 1000
goto :판매중
elseif #쓰레기 == 1
touchPress 0 #낱개판매x #낱개판매y
sleep 500
touchPress 0 #템닫기x #템닫기y //아이템 세부정보 닫기
sleep 500
#xy = #xy + 1
#쓰레기 = 0
sleep 1500
goto :가방정리2
else
touchPress 0 #등급판매x #등급판매y //취소
sleep 500
touchPress 0 #템닫기x #템닫기y //아이템 세부정보 닫기
sleep 500
#xy = #xy + 1
sleep 1500
goto :가방정리2
endif
//========= 장비판매중 =========//
:판매중
sleep 1000
getColor #color #포로리x #포로리y
if #color == #포로리c
sleep 500
goto :판매중
else
#xy = #xy + 1
sleep 1500
goto :가방정리2
endif
//========= 동료경고 =========//
:동료자리부족
sleep 1500
toast 동료 강화 요망!!!
sleep 1500
goto :동료자리부족
//========= 캐릭터 이름입력 =========//
:이름입력
touchDown 0 928 431 //길게누르기
sleep 1500
touchUp 0
touchPress 0 #붙여넣기x #붙여넣기y //붙여넣기
sleep 1000
keyPress K_ENTER
sleep 1000
//입력후 캐릭생성
if #생성 == 1
touchPress 0 #생성x #생성y
sleep 3000
#생성 = 2
goto :start
//입력후 캐릭삭제
elseif #삭제 == 1
touchPress 0 368 1165 //삭제하기
sleep 3000
#삭제 = 0
#생성 = 0
goto :main
endif
//========= 스크립트 종료 =========//
:end
케릭 이름생성에서 오류가 ㅡ,.ㅡ 어떻게 생성 돼는건가여?