그러니까 매크로 실행시 모험하기누름> 월드맵 크라운성지역부터 역으로 탐색 들어감 (여기서가 문제ㅠ 탐색을 엉뚱하게 할때가 많아요ㅠ 아니면 사냥중으로 인식하거나ㅠ)
밑으로 스크립트ㅠ 해결좀 부탁 드립니다ㅠ
DEVICE: IM-A840S 4.1.2
SCREEN_SIZE: 720x1280
DEVICE: star_1 4.2.2
SCREEN_SIZE: 480x800
// 캐릭터 장비 인벤의 끝페이지 (3페이지까지면 3으로 수정)
var #inven 1
// 사냥터 입장시 친구 선택 사용 안할시 0 0
var #friendx 0
var #friendy 0
//동료 가득차면 매크로 종료 0 0
//동료 가득차도 계속 진행 142 464
var #okx 0
var #oky 0
//장비와 창고 모두 가득차면 매크로 종료 0 0
//장비와 창고 모두 가득차도 계속 진행 142 464
//(장비와 창고 모두 가득차도 계속 진행하면 장비와
// 창고가 가득찬 후에 동료 가득 찬건 확인 불가)
var #ok1x 0
var #ok1y 0
//장비정리 하려면 153 254
//장비정리 안하려면 142 464
var #ok2x 153
var #ok2y 254
//55렙 멈추고 사냥 종료 374 299
//55렙 이후 계속 사냥 0 0
var #lvx 374
var #lvy 299
//신화모드 요정폭포 3번방 멈춤 1
//신화모드 계속 진행 원하실경우 0
var #v1 1
//위 설정에서 매크로 종료시만 작동합니다. (55레벨 인식 후 보내기 추가)
//이메일을 보내고 종료 1
//이메일을 안보내고 종료 0
var #email 0
//--------------------------------
// 레벨 인식 부분
var #lvc 421527
var #lv1x 374
var #lv1y 307
var #lv1c 361653
//자정 메크로
var #clockx 64
var #clocky 529
var #clockc 9553375
var #clock1x 114
var #clock1y 163
var #clock1c 726045
var #color 0
var #r 0
var #g 0
var #b 0
var #r_ 0
var #g_ 0
var #b_ 0
var #r1 0
var #g1 0
var #b1 0
var #r2 0
var #g2 0
var #b2 0
var #r3 0
var #g3 0
var #b3 0
var #r4 0
var #g4 0
var #b4 0
var #r5 0
var #g5 0
var #b5 0
var #r6 0
var #g6 0
var #b6 0
var #er_m 15
var #er_p 15
var #colorexit 0
var #color1 0
var #color2 0
var #color3 0
var #color4 0
var #c1_r 0
var #c1_g 0
var #c1_b 0
var #c1_r1 0
var #c1_g1 0
var #c1_b1 0
var #c1_r2 0
var #c1_g2 0
var #c1_b2 0
//일반 성체
var #worldx 696
var #worldy 928
var #worldc 5857900
var #k0x 591
var #k0y 489
var #k0c 4898526
//골렘언덕
var #k1x 419
var #k1y 106
var #k1c 3622425
//추락자의 사막
var #k2x 250
var #k2y 70
var #k2c 1068419
//잊혀진 숲
var #k3x 229
var #k3y 723
var #k3c 1317167
//검은바위 산
var #k4x 431
var #k4y 87
var #k4c 1975609
//크라운즈랜딩 성
var #k5x 243
var #k5y 579
var #k5c 11920114
//신발 부족
var #key 0
var #keyx 276
var #keyy 339
var #keyc 6975864
//방선택
var #room 0
var #roomx 0
var #roomy 0
var #bx 0
var #by 0
var #bc 0
//------------방 터치부분
// 일반 성채방
var #r0x 216
var #r0y 358
var #b0x 268
var #b0y 326
var #b0c 12439550
//1번방
//------------방 터치부분
var #r1x 204
var #r1y 165
//------------방 new 확인
var #b1x 254
var #b1y 151
var #b1c 16316664
//2번방
var #r2x 211
var #r2y 256
var #b2x 256
var #b2y 228
var #b2c 16316664
//3번방
var #r3x 326
var #r3y 256
var #b3x 367
var #b3y 229
var #b3c 16316664
//4번방
var #r4x 325
var #r4y 369
var #b4x 366
var #b4y 319
var #b4c 16316664
//5번방
var #r5x 328
var #r5y 447
var #b5x 367
var #b5y 408
var #b5c 16316664
//6번방
var #r6x 215
var #r6y 448
var #b6x 255
var #b6y 425
var #b6c 16316664
//7번방
var #r7x 218
var #r7y 536
var #b7x 256
var #b7y 498
var #b7c 16316664
//8번방
var #r8x 215
var #r8y 629
var #b8x 255
var #b8y 599
var #b8c 16316664
//9번방
var #r9x 325
var #r9y 625
var #b9x 366
var #b9y 587
var #b9c 16316664
//55000원 팝업 //완
var #popx 522
var #popy 269
var #popc 8044230
//110000원 팝업
var #pop1x 519
var #pop1y 260
var #pop1c 16732663
//모험 여관 //완
var #mainx 680
var #mainy 867
var #mainc 46814
//친구 선택 창 //완
var #ax 662
var #ay 337
var #ac 15658990
//사냥터 //완
var #gox 597
var #goy 491
var #goc 5423838
//사냥터 중..
var #gogo1x 54
var #gogo1y 85
var #gogo1c 14478317
//사냥 종료부분 나가기 9번방 //완
var #exitx 536
var #exity 967
var #exitc 49
//사냥 종료부분 나가기 7번방 //완
var #exit1x 361
var #exit1y 963
var #exit1c 74
var #exit11x 316
var #exit11y 817
var #exit11c 5401897
//사냥 종료부분 나가기 5번방 //완 370 830 65
var #exit2x 357
var #exit2y 810
var #exit2c 57
//----장비판매관련------------------------------------------
//장비창 화면 확인 값
var #inshopx 23
var #inshopy 753
var #inshopc 1780059
//아이템 세부정보창 화면 확인 값
var #sellx 458
var #selly 424
var #sellc 6928861
//아이템색깔
var #red 794579
var #yellow 2332159
var #puple 16725918
var #blue 16748826
var #green 6148644
var #white 16777215
//장비칸
var #11x 398
var #11y 434
var #12x 393
var #12y 566
var #13x 394
var #13y 649
var #14x 392
var #14y 733
var #21x 309
var #21y 484
var #22x 306
var #22y 566
var #23x 307
var #23y 649
var #24x 305
var #24y 732
var #31x 218
var #31y 484
var #32x 217
var #32y 567
var #33x 218
var #33y 649
var #34x 218
var #34y 733
var #41x 129
var #41y 484
var #42x 131
var #42y 567
var #43x 127
var #43y 649
var #44x 128
var #44y 732
var #xx 0
var #full 0
var #bag 1
//장비체크
var #checkx 0
var #checky 0
//요정폭포 확인
var #v1x 428
var #v1y 390
var #v1c 8568010
var #v2x 401
var #v2y 392
var #v2c 276163
var #v3x 347
var #v3y 265
var #v3c 1266085
//업적 확인
var #ok11x 283
var #ok11y 622
var #ok11c 426695
//---------------------------
///////////////////////메인스크립트///////////////////////////////
//매크로 시작 라벨
:start
sleep 1000
//55000원 팝업 확인
:pop
sleep 100
getcolor #color #popx #popy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #popc % 256 - #er_m
#g1 = #popc / 256 % 256 - #er_m
#b1 = #popc / 256 / 256 % 256 - #er_m
#r2 = #popc % 256 + #er_p
#g2 = #popc / 256 % 256 + #er_p
#b2 = #popc / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
toast 팝업 취소
sleep 1000
touchDown 0 66 496
sleep 100
touchUp 0
sleep 300
touchDown 0 224 782
sleep 100
touchUp 0
sleep 300
goto :main
endif
//110000원 팝업 확인
:pop1
sleep 100
getcolor #color #pop1x #pop1y
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #pop1c % 256 - #er_m
#g1 = #pop1c / 256 % 256 - #er_m
#b1 = #pop1c / 256 / 256 % 256 - #er_m
#r2 = #pop1c % 256 + #er_p
#g2 = #pop1c / 256 % 256 + #er_p
#b2 = #pop1c / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
toast 팝업 취소
sleep 1000
touchDown 0 66 496
sleep 100
touchUp 0
sleep 300
touchDown 0 224 782
sleep 100
touchUp 0
sleep 300
goto :main
endif
//모험 여관
:main
sleep 3000
getcolor #color #mainx #mainy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #mainc % 256 - #er_m
#g1 = #mainc / 256 % 256 - #er_m
#b1 = #mainc / 256 / 256 % 256 - #er_m
#r2 = #mainc % 256 + #er_p
#g2 = #mainc / 256 % 256 + #er_p
#b2 = #mainc / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2 and #key == 0
toast 모험 하기
sleep 1000
touchpress 0 78 1207
sleep 3000
goto :k0
elseif #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2 and #key == 1
toast 신발상점으로 이동합니다
goto :key
endif
//사냥 종료부분 나가기 9번방
:exit
sleep 50
getcolor #colorexit #exitx #exity
#r = #colorexit % 256
#g = #colorexit / 256 % 256
#b = #colorexit / 256 / 256 % 256
#r1 = #exitc % 256 - #er_m
#g1 = #exitc / 256 % 256 - #er_m
#b1 = #exitc / 256 / 256 % 256 - #er_m
#r2 = #exitc % 256 + #er_p
#g2 = #exitc / 256 % 256 + #er_p
#b2 = #exitc / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
sleep 50
toast 9번방 종료
sleep 500
touchDown 0 72 57
sleep 100
touchUp 0
sleep 500
touchDown 0 72 57
sleep 100
touchUp 0
sleep 500
goto : start
endif
//사냥 종료부분 나가기 7번방
:exit1
sleep 50
getcolor #colorexit #exit1x #exit1y
#r = #colorexit % 256
#g = #colorexit / 256 % 256
#b = #colorexit / 256 / 256 % 256
#r1 = #exit1c % 256 - #er_m
#g1 = #exit1c / 256 % 256 - #er_m
#b1 = #exit1c / 256 / 256 % 256 - #er_m
#r2 = #exit1c % 256 + #er_p
#g2 = #exit1c / 256 % 256 + #er_p
#b2 = #exit1c / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
sleep 50
getcolor #colorexit #exit11x #exit11y
#r = #colorexit % 256
#g = #colorexit / 256 % 256
#b = #colorexit / 256 / 256 % 256
#r1 = #exit11c % 256 - #er_m
#g1 = #exit11c / 256 % 256 - #er_m
#b1 = #exit11c / 256 / 256 % 256 - #er_m
#r2 = #exit11c % 256 + #er_p
#g2 = #exit11c / 256 % 256 + #er_p
#b2 = #exit11c / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
sleep 50
toast 7번방 종료
sleep 500
touchDown 0 72 57
sleep 100
touchUp 0
sleep 500
touchDown 0 72 57
sleep 100
touchUp 0
sleep 500
goto :start
endif
//사냥 종료부분 나가기 5번방
:exit2
sleep 50
getcolor #colorexit #exit2x #exit2y
#r = #colorexit % 256
#g = #colorexit / 256 % 256
#b = #colorexit / 256 / 256 % 256
#r1 = #exit2c % 256 - #er_m
#g1 = #exit2c / 256 % 256 - #er_m
#b1 = #exit2c / 256 / 256 % 256 - #er_m
#r2 = #exit2c % 256 + #er_p
#g2 = #exit2c / 256 % 256 + #er_p
#b2 = #exit2c / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
toast 5번방 종료
sleep 500
touchDown 0 72 57
sleep 100
touchUp 0
sleep 500
touchDown 0 72 57
sleep 100
touchUp 0
sleep 500
goto :start
endif
//사냥터 입장 라벨
:go
sleep 1000
getColor #color #gox #goy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #goc % 256 - #er_m
#g1 = #goc / 256 % 256 - #er_m
#b1 = #goc / 256 / 256 % 256 - #er_m
#r2 = #goc % 256 + #er_p
#g2 = #goc / 256 % 256 + #er_p
#b2 = #goc / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
toast 사냥 시작
sleep 1000
touchDown 0 492 994
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
touchDown 0 311 944
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
touchDown 0 310 869
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
touchDown 0 310 706
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
touchDown 0 499 707
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
touchDown 0 496 570
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
touchDown 0 503 426
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
touchDown 0 319 419
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
touchDown 0 327 273
sleep 100
touchUp 0
sleep 500
touchDown 0 223 714
sleep 100
touchUp 0
sleep 500
else
goto :gogo
endif
//사냥터 입장 라벨
:gogo
sleep 1000
getColor #color #ax #ay
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #ac % 256 - #er_m
#g1 = #ac / 256 % 256 - #er_m
#b1 = #ac / 256 / 256 % 256 - #er_m
#r2 = #ac % 256 + #er_p
#g2 = #ac / 256 % 256 + #er_p
#b2 = #ac / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
toast 사냥 입장 친구 선택
sleep 500
touchDown 0 #friendx #friendy
sleep 100
touchUp 0
sleep 500
touchDown 0 42 660
sleep 100
touchUp 0
sleep 500
touchDown 0 250 807
sleep 100
touchUp 0
sleep 500
touchDown 0 666 1228
sleep 100
touchUp 0
sleep 1000
else
goto :gogo1
endif
//----------------------------------
//사냥터 입장 라벨
//사냥터 입장 라벨
:gogo1
sleep 500
toast 사냥 중....
touchDown 0 219 661
sleep 100
touchUp 0
sleep 500
touchDown 0 44 665
sleep 100
touchUp 0
sleep 500
touchDown 0 219 661
sleep 100
touchUp 0
sleep 500
touchDown 0 666 1228
sleep 100
touchUp 0
sleep 500
touchDown 0 44 665
sleep 100
touchUp 0
sleep 500
touchDown 0 219 661
sleep 100
touchUp 0
sleep 500
touchDown 0 666 1228
sleep 100
touchUp 0
sleep 1000
else
goto :main
end
/////////////////////////////////////////////////////
////---------------------스테이지 선택-------------------
:k0
getColor #color #worldx #worldy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #worldc % 256 - #er_m
#g1 = #worldc / 256 % 256 - #er_m
#b1 = #worldc / 256 / 256 % 256 - #er_m
#r2 = #worldc % 256 + #er_p
#g2 = #worldc / 256 % 256 + #er_p
#b2 = #worldc / 256 / 256 % 256 + #er_p
if #r < #r1 or #r > #r2 or #g < #g1 or #g > #g2 or #b < #b1 or #b > #b2
goto :main
endif
// 크라운즈랜딩 성
toast 크라운즈 랜딩 성
touchDown 0 39 123
sleep 500
touchMove 0 595 1121
sleep 50
touchUp 0
sleep 500
touchPress 0 485 977
sleep 500
touchPress 0 408 1134
sleep 500
touchPress 0 389 905
sleep 500
touchPress 0 459 776
sleep 500
touchPress 0 633 1189
sleep 1000
getColor #color #worldx #worldy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #worldc % 256 - #er_m
#g1 = #worldc / 256 % 256 - #er_m
#b1 = #worldc / 256 / 256 % 256 - #er_m
#r2 = #worldc % 256 + #er_p
#g2 = #worldc / 256 % 256 + #er_p
#b2 = #worldc / 256 / 256 % 256 + #er_p
if #r < #r1 or #r > #r2 or #g < #g1 or #g > #g2 or #b < #b1 or #b > #b2
touchPress 0 665 925
goto :go
endif
// 검은 바위 산
toast 검은 바위 산
touchDown 0 688 89
sleep 500
touchMove 0 21 1123
sleep 100
touchUp 0
sleep 500
touchPress 0 560 762
sleep 500
touchPress 0 557 487
sleep 500
touchPress 0 381 435
sleep 500
touchPress 0 302 527
sleep 500
touchPress 0 285 729
sleep 1000
getColor #color #worldx #worldy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #worldc % 256 - #er_m
#g1 = #worldc / 256 % 256 - #er_m
#b1 = #worldc / 256 / 256 % 256 - #er_m
#r2 = #worldc % 256 + #er_p
#g2 = #worldc / 256 % 256 + #er_p
#b2 = #worldc / 256 / 256 % 256 + #er_p
if #r < #r1 or #r > #r2 or #g < #g1 or #g > #g2 or #b < #b1 or #b > #b2
touchPress 0 665 925
goto :go
endif
// 정글 퓨리
toast 정글 퓨리
touchDown 0 10 1253
sleep 500
touchMove 0 608 15
sleep 100
touchUp 0
sleep 500
touchPress 0 434 713
sleep 500
touchPress 0 282 742
sleep 500
touchPress 0 194 707
sleep 500
touchPress 0 268 463
sleep 1000
getColor #color #worldx #worldy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #worldc % 256 - #er_m
#g1 = #worldc / 256 % 256 - #er_m
#b1 = #worldc / 256 / 256 % 256 - #er_m
#r2 = #worldc % 256 + #er_p
#g2 = #worldc / 256 % 256 + #er_p
#b2 = #worldc / 256 / 256 % 256 + #er_p
if #r < #r1 or #r > #r2 or #g < #g1 or #g > #g2 or #b < #b1 or #b > #b2
touchPress 0 665 925
goto :go
endif
// 추락자의 사막
toast 추락자의 사막
touchDown 0 14 106
sleep 500
touchMove 0 595 1121
sleep 100
touchUp 0
sleep 500
touchPress 0 188 799
sleep 500
touchPress 0 543 197
sleep 500
touchPress 0 403 176
sleep 500
touchPress 0 328 235
sleep 500
touchPress 0 409 423
sleep 1000
getColor #color #worldx #worldy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #worldc % 256 - #er_m
#g1 = #worldc / 256 % 256 - #er_m
#b1 = #worldc / 256 / 256 % 256 - #er_m
#r2 = #worldc % 256 + #er_p
#g2 = #worldc / 256 % 256 + #er_p
#b2 = #worldc / 256 / 256 % 256 + #er_p
if #r < #r1 or #r > #r2 or #g < #g1 or #g > #g2 or #b < #b1 or #b > #b2
touchPress 0 665 925
goto :go
endif
// 골렘 언덕
toast 골렘 언덕
touchDown 0 628 1138
sleep 500
touchMove 0 12 19
sleep 100
touchUp 0
sleep 500
touchPress 0 403 1042
sleep 500
touchPress 0 449 530
sleep 500
touchPress 0 153 556
sleep 500
getColor #color #worldx #worldy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #worldc % 256 - #er_m
#g1 = #worldc / 256 % 256 - #er_m
#b1 = #worldc / 256 / 256 % 256 - #er_m
#r2 = #worldc % 256 + #er_p
#g2 = #worldc / 256 % 256 + #er_p
#b2 = #worldc / 256 / 256 % 256 + #er_p
if #r < #r1 or #r > #r2 or #g < #g1 or #g > #g2 or #b < #b1 or #b > #b2
touchPress 0 665 925
goto :go
endif
// 확인
toast 테스트중..
touchPress 0 665 925
goto :k0
:end
////---------------------스테이지 선택-------------------
////-----------------------방선택------------------------
:roomselect
sleep 100
if #room == 0
#bx = #b0x
#by = #b0y
#bc = #b0c
#roomx = #r0x
#roomy = #r0y
elseif #room == 1
#bx = #b1x
#by = #b1y
#bc = #b1c
#roomx = #r1x
#roomy = #r1y
elseif #room == 2
#bx = #b2x
#by = #b2y
#bc = #b2c
#roomx = #r2x
#roomy = #r2y
elseif #room == 3
#bx = #b3x
#by = #b3y
#bc = #b3c
#roomx = #r3x
#roomy = #r3y
elseif #room == 4
#bx = #b4x
#by = #b4y
#bc = #b4c
#roomx = #r4x
#roomy = #r4y
elseif #room == 5
#bx = #b5x
#by = #b5y
#bc = #b5c
#roomx = #r5x
#roomy = #r5y
elseif #room == 6
#bx = #b6x
#by = #b6y
#roomx = #r6x
#roomy = #r6y
elseif #room == 7
#bx = #b7x
#by = #b7y
#bc = #b7c
#roomx = #r7x
#roomy = #r7y
elseif #room == 8
#bx = #b8x
#by = #b8y
#bc = #b8c
#roomx = #r8x
#roomy = #r8y
elseif #room == 9
#bx = #b9x
#by = #b9y
#bc = #b9c
#roomx = #r9x
#roomy = #r9y
elseif #room == 10
sleep 2000
#room = 0
goto :gogo
endif
sleep 100
getcolor #color #bx #by
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #bc % 256 - #er_m
#g1 = #bc / 256 % 256 - #er_m
#b1 = #bc / 256 / 256 % 256 - #er_m
#r2 = #bc % 256 + #er_p
#g2 = #bc / 256 % 256 + #er_p
#b2 = #bc / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
toast #room 번방 입장
sleep 1000
touchpress 0 #roomx #roomy
#room = 0
sleep 2000
goto :gogo
else
#room = #room + 1
goto :roomselect
endif
goto :start
////-----------------------방선택------------------------
////---------------------자동신발구매--------------------
// 신발 부족
:key
sleep 3000
getcolor #color #mainx #mainy
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #mainc % 256 - #er_m
#g1 = #mainc / 256 % 256 - #er_m
#b1 = #mainc / 256 / 256 % 256 - #er_m
#r2 = #mainc % 256 + #er_p
#g2 = #mainc / 256 % 256 + #er_p
#b2 = #mainc / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
touchpress 0 43 584
sleep 1000
touchpress 0 61 328
sleep 500
touchpress 0 61 328
sleep 500
touchpress 0 61 328
sleep 500
touchpress 0 61 328
sleep 500
touchpress 0 61 328
sleep 500
touchpress 0 307 647
sleep 1000
touchpress 0 307 647
sleep 1000
touchpress 0 168 521
sleep 1000
touchpress 0 449 771
sleep 1000
touchpress 0 449 771
#key = 0
endif
goto :start
////---------------------자동신발구매--------------------
////-----------------------장비 정리---------------------
//////////////////////아이템 좌표값 설정 순서대로
:check
sleep 100
if #xx == 11
#checkx = #11x
#checky = #11y
elseif #xx == 12
#checkx = #12x
#checky = #12y
elseif #xx == 13
#checkx = #13x
#checky = #13y
elseif #xx == 14
#checkx = #14x
#checky = #14y
elseif #xx == 15
#checkx = #21x
#checky = #21y
elseif #xx == 16
#checkx = #22x
#checky = #22y
elseif #xx == 17
#checkx = #23x
#checky = #23y
elseif #xx == 18
#checkx = #24x
#checky = #24y
elseif #xx == 19
#checkx = #31x
#checky = #31y
elseif #xx == 20
#checkx = #32x
#checky = #32y
elseif #xx == 21
#checkx = #33x
#checky = #33y
elseif #xx == 22
#checkx = #34x
#checky = #34y
elseif #xx == 23
#checkx = #41x
#checky = #41y
elseif #xx == 24
#checkx = #42x
#checky = #42y
elseif #xx == 25
#checkx = #43x
#checky = #43y
elseif #xx == 26
#checkx = #44x
#checky = #44y
elseif #xx == 27
sleep 5000
goto :warehouse
endif
//아이템의 등급색 확인
sleep 100
getcolor #color #checkx #checky
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #puple % 256 - #er_m
#g1 = #puple / 256 % 256 - #er_m
#b1 = #puple / 256 / 256 % 256 - #er_m
#r2 = #puple % 256 + #er_p
#g2 = #puple / 256 % 256 + #er_p
#b2 = #puple / 256 / 256 % 256 + #er_p
#r3 = #blue % 256 - #er_m
#g3 = #blue / 256 % 256 - #er_m
#b3 = #blue / 256 / 256 % 256 - #er_m
#r4 = #blue % 256 + #er_p
#g4 = #blue / 256 % 256 + #er_p
#b4 = #blue / 256 / 256 % 256 + #er_p
#r5 = #green % 256 - #er_m
#g5 = #green / 256 % 256 - #er_m
#b5 = #green / 256 / 256 % 256 - #er_m
#r6 = #green % 256 + #er_p
#g6 = #green / 256 % 256 + #er_p
#b6 = #green / 256 / 256 % 256 + #er_p
sleep 100
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
sleep 100
toast 아이템 검색완료
touchpress 0 #checkx #checky
sleep 3000
goto :sell
elseif #r3 < #r and #r < #r4 and #g3 < #g and #g < #g4 and #b3 < #b and #b < #b4
sleep 100
toast 아이템 검색완료
touchpress 0 #checkx #checky
sleep 3000
goto :sell
elseif #r5 < #r and #r < #r6 and #g5 < #g and #g < #g6 and #b5 < #b and #b < #b6
sleep 100
toast 아이템 검색완료
touchpress 0 #checkx #checky
sleep 3000
goto :sell
else
#xx = #xx + 1
goto :check
endif
//아이템 판매
:sell
sleep 1000
getcolor #color #sellx #selly
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #sellc % 256 - #er_m
#g1 = #sellc / 256 % 256 - #er_m
#b1 = #sellc / 256 / 256 % 256 - #er_m
#r2 = #sellc % 256 + #er_p
#g2 = #sellc / 256 % 256 + #er_p
#b2 = #sellc / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
toast 아이템을 파는 중입니다
//------------------물약이면 판매
getcolor #color1 386 464
#r = #color1 % 256
#g = #color1 / 256 % 256
#b = #color1 / 256 / 256 % 256
#r1 = 2061723 % 256 - #er_m
#g1 = 2061723 / 256 % 256 - #er_m
#b1 = 2061723 / 256 / 256 % 256 - #er_m
#r2 = 2061723 % 256 + #er_p
#g2 = 2061723 / 256 % 256 + #er_p
#b2 = 2061723 / 256 / 256 % 256 + #er_p
#r3 = 2313338 % 256 - #er_m
#g3 = 2313338 / 256 % 256 - #er_m
#b3 = 2313338 / 256 / 256 % 256 - #er_m
#r4 = 2313338 % 256 + #er_p
#g4 = 2313338 / 256 % 256 + #er_p
#b4 = 2313338 / 256 / 256 % 256 + #er_p
#r5 = 4160675 % 256 - #er_m
#g5 = 4160675 / 256 % 256 - #er_m
#b5 = 4160675 / 256 / 256 % 256 - #er_m
#r6 = 4160675 % 256 + #er_p
#g6 = 4160675 / 256 % 256 + #er_p
#b6 = 4160675 / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2) or (#r3 < #r and #r < #r4 and #g3 < #g and #g < #g4 and #b3 < #b and #b < #b4) or (#r5 < #r and #r < #r6 and #g5 < #g and #g < #g6 and #b5 < #b and #b < #b6)
sleep 1000
toast 물약을 발견
touchpress 0 48 530
sleep 3000
//확인을 클릭
touchpress 0 161 527
sleep 1000
// 엑스를 눌르자
sleep 50
touchpress 0 431 722
sleep 2000
#xx = #xx + 1
goto :check
endif
//----------------------------
//판매 클릭
sleep 3000
touchpress 0 48 530
sleep 3000
//등급판매 클릭
touchpress 0 169 250
sleep 3000
goto :check4
:check3
// 나가기
sleep 10000
touchpress 0 67 31
sleep 1000
goto :start
else
goto :start
endif
//등급판매 안되는템(보석 등) 확인
:check4
//등급판매 안되는 아이템 확인
getcolor #color #sellx #selly
#r = #color % 256
#g = #color / 256 % 256
#b = #color / 256 / 256 % 256
#r1 = #sellc % 256 - #er_m
#g1 = #sellc / 256 % 256 - #er_m
#b1 = #sellc / 256 / 256 % 256 - #er_m
#r2 = #sellc % 256 + #er_p
#g2 = #sellc / 256 % 256 + #er_p
#b2 = #sellc / 256 / 256 % 256 + #er_p
sleep 50
if #r1 < #r and #r < #r2 and #g1 < #g and #g < #g2 and #b1 < #b and #b < #b2
toast 등급판매 안되는 아이템
sleep 50
touchpress 0 431 722
sleep 2000
#xx = #xx + 1
goto :check
else
goto :check3
endif
// 창고에 저장하자
:warehouse
getcolor #color #inshopx #inshopy
sleep 50
if #color == #inshopc and #xx == 27
toast 창고로 이동합니다
touchpress 0 61 730
sleep 7000
touchdown 0 #11x #11y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #12x #12y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #13x #13y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #14x #14y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #21x #21y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #22x #22y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #23x #23y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #24x #24y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #31x #31y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #32x #32y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #33x #33y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #34x #34y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #41x #41y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #42x #42y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #43x #43y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
sleep 1000
touchdown 0 #44x #44y
sleep 100
touchmove 0 365 244
sleep 100
touchup 0
goto :storecheck2
:storecheck1
//나가기
sleep 5000
touchpress 0 67 31
sleep 5000
touchpress 0 67 31
#xx = 11
endif
goto :start
:storecheck2
sleep 3000
getcolor #color #11x #11y
if #color != 6327459
sleep 50
toast 창고가 가득찼습니다.
#full = 1
endif
goto :storecheck1
//인벤 페이지 확인
:bag2
if #bag == #inven
goto :bag1
else
touchpress 0 60 652
sleep 1000
#bag = #bag + 1
goto :bag2
endif
////-----------------------장비 정리---------------------
/////////////// /// 이메일 추가 수정 부분 ///////////////
////-----------------------종료확인----------------------
:finish1
if #okx != 0 and #oky != 0
goto :back1
else
goto :end
endif
:finish2
if #ok1x != 0 and #ok1y != 0
goto :back2
else
goto :end
endif
////-----------------------종료확인----------------------
// 종료 메시지
:end1
sleep 3000
toast 매크로가 중지 되었습니다!!!! 확인하세요!!
sleep 3000
goto :end1
:end
DEVICE: star_1 4.2.2
SCREEN_SIZE: 480x800
지니모션용 받으셨군요...
480*800은 갤2 나 3G폰 정도 밖에 안 됩니다
화면 해상도가 다르기때문에
클릭은 하되 이상한걸 누를텐데...