히로매크로 커뮤니티

조회 수 250 추천 0 댓글 8

별이되어라 매크로에 죽었을때 부활 스크롤 누르는 기능을 추가할려는데요.


베스트팁에 통합레이드 매크로를 써보니까

죽었을때 바로 인식하고 부활스크롤를 누르더라구요.


그런데 어떻게 인식하는지 의문인데요.


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


//=======================부활============================
:die
getcolor #color1 #diex #diey
sleep 100

if #color1 == #diec
toast 죽었다 부활하자
sleep 500
touchpress 0 51 640
sleep 500
touchpress 0 51 711
sleep 500
touchpress 0 51 788
endif
sleep 2000
goto :hunting
//=======================================================


hunting(레이드 중) 일때 die(부활) 상황을 체크하는데요.


레이드 중에 399,25 좌표의 색값이 0이 될?경우에

51,640 51,711 51,788 을 한번씩 클릭하라는 명령어 같습니다.


별이되어라에서 위에 해당하는 399,25 부분은 2번째 스킬버튼이거든요.


그런데 제가 죽은 상황을 확인해봐도 색값이 0이 되질않고

그냥 아무런 변화가 없더라구요.


그런데도 굉장히 잘 인식을 하는데

어떤 원리인가요?


제가 매크로를 잘못 이해한걸까요?


밑에가 제가 참고한 통합레이드 매크로입니다.


--------------------------------------------------------------------------------------------------------------


DEVICE: star 4.2.2
SCREEN_SIZE: 480x800

//=======================================================
//=======================개인설정========================
//=======================================================

//난이도 일반 10, 영웅 20, 전설 30, 신화 40
//코모도 페어리 1,스톰타일런트 2, 정글퓨리 3, 블랙마운틴 4
//데스크라운 5, 화염의피닉스 6, 심연 7, 벨무트 8, 라그나로크 9
//난이도 + 지역 + 방
//예)전설 데스크라운 = 35

var #muhan 18


// 자신이 연 인벤의 끝페이지 (3페이지까지면 3으로 수정)
var #inven 1

//아이템등급판매시 대기시간 설정 1초 = 1000
var #sellwait 5000

//=======================================================
//=======================================================
//=======================================================

var #range 15

//-------------------------------------------------------
//----------색값 보정 관련 변수 추가-----------------
//-------------------------------------------------------

var #result1 0
var #result2 0
var #result3 0
var #result4 0
var #compcolor1 0
var #compcolor2 0
var #compcolor3 0
var #compcolor4 0
var #originalcolor1 0
var #originalcolor2 0
var #originalcolor3 0
var #originalcolor4 0
var #r 0
var #g 0
var #b 0
var #tempcolor 0
var #tempcolor1 0
var #tempcolor2 0
var #goto 0

var #color 0
var #colorexit 0
var #color1 0
var #color2 0
var #color3 0
var #color4 0

var #ticket 0
var #stage 0
var #level 0

//-------------------------------------------------------
//----------------------팝업창관련-----------------------
//-------------------------------------------------------
//자정매크로1
var #clock1x 447
var #clock1y 333
var #clock1c 5555170
var #clock2x 65
var #clock2y 138
var #clock2c 9553375


//자정 메크로2
var #clockx 362
var #clocky 311
var #clockc 3978718


//55000원 팝업
var #popx 340
var #popy 157
var #popc 2003406


//110000원 팝업
var #pop1x 351
var #pop1y 160
var #pop1c 4334262

var #출석체크x 62
var #출석체크y 96
var #출석체크c 10076894
var #팝업x 64
var #팝업y 529
var #팝업c 15197927
var #업적x 254
var #업적y 397
var #업적c 2177094
//-------------------------------------------------------
//-------------------------------------------------------
//-------------------------------------------------------

var #확인(앞)x 169
var #확인(앞)y 269
var #확인(뒤)x 169
var #확인(뒤)y 519
var #확인(중)x 162
var #확인(중)y 400
var #확인(아)x 52
var #확인(아)y 467
var #화면(끝)x 462
var #화면(끝)y 786


//-------------------------------------------------------
//----------우편함 및 친구 돋보기 나가기-----------------
//-------------------------------------------------------
var #mailx 451
var #maily 325
var #mailc 16777215

var #frlenx 21
var #frleny 215
var #frlenc 1839179
var #frlen1x 30
var #frlen1y 453
var #frlen1c 4086701
//-------------------------------------------------------
//-------------------------------------------------------
//-------------------------------------------------------



//-------------------------------------------------------
//---------------------사냥터 입장관련-------------------
//-------------------------------------------------------
//모험 여관 화면 확인
var #mainx 464
var #mainy 387
var #mainc 4260169

?
//월드맵 화면 확인
var #worldx 457
var #worldy 269
var #worldc 16777215
//-------------------------------------------------------
//-------------------------------------------------------
//-------------------------------------------------------



//-------------------------------------------------------
//-------------------레이드 관련-------------------------
//-------------------------------------------------------
//레이드 대기 화면 확인
var #main1x 419
var #main1y 331
var #main1c 9689578


//사냥중 확인
var #huntx 46
var #hunty 29
var #huntc 16777215


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


//레이드 실패
var #failx 302
var #faily 270
var #failc 3362254


//도전한 기록 취소
var #cancle1x 236
var #cancle1y 314
var #cancle1c 923941
var #cancle2x 213
var #cancle2y 318
var #cancle2c 923941
?

//레이드 거절
var #goxxx 116
var #goxxy 749
var #goxxc 3622224

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

?
//초대 수락 확인
var #okx 158
var #oky 517
//var #okx 157
//var #oky 483
?

//초대 거절 취소
//var #nox 155
//var #noy 356
var #nox 161
var #noy 317

//나가기
var #exit1x 155
var #exit1y 356
//-------------------------------------------------------
//-------------------------------------------------------
//-------------------------------------------------------


?
//-------------------------------------------------------
//-------------------장비판매관련------------------------
//-------------------------------------------------------
//장비창 화면 확인 값
var #inshopx 23
var #inshopy 753
//var #inshopc 1780059
var #inshopc 1780315


//아이템 세부정보창 화면 확인 값
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 395
var #11y 485
var #12x 399
var #12y 567
var #13x 396
var #13y 650
var #14x 395
var #14y 731
var #21x 301
var #21y 484
var #22x 305
var #22y 567
var #23x 306
var #23y 650
var #24x 306
var #24y 732
var #31x 220
var #31y 484
var #32x 213
var #32y 567
var #33x 214
var #33y 649
var #34x 219
var #34y 732
var #41x 128
var #41y 485
var #42x 124
var #42y 567
var #43x 126
var #43y 649
var #44x 126
var #44y 732
var #xx 0
var #full 0
var #bag 1


//장비체크
var #checkx 0
var #checky 0
//-------------------------------------------------------
//-------------------------------------------------------
//-------------------------------------------------------






//----------------------매크로 시작----------------------
:start

if #muhan > 10
?#level = #muhan
?#level = #level / 10
?#muhan = #muhan - #level * 10
?#stage = #muhan
endif

//-------------------------------------------------------
//-------------------------루프--------------------------
//-------------------------------------------------------
:loop
sleep 3000


//=====================팝업관련==========================

:출석체크
sleep 100
getcolor #compcolor1 #출석체크x #출석체크y
#originalcolor1 = #출석체크c
#goto = 3
goto :color1

:goto3
if #result1 == 1
toast 자정 출석체크
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(중)x #확인(중)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
endif

:팝업
sleep 100
getcolor #compcolor1 #팝업x #팝업y
#originalcolor1 = #팝업c
#goto = 4
goto :color1

:goto4
if #result1 == 1
toast 팝업
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #확인(아)x #확인(아)y
sleep 1000
touchpress 0 #화면(끝)x #화면(끝)y
endif

//-------------------55000원 팝업 확인-------------------
:pop
//getcolor #color #popx #popy
getcolor #compcolor1 #popx #popy
#originalcolor1 = #popc
#goto = 5
goto :color1

:goto5
//if #color == #popc
if #result1 == 1
toast 팝업 취소
sleep 1000
touchpress 0 50 312
sleep 1000
touchpress 0 158 483
sleep 300
goto :main
endif
//-------------------------------------------------------


//------------------110000원 팝업 확인-------------------
:pop1
//getcolor #color #pop1x #pop1y
getcolor #compcolor1 #pop1x #pop1y
#originalcolor1 = #pop1c
#goto = 6
goto :color1

:goto6
//if #color == #pop1c
if #result1 == 1
toast 팝업 취소
sleep 1000
touchpress 0 50 312
sleep 1000
touchpress 0 158 483
sleep 300
goto :main
endif
//-------------------------------------------------------

:업적
sleep 100
getcolor #compcolor1 #업적x #업적y
#originalcolor1 = #업적c
#goto = 7
goto :color1

:goto7
if #result1 == 1
toast 업적 확인
touchpress 0 #업적x #업적y
sleep 5000
touchpress 0 #업적x #업적y
sleep 1000
endif


//===============우편함, 친구돋보기 나가기===============
//-------------------우편함 나가기-----------------------
//getcolor #color #mailx #maily
getcolor #compcolor1 #mailx #maily
#originalcolor1 = #mailc
#goto = 8
goto :color1

:goto8
//if #color == #mailc
if #result1 == 1
touchpress 0 446 766
endif
//-------------------------------------------------------

//-------------------친구돋보기 나가기-------------------
//getcolor #color #frlenx #frleny
//getcolor #color1 #frlen1x #frlen1y
getcolor #compcolor1 #frlenx #frleny
getcolor #compcolor2 #frlen1x #frlen1y
#originalcolor1 = #frlenc
#originalcolor2 = #frlen1c
#goto = 9
goto :color12

:goto9
//if #color == #frlenc and #color1 == #frlen1c
if #result1 == 1 and #result2 == 1
touchpress 0 61 43
endif
//-------------------------------------------------------
//=======================================================



//====================사냥터 입장 관련===================

//---------------------모험 여관 확인--------------------
:main
// sleep 추가
//getcolor #color #mainx #mainy
getcolor #compcolor1 #mainx #mainy
#originalcolor1 = #mainc
#goto = 10
goto :color1

:goto10
//if #color == #mainc
if #result1 == 1
toast 모험 하기
sleep 1000
touchpress 0 50 758
sleep 4000
endif
//-------------------------------------------------------


//---월드맵화면 확인,레이드 입장,장비가득 메시지확인-----
:world
//getcolor #color #worldx #worldy
getcolor #compcolor1 #worldx #worldy
#originalcolor1 = #worldc
#goto = 51
goto :color1

:goto51
//if #color == #worldc
if #result1 == 1
toast 레이드 시작

goto :k0
:k1

sleep 5000
//getcolor #color1 230 180
//getcolor #color2 152 176
//getcolor #color3 259 268
//getcolor #color4 271 314

getcolor #compcolor1 230 180
getcolor #compcolor2 152 176
getcolor #compcolor3 259 268
getcolor #compcolor4 271 314
#originalcolor1 = 923941
#originalcolor2 = 16579836
#originalcolor3 = 16777215
#originalcolor4 = 16777215
#goto = 52
goto :color1234

:goto52
//if #color1 == 923941 and #color2 == 16579836 and #color3 == 16777215
if #result1 == 1 and #result2 == 1 and #result3 == 1
sleep 100
toast 가방이 가득 찼습니다
sleep 100
touchpress 0 153 468
sleep 1000
touchpress 0 59 30
sleep 1000
touchpress 0 47 118
toast 장비창에 들어왔습니다.
sleep 5000
goto :shop
endif

//if #color1 == 923941 and #color2 == 16579836 and #color3 != 16777215 and #color4 != 16777215
if #result1 == 1 and #result2 == 1 and #result3 == 1 and #result4 == 0
toast 티켓이 부족합니다
goto :ticket
endif

//if #color1 == 923941 and #color2 == 16579836 and #color3 != 16777215 and #color4 == 16777215
if #result1 == 1 and #result2 == 1 and #result3 == 1 and #result4 == 1
toast 레이드 초대를 받았습니다
touchpress 0 153 468
sleep 1000
touchpress 0 59 30
sleep 2000
goto :goxx
endif

endif
//-------------------------------------------------------
//=======================================================



//====================레이드 관련========================

//----------------레이드 메인화면 확인-------------------
:riadmain
//getcolor #color #main1x #main1y
getcolor #compcolor1 #main1x #main1y
#originalcolor1 = #main1c
#goto = 53
goto :color1

:goto53
//if #color == #main1c
if #result1 == 1
toast 레이드 대기 화면
sleep 1000
toast 레이드 시작
sleep 100
touchpress 0 49 726
sleep 1000
touchpress 0 162 411
sleep 8000
toast 사냥이 시작되었습니다
endif
//-------------------------------------------------------


//---------------레이드 중 확인, 부활--------------------
:hunting
//getcolor #color #huntx #hunty
getcolor #compcolor1 #huntx #hunty
#originalcolor1 = #huntc
#goto = 54
goto :color1

:goto54
//if #color == #huntc
if #result1 == 1
toast 레이드중...
goto :die
endif
//-------------------------------------------------------


//-------------------레이드 실패 확인--------------------
:fail
//getcolor #color #failx #faily
getcolor #compcolor1 #failx #faily
#originalcolor1 = #failc
#goto = 55
goto :color1

:goto55
//if #color == #failc
if #result1 == 1
sleep 50
toast 레이드 실패
sleep 1000
touchpress 0 #nox #noy
sleep 1000
endif
//-------------------------------------------------------


//-------------------도전한 기록 취소--------------------
:cancle
//getcolor #color #canclex #cancley
getcolor #compcolor1 #cancle1x #cancle1y
getcolor #compcolor2 #cancle2x #cancle2y
#originalcolor1 = #cancle1c
#originalcolor2 = #cancle2c
#goto = 56
goto :color12

:goto56
//if #color == #canclec
if #result1 == 1 and #result2 == 1
sleep 50
toast 결성된 파티 도전 취소
sleep 1000
touchpress 0 #nox #noy
sleep 2000
endif
//-------------------------------------------------------


//-------------------레이드 초대 거절--------------------
:goxx
//getcolor #color #goxxx #goxxy
getcolor #compcolor1 #goxxx #goxxy
#originalcolor1 = #goxxc
#goto = 57
goto :color1

:goto57
//if #color == #goxxc
if #result1 == 1
sleep 50
toast 레이드 거절하기
sleep 1000
touchpress 0 #goxxx #goxxy
sleep 1000
touchpress 0 #nox #noy
sleep 1000
touchpress 0 #nox #noy
sleep 1000
endif
//-------------------------------------------------------


//--------------------사냥터에서 멈춤--------------------
:exit
//getcolor #color #exitx #exity
getcolor #compcolor1 #exitx #exity
#originalcolor1 = #exitc
#goto = 58
goto :color1

:goto 58
//if #color == #exitc
if #result1 == 1
toast 사냥터에서 멈춰서 돌아감
touchpress 0 62 34
sleep 1000
endif
//-------------------------------------------------------
//=======================================================



//=================장비창 화면 확인======================
:shop
//getcolor #color #inshopx #inshopy
getcolor #compcolor1 #inshopx #inshopy
#originalcolor1 = #inshopc
#goto = 14
goto :color1

:goto14
//if #color == #inshopc
if #result1 == 1
#bag = 1
goto :bag
:bag1
toast 장비 판매 시작
#xx = 1
sleep 2000
goto :check
endif
//=======================================================


goto :loop
//-------------------------------------------------------
//-------------------------루프종료----------------------
//-------------------------------------------------------



//=======================================================
//====================상점 판매==========================
//=======================================================
//--------------아이템 좌표값 설정 순서대로--------------
:check
if #xx == 1
#checkx = #11x
#checky = #11y
elseif #xx == 2
#checkx = #12x
#checky = #12y
elseif #xx == 3
#checkx = #13x
#checky = #13y
elseif #xx == 4
#checkx = #14x
#checky = #14y
elseif #xx == 5
#checkx = #21x
#checky = #21y
elseif #xx == 6
#checkx = #22x
#checky = #22y
elseif #xx == 7
#checkx = #23x
#checky = #23y
elseif #xx == 8
#checkx = #24x
#checky = #24y
elseif #xx == 9
#checkx = #31x
#checky = #31y
elseif #xx == 10
#checkx = #32x
#checky = #32y
elseif #xx == 11
#checkx = #33x
#checky = #33y
elseif #xx == 12
#checkx = #34x
#checky = #34y
elseif #xx == 13
#checkx = #41x
#checky = #41y
elseif #xx == 14
#checkx = #42x
#checky = #42y
elseif #xx == 15
#checkx = #43x
#checky = #43y
elseif #xx == 16
#checkx = #44x
#checky = #44y
elseif #xx == 17
sleep 1500
goto :warehouse
endif
//-------------------------------------------------------

//--------------------아이템의 등급색 확인---------------
//getcolor #color #checkx #checky
getcolor #compcolor1 #checkx #checky
sleep 500
#compcolor2 = #compcolor1
#compcolor3 = #compcolor1
#compcolor4 = #compcolor1
#originalcolor1 = #puple
#originalcolor2 = #blue
#originalcolor3 = #green
#originalcolor4 = #white
#goto = 18
goto :color1234

:goto18
//if #color == #puple or #color == #blue or #color == #green or #color == #white
if #result1 == 1 or #result2 == 1 or #result3 == 1 or #result4 == 1
sleep 500
toast 아이템 검색완료
touchpress 0 #checkx #checky
sleep 1500
goto :sell
else
#xx = #xx + 1
goto :check
endif
//-------------------------------------------------------

//----------아이템 세부정보창에서 아이템 판매------------
:sell
//getcolor #color #sellx #selly
getcolor #compcolor1 #sellx #selly
sleep 300
#originalcolor1 = #sellc
#goto = 19
goto :color1

:goto19
//if #color == #sellc
if #result1 == 1
toast 아이템을 파는 중입니다
goto :potion
:potion1
//판매 클릭
touchpress 0 48 530
sleep 1500
//등급판매 클릭
touchpress 0 169 250
sleep 1500
goto :nosell
:nosell1
// 나가기
sleep #sellwait
touchpress 0 67 31
sleep 1500
endif
goto :start
//-------------------------------------------------------

//--------------------물약이면 판매----------------------
:potion
//getcolor #color1 386 464
getcolor #compcolor1 386 464
sleep 300
#compcolor2 = #compcolor1
#compcolor3 = #compcolor1
#originalcolor1 = 2061723
#originalcolor2 = 2313338
#originalcolor3 = 4160675
#goto = 20
goto :color123

:goto20
//if #color1 == 2061723 or #color1 == 2313338 or #color1 == 4160675
if #result1 == 1 or #result2 == 1 or #result3 == 1
toast 물약을 발견
//판매 클릭
touchpress 0 48 530
sleep 1500
//확인을 클릭
touchpress 0 161 527
sleep 1500
// 엑스를 눌르자
touchpress 0 431 722
sleep 1500
#xx = #xx + 1
goto :check
endif
goto :potion1
//-------------------------------------------------------

//------------등급판매 안되는템(보석 등) 확인------------
:nosell
//getcolor #color #sellx #selly
getcolor #compcolor1 #sellx #selly
sleep 300
#originalcolor1 = #sellc
#goto = 21
goto :color1

:goto21
//if #color == #sellc
if #result1 == 1
toast 등급판매 안되는 아이템
touchpress 0 431 722
sleep 1500
#xx = #xx + 1
goto :check
endif
goto :nosell1
//-------------------------------------------------------

//-----------------창고로 아이템 이동--------------------
:warehouse
//getcolor #color #inshopx #inshopy
getcolor #compcolor1 #inshopx #inshopy
sleep 100
#originalcolor1 = #inshopc
#goto = 22
goto :color1

:goto22
//if #color == #inshopc
if #result1 == 1
toast 창고로 이동합니다
touchpress 0 61 730
sleep 3000
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 1002
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 :storecheck
:storecheck1
//나가기
sleep 5000
touchpress 0 67 31
sleep 5000
touchpress 0 67 31
#xx = 11
endif
goto :start
//-------------------------------------------------------

//-----------------창고가 가득찼는지 확인-----------------
:storecheck
sleep 1000
//getcolor #color #34x #34y
getcolor #compcolor1 #34x #34y
#originalcolor1 = 4881556
#goto = 23
goto :color1

:goto23
//if #color != 4881556
if #result1 == 0
sleep 500
toast 창고가 가득찼습니다.
#full = 1
endif
goto :storecheck1
//-------------------------------------------------------

//------------------인벤 오픈 페이지---------------------
:bag
if #bag == #inven
goto :bag1
else
touchpress 0 60 652
sleep 1500
#bag = #bag + 1
goto :bag
endif
//-------------------------------------------------------
//=======================================================
//====================상점 판매 끝=======================
//=======================================================


//==================티켓없을시 대기======================
:ticket
sleep 1000
touchpress 0 153 468
sleep 1000
touchpress 0 59 30
sleep 1000
toast 티켓이 없어 30초간 대기합니다
sleep 1000
#ticket = 0
//30초 대기 (5초간격으로 수정할수 있습니다)
:count1
#ticket = #ticket + 5
sleep 5000
toast 기다리는 중..( #ticket 초)
if #ticket == 30
goto :start
else
goto :count1
endif
//=======================================================



//=======================부활============================
:die
getcolor #color1 #diex #diey
sleep 100

if #color1 == #diec
toast 죽었다 부활하자
sleep 500
touchpress 0 51 640
sleep 500
touchpress 0 51 711
sleep 500
touchpress 0 51 788
endif
sleep 2000
goto :hunting
//=======================================================



//====================레이드 찾아가기====================
:k0
if #level == 1
touchpress 0 63 102
elseif #level == 2
touchpress 0 63 183
elseif #level == 3
touchpress 0 63 254
elseif #level == 4
touchpress 0 63 332
endif

sleep 1000
if #stage > 0 and #stage < 6
//-----------좌측상단 맵기준-----------------------------
touchpress 0 460 269
sleep 1000
touchdown 0 454 66
touchmove 0 0 800
touchup 0
//-------------------------------------------------------
endif

if #stage > 5 and #stage < 9
//--------------------맵기준-----------------------------
touchdown 0 435 63
sleep 50
touchmove 0 126 714
sleep 50
touchup 0
//-------------------------------------------------------
endif

if #stage == 9
//--------------------맵기준-----------------------------
touchdown 0 129 92
sleep 50
touchmove 0 210 177
sleep 50
touchup 0
sleep 1000
touchdown 0 450 480
sleep 50
touchmove 0 350 680
sleep 50
touchup 0
//-------------------------------------------------------
endif

sleep 2000
if #stage == 1
touchdown 0 417 731
touchmove 0 0 0
touchup 0
sleep 1000
touchpress 0 347 671

elseif #stage == 2
touchdown 0 104 233
touchmove 0 480 800
touchup 0
sleep 1000
touchpress 0 435 125

elseif #stage == 3
touchdown 0 142 620
touchmove 0 478 197
touchup 0
sleep 1000
touchpress 0 147 694

elseif #stage == 4
sleep 1000
touchpress 0 293 594

elseif #stage == 5
touchdown 0 187 589
touchmove 0 399 481
touchup 0
sleep 1000
//touchpress 0 315 559
touchpress 0 319 519
sleep 100
touchpress 0 333 509

elseif #stage == 6
touchdown 0 341 753
sleep 50
touchmove 0 309 72
touchup 0
sleep 1000
touchpress 0 376 657
sleep 50
touchpress 0 353 624
sleep 50
touchpress 0 344 606

elseif #stage == 7
touchdown 0 126 714
sleep 50
touchmove 0 368 624
touchup 0
sleep 1000
touchpress 0 169 656
sleep 50
touchpress 0 196 684
sleep 50
touchpress 0 160 643

elseif #stage == 8
touchdown 0 96 227
sleep 50
touchmove 0 231 201
touchup 0
sleep 1000
touchpress 0 175 122
sleep 50
touchpress 0 196 153
sleep 50
touchpress 0 166 99

elseif #stage == 9
touchpress 0 120 580
sleep 500
touchpress 0 140 580
sleep 500
touchpress 0 160 580

endif
goto :k1
//=======================================================

//========================================
//??? color1 비교
//========================================
:color1
? #result1 = 0
? if #range > 0
??? goto :c1
? endif
? if #originalcolor1 == #compcolor1
??? #result1 = 1
? endif
? goto :back

:c1
? //color
? //R 비교
? #r = #compcolor1 % 256
? #tempcolor = #originalcolor1 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :back
? endif
? //G 비교
? #g = #compcolor1 / 256 % 256
? #tempcolor = #originalcolor1 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :back
? endif
? //B 비교
? #b = #compcolor1 / 256 / 256 % 256
? #tempcolor = #originalcolor1 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :back
? endif
? #result1 = 1
? goto :back

//========================================
//??? color12 비교
//========================================
:color12
? #result1 = 0
? #result2 = 0
? if #range > 0
??? goto :c12
? endif
? if #originalcolor1 == #compcolor1 and #originalcolor2 == #compcolor2
??? #result1 = 1
??? #result2 = 1
? endif
? goto :back

:c12
? //color1
? //R 비교
? #r = #compcolor1 % 256
? #tempcolor = #originalcolor1 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :co12
? endif
? //G 비교
? #g = #compcolor1 / 256 % 256
? #tempcolor = #originalcolor1 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :co12
? endif
? //B 비교
? #b = #compcolor1 / 256 / 256 % 256
? #tempcolor = #originalcolor1 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :co12
? endif
? #result1 = 1
:co12
? //color2
? //R 비교
? #r = #compcolor2 % 256
? #tempcolor = #originalcolor2 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :back
? endif
? //G 비교
? #g = #compcolor2 / 256 % 256
? #tempcolor = #originalcolor2 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :back
? endif
? //B 비교
? #b = #compcolor2 / 256 / 256 % 256
? #tempcolor = #originalcolor2 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :back
? endif
? #result2 = 1
? goto :back

//========================================
//??? color123 비교
//========================================
:color123
? #result1 = 0
? #result2 = 0
? #result3 = 0
? if #range > 0
??? goto :c123
? endif
? if #originalcolor1 == #compcolor1 and #originalcolor2 == #compcolor2 and #originalcolor3 == #compcolor3
??? #result1 = 1
??? #result2 = 1
??? #result3 = 1???
? endif
? goto :back

:c123
? //color1
? //R 비교
? #r = #compcolor1 % 256
? #tempcolor = #originalcolor1 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :co123
? endif
? //G 비교
? #g = #compcolor1 / 256 % 256
? #tempcolor = #originalcolor1 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :co123
? endif
? //B 비교
? #b = #compcolor1 / 256 / 256 % 256
? #tempcolor = #originalcolor1 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :co123
? endif
? #result1 = 1
:co123
? //color2
? //R 비교
? #r = #compcolor2 % 256
? #tempcolor = #originalcolor2 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :col123
? endif
? //G 비교
? #g = #compcolor2 / 256 % 256
? #tempcolor = #originalcolor2 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :col123
? endif
? //B 비교
? #b = #compcolor2 / 256 / 256 % 256
? #tempcolor = #originalcolor2 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :col123
? endif
? #result2 = 1
:col123
? //color3
? //R 비교
? #r = #compcolor3 % 256
? #tempcolor = #originalcolor3 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :back
? endif
? //G 비교
? #g = #compcolor3 / 256 % 256
? #tempcolor = #originalcolor3 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :back
? endif
? //B 비교
? #b = #compcolor3 / 256 / 256 % 256
? #tempcolor = #originalcolor3 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :back
? endif
? #result3 = 1
? goto :back

//========================================
//??? color1234 비교
//========================================
:color1234
? #result1 = 0
? #result2 = 0
? #result3 = 0
? #result4 = 0
? if #range > 0
??? goto :c1234
? endif
? if #originalcolor1 == #compcolor1 and #originalcolor2 == #compcolor3 and #originalcolor3 == #compcolor2 and #originalcolor4 == #compcolor4
??? #result1 = 1
??? #result2 = 1
??? #result3 = 1
??? #result4 = 1???
? endif
? goto :back

:c1234
? //color1
? //R 비교
? #r = #compcolor1 % 256
? #tempcolor = #originalcolor1 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :co1234
? endif
? //G 비교
? #g = #compcolor1 / 256 % 256
? #tempcolor = #originalcolor1 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :co1234
? endif
? //B 비교
? #b = #compcolor1 / 256 / 256 % 256
? #tempcolor = #originalcolor1 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :co1234
? endif
? #result1 = 1
:co1234
? //color2
? //R 비교
? #r = #compcolor2 % 256
? #tempcolor = #originalcolor2 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :col1234
? endif
? //G 비교
? #g = #compcolor2 / 256 % 256
? #tempcolor = #originalcolor2 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :col1234
? endif
? //B 비교
? #b = #compcolor2 / 256 / 256 % 256
? #tempcolor = #originalcolor2 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :col1234
? endif
? #result2 = 1
:col1234
? //color3
? //R 비교
? #r = #compcolor3 % 256
? #tempcolor = #originalcolor3 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :colo1234
? endif
? //G 비교
? #g = #compcolor3 / 256 % 256
? #tempcolor = #originalcolor3 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :colo1234
? endif
? //B 비교
? #b = #compcolor3 / 256 / 256 % 256
? #tempcolor = #originalcolor3 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :colo1234
? endif
? #result3 = 1
:colo1234
? //color4
? //R 비교
? #r = #compcolor4 % 256
? #tempcolor = #originalcolor4 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #r or #tempcolor2 > #r
??? goto :back
? endif
? //G 비교
? #g = #compcolor4 / 256 % 256
? #tempcolor = #originalcolor4 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #g or #tempcolor2 > #g
??? goto :back
? endif
? //B 비교
? #b = #compcolor4 / 256 / 256 % 256
? #tempcolor = #originalcolor4 / 256 / 256 % 256
? #tempcolor1 = #tempcolor + #range
? #tempcolor2 = #tempcolor - #range
? if #tempcolor1 < #b or #tempcolor2 > #b
??? goto :back
? endif
? #result4 = 1
? goto :back

//원래위치 돌아가기============================
:back
? if #goto == 1
??? goto :goto1
? elseif #goto == 2
??? goto :goto2
? elseif #goto == 3
??? goto :goto3
? elseif #goto == 4
??? goto :goto4
? elseif #goto == 5
??? goto :goto5
? elseif #goto == 6
??? goto :goto6
? elseif #goto == 7
??? goto :goto7
? elseif #goto == 8
??? goto :goto8
? elseif #goto == 9
??? goto :goto9
? elseif #goto == 10
??? goto :goto10
? elseif #goto == 11
??? goto :goto11
? elseif #goto == 12
??? goto :goto12
? elseif #goto == 13
??? goto :goto13
? elseif #goto == 14
??? goto :goto14
? elseif #goto == 15
??? goto :goto15
? elseif #goto == 16
??? goto :goto16
? elseif #goto == 17
??? goto :goto17
? elseif #goto == 18
??? goto :goto18
? elseif #goto == 19
??? goto :goto19
? elseif #goto == 20
??? goto :goto20
? elseif #goto == 21
??? goto :goto21
? elseif #goto == 22
??? goto :goto22
? elseif #goto == 23
??? goto :goto23
? elseif #goto == 24
??? goto :goto24
? elseif #goto == 25
??? goto :goto25
? elseif #goto == 26
??? goto :goto26
? elseif #goto == 27
??? goto :goto27
? elseif #goto == 28
??? goto :goto28
? elseif #goto == 29
??? goto :goto29
? elseif #goto == 30
??? goto :goto30
? elseif #goto == 31
??? goto :goto31
? elseif #goto == 32
??? goto :goto32
? elseif #goto == 33
??? goto :goto33
? elseif #goto == 34
??? goto :goto34
? elseif #goto == 35
??? goto :goto35
? elseif #goto == 36
??? goto :goto36
? elseif #goto == 37
??? goto :goto37
? elseif #goto == 38
??? goto :goto38
? elseif #goto == 39
??? goto :goto39
? elseif #goto == 40
??? goto :goto40
? elseif #goto == 41
??? goto :goto41
? elseif #goto == 42
??? goto :goto42
? elseif #goto == 43
??? goto :goto43
? elseif #goto == 44
??? goto :goto44
? elseif #goto == 45
??? goto :goto45
? elseif #goto == 46
??? goto :goto46
? elseif #goto == 47
??? goto :goto47
? elseif #goto == 48
??? goto :goto48
? elseif #goto == 49
??? goto :goto49
? elseif #goto == 50
??? goto :goto50
? elseif #goto == 51
??? goto :goto51
? elseif #goto == 52
??? goto :goto52
? elseif #goto == 53
??? goto :goto53
? elseif #goto == 54
??? goto :goto54
? elseif #goto == 55
??? goto :goto55
? elseif #goto == 56
??? goto :goto56
? elseif #goto == 57
??? goto :goto57
? elseif #goto == 58
??? goto :goto58
? elseif #goto == 59
??? goto :goto59
? elseif #goto == 60
??? goto :goto60
? elseif #goto == 61
??? goto :goto61
? elseif #goto == 62
??? goto :goto62
? elseif #goto == 63
??? goto :goto63
? elseif #goto == 64
??? goto :goto64
? elseif #goto == 65
??? goto :goto65
? elseif #goto == 66
??? goto :goto66
? elseif #goto == 67
??? goto :goto67
? elseif #goto == 68
??? goto :goto68
? elseif #goto == 69
??? goto :goto69
? elseif #goto == 70
??? goto :goto70
? elseif #goto == 71
??? goto :goto71
? elseif #goto == 72
??? goto :goto72
? elseif #goto == 73
??? goto :goto73
? elseif #goto == 74
??? goto :goto74
? elseif #goto == 75
??? goto :goto75
? elseif #goto == 76
??? goto :goto76
? elseif #goto == 77
??? goto :goto77
? elseif #goto == 78
??? goto :goto78
? elseif #goto == 79
??? goto :goto79
? elseif #goto == 80
??? goto :goto80
? elseif #goto == 81
??? goto :goto81
? elseif #goto == 82
??? goto :goto82
? elseif #goto == 83
??? goto :goto83
? elseif #goto == 84
??? goto :goto84
? elseif #goto == 85
??? goto :goto85
? elseif #goto == 86
??? goto :goto86
? elseif #goto == 87
??? goto :goto87
? elseif #goto == 88
??? goto :goto88
? elseif #goto == 89
??? goto :goto89
? elseif #goto == 90
??? goto :goto90
? elseif #goto == 91
??? goto :goto91
? elseif #goto == 92
??? goto :goto92
? elseif #goto == 93
??? goto :goto93
? elseif #goto == 94
??? goto :goto94
? elseif #goto == 95
??? goto :goto95
? elseif #goto == 96
??? goto :goto96
? elseif #goto == 97
??? goto :goto97
? elseif #goto == 98
??? goto :goto98
? elseif #goto == 99
??? goto :goto99
? elseif #goto == 100
??? goto :goto100
? else
??? toast [error] 원래 위치 없음
??? sleep 2000
? endif
//=====================================
//??? 종료 라벨
//=====================================

:end



  • 비훑 2015.02.08 21:58

    그냥 체력바의 가장 왼쪽 색값이 0 (검정) 일 때 스크롤을 터치하도록 설정하면됩니다...

    체력바가 얇기때문에 중앙 색값을 잘 가져와야하고 살짝 벗어나면 84, 84, 84 ~ 이렇게 색값이 달라집니다..

  • 이태헌 2015.02.08 23:33
    저도 좌측상단의 체력 막대기로 만들어볼까 싶었는데
    이 매크로가 죽은걸 굉장히 잘 인식해서 그대로 복사 붙여넣기로 활용할려고 하거든요.
    그런데 되기는 되는데 이게 왜 되는지 이해가 안가네요 ㅋㅋ;
  • 비훑 2015.02.09 09:31
    399, 25의 좌표가 2번째 스킬이라구요???
    제가 SIZE 480*800 을 사용하지 않아서 추측이지만
    스크롤 터치하는 부분이 각 51, 640 / 51, 711 / 51, 788 인데
    x, y의 좌표를 봤을 때 x가 51 위치가 스킬, 스크롤 위치인 걸로 봐서
    x가 399라면 상당히 위에 있지 않을까 합니다.

    diex, diey가 2번째 스킬 위치라고 보신게 아마
    x, y를 실수로 바꿔서 확인하신게 아닌가 싶네요...

    쉽게말해 399, 25 를 보셔야 하는데
    25, 399 좌표를 확인하신듯...
  • 이태헌 2015.02.11 16:07
    아 399,25를 25,399로 잘못 봤었네요.
    체력바가 맞았군요 허허
    답변 감사합니다.
  • 친환경 2015.02.09 10:08

    비훑 님 말씀대로 위치를 잘못 이해하신것 같습니다.?


    480 * 800 으로 가로화면으로 (399,25)은 케릭터 생명바로 보입니다.?

  • 이태헌 2015.02.11 16:13
    다시 보니까 좌표를 거꾸로 봤었네요.
    생명바가 맞군요 ㅎㅎ
  • 샤먼 2015.02.10 00:50

    제가 이걸로 수정해서 스크립트를 만들었는데?

    본케릭 생명바 좌측쯤의 색값이 검은색 즉 피가 없는 경우에 부활주문서를 사용하는 스크립트고?

    사실 죽을때 라기보다 피가 일정이하로 떨어졌을 때 죽을껄 예상(?) 하고 부활주문서를 사용하는 스크립트라고 보는것이 맞더라구요..?

  • 이태헌 2015.02.11 16:16
    이제야 딱 이해가 되었네요 ㅎㅎ
    좀 더 타이트하게 좌표 설정해서 사용해봐야겠어요 ㅎㅎ

List of Articles
분류 제목 글쓴이 최근변경 추천
정보 스크립트 제작 팁(?) 4 샤먼 2015.03.13 0/0
자유 (별되)노트3 하스작+아레나 스크립트 (1080 X 1920) 16 샤먼 2015.03.12 3/0
질문 갤3 휴대폰으로 스스스 하시는분 계신가요? 2 아크777 2015.02.09 0/0
자유 매크로 꼬임방지하기위해서는.. 1 clzls1 2015.02.10 0/0
자유 역삼신세경님 봐주세요 ㅎㅎ 아크777 2015.02.09 0/0
자유 베티엠(베가lte m)으로 구동하면 자꾸 튕기네요ㅠ b선생 2015.02.09 0/0
자유 히로는 의외로 1080p 스크립트?가 적네요.. 4 몬길아상타좀 2015.05.18 0/0
질문 히로매크로 실행시 창 상단에 색값 관련 질문입니다. 1 김물딩 2015.02.09 0/0
자유 히로-스크립트 별이되어라 (1~9번방 돌기) 10 둘수 2015.05.23 3/0
자유 노트2 히로쓰는분잇나요?? kwang 2015.02.08 0/0
질문 가끔씩 됐다 안 됐다 하는건.... 슬립 좀 넣어 주면 되... 1 성의있는닉 2015.02.10 0/0
질문 시즌 2지역 뚫기 스크립트 가지신분 계신가요? 핑크린 2015.02.08 0/0
질문 별이되어라 죽은거 인식할 때. 8 이태헌 2015.02.11 0/0
자유 별되 저만그런가요? 이틀전부터 증상 2 EcAce 2015.02.07 0/0
질문 색값 찾는법좀 알려주세요 5 서기 2015.02.10 0/0
자유 별되 히로매크로 핸드폰으로 돌리는 방법. 4 아네슬 2015.02.11 1/0
질문 별이되어라 히로 매크로 색값 계산하는 방법이 궁금합... 2 달과여울 2015.02.09 0/0
자유 갤3 몬길 히로 입문자입니다.... 123545 2015.02.07 0/0
질문 스스스작 매크로 어떻게 만드나요? 3 블루라이프 2015.02.10 0/0
질문 베가아이언 히로매크로 켄베 2015.02.07 0/0
Board Pagination Prev 1 ... 363738394041424344 ... 123 Next
/ 123

전체 최신 인기글

전체 주간 인기글