매크로

조회 수 2618 추천 2 댓글 40

1편 :?http://tailstar.net/hiromacro/1002422

2편 :?http://tailstar.net/hiromacro/1013187

3편 : http://tailstar.net/hiromacro/1033892


이거 제작 강좌라고 적어 놓고 그냥 쭉~~~~~~~~스크립트 설명만 하고 있네요 ;;

이번 편은 지난편에 이은 장비 판매 스크립트입니다.?
스스스작을 기준으로 날림으로 수정만 한 스크립트라?
가방 안에 보석이 있다면 보석도 팔 가능성도 있는 스크립트 임을 밝힙니다..
사용에 주의를 바랍니다


기존 꼬이는 부분이 물약이 중첩해서 계속 나오면서 인벤을 차지해 버리면?

등급이하 모두 판매 로는 물약을 처리할 방법이 없게 됩니다..

그리하여....

분기점을 하나 더 만들어서?

한 라인 안에서 앞과 뒤를 모두 체크 했는데도 아이템 디테일 창이 열려있다 면
그 한줄의 아이템을 각각 판매 를 하나 넣어서 물약을 정리 하도록 만들어 놨습니다.?
마지막 부분의 보라색으로 처리된 스크립트이며?

당분간 장비 판매 스크립트에 대해서는 잠깐 뒤로 하고 이 다음부터는 일일 스스스작 스크립트를 한번 알아 보도록 하겠습니다. !!


:inven1
#invline = 0
sleep 1500
getcolor #backcheck #backx #backy
sleep 1000

if #backcheck == #back
getcolor #invc1 #inx1 #iny1
getcolor #invc2 #inx2 #iny1
getcolor #invc3 #inx3 #iny1
getcolor #invc4 #inx4 #iny1
sleep 1000
log #invc1 _invc1_1
log #invc2 _invc2_1
log #invc3 _invc3_1
log #invc4 _invc4_1
else
goto :inven1
endif


if #invc1 == #invw or #invc1 == #invg or #invc1 == #invb or #invc1 == #invp
#invline = #invline + 1
touchpress 0 #inx1 #inych1
elseif #invc2 == #invw or #invc2 == #invg or #invc2 == #invb or #invc2 == #invp
#invline = #invline + 2
touchpress 0 #inx2 #inych1
elseif #invc3 == #invw or #invc3 == #invg or #invc3 == #invb or #invc3 == #invp
#invline = #invline + 3
touchpress 0 #inx3 #inych1
elseif #invc4 == #invw or #invc4 == #invg or #invc4 == #invb or #invc4 == #invp
#invline = #invline + 4
touchpress 0 #inx4 #inych1
else
goto :inven2
endif

log #invline _invenline

sleep 1000
touchpress 0 #sex #sey
log touch sell_1
sleep 1000
touchpress 0 #asx #asy
sleep 1000
getcolor #closecheck #closex #closey
sleep 1000
if #closecheck == #closec
touchpress 0 #closex #closey
sleep 1000
goto :inven2
else?
goto :invenout
endif

:inven2
if #invline == 1
goto :inven11
elseif #invline == 2
goto :inven12
elseif #invline == 3
goto :inven13
elseif #invline == 4
goto :inven14
endif

:inven11
getcolor #invc1 #inx1 #iny2
getcolor #invc2 #inx2 #iny2
getcolor #invc3 #inx3 #iny2
getcolor #invc4 #inx4 #iny2
sleep 1000
log #invc2 _invc2_1_1
log #invc3 _invc3_1_1
log #invc4 _invc4_1_1
if #invc1 == #invw or #invc1 == #invg or #invc1 == #invb or #invc1 == #invp
touchpress 0 #inx1 #inych2
elseif #invc2 == #invw or #invc2 == #invg or #invc2 == #invb or #invc2 == #invp
touchpress 0 #inx2 #inych2
elseif #invc3 == #invw or #invc3 == #invg or #invc3 == #invb or #invc3 == #invp
touchpress 0 #inx3 #inych2
elseif #invc4 == #invw or #invc4 == #invg or #invc4 == #invb or #invc4 == #invp
touchpress 0 #inx4 #inych2
else
goto :invenout
endif

goto :invcon
:inven12
getcolor #invc2 #inx2 #iny2
getcolor #invc3 #inx3 #iny2
getcolor #invc4 #inx4 #iny2
sleep 1000
log #invc2 _invc2_1_1
log #invc3 _invc3_1_1
log #invc4 _invc4_1_1
if #invc2 == #invw or #invc2 == #invg or #invc2 == #invb or #invc2 == #invp
touchpress 0 #inx2 #inych2
elseif #invc3 == #invw or #invc3 == #invg or #invc3 == #invb or #invc3 == #invp
touchpress 0 #inx3 #inych2
elseif #invc4 == #invw or #invc4 == #invg or #invc4 == #invb or #invc4 == #invp
touchpress 0 #inx4 #inych2
else
goto :invenout
endif

goto :invcon
:inven13

getcolor #invc3 #inx3 #iny2
getcolor #invc4 #inx4 #iny2
sleep 1000
log #invc3 _invc3_1_1
log #invc4 _invc4_1_1
if #invc3 == #invw or #invc3 == #invg or #invc3 == #invb or #invc3 == #invp
touchpress 0 #inx3 #inych2
elseif #invc4 == #invw or #invc4 == #invg or #invc4 == #invb or #invc4 == #invp
touchpress 0 #inx4 #inych2
else
goto :invenout
endif

goto :invcon
:inven14
getcolor #invc4 #inx4 #iny2
sleep 1000
log #invc4 _invc4_1_1_4

if #invc4 == #invw or #invc4 == #invg or #invc4 == #invb or #invc4 == #invp
touchpress 0 #inx4 #inych2
else
goto :invenout
endif
goto :invcon

:invcon
sleep 1000
touchpress 0 #sex #sey
log touch sell_2
sleep 1000
touchpress 0 #asx #asy
sleep 1000

getcolor #closecheck #closex #closey
sleep 1000
if #closecheck == #closec
touchpress 0 #closex #closey
sleep 1000
goto :inven3
else?
goto :invenout
endif


:inven3
if #invline == 1
touchpress 0 #inx1 #inych1
elseif #invline == 2
touchpress 0 #inx2 #inych1
elseif #invline == 3
touchpress 0 #inx3 #inych1
elseif #invline == 4
touchpress 0 #inx4 #inych1
else
goto :inven1
endif

touchpress 0 #sex #sey
sleep 1000
touchpress 0 #asx #asy2
sleep 1000
touchpress 0 #sex #sey
sleep 1000
touchpress 0 #asx #asy2
sleep 1000
touchpress 0 #sex #sey
sleep 1000
touchpress 0 #asx #asy2
sleep 1000
touchpress 0 #sex #sey
sleep 1000
touchpress 0 #asx #asy2
sleep 1000

goto :invenout


// goto :invenout
// else
// touchpress 0 #asx #asy
// sleep 1000
// #invline = #invline + 1
// goto :inven2
//endif

:invenout
sleep 1000
getcolor #backcheck #backx #backy
sleep 1000
if #back == #backcheck
touchpress 0 #backx #backy
sleep 1000
goto :dun
else
goto :invenout
endif

:end


List of Articles
제목 글쓴이 최근변경 추천
00시간 00분 동안 대기 하기 7 하늘보글이 2023.01.16 0/0
초보용 반복 강좌 159 존레넌 2023.09.21 5/0
초보의 초보를위한 매크로를 만들때 하나의 프로세스. 91 묵응 2023.08.27 15/0
한글로 만들어보는 매크로. 35 묵응 2019.11.22 5/0
생초보도 만들수 있는 매크로 (Feat.한글로 풀어보는 ... 73 묵응 2021.05.02 8/0
본격 매크로 스크립트 만들어보기(1) 66 샤먼 2023.07.27 4/0
if 구문 예제 31 샤먼 2022.01.12 5/0
기본 구문 설명 : if 36 샤먼 2019.08.20 5/0
기본 문구 설명 var, getcolor 55 샤먼 2019.01.15 6/0
기본 구문 설명 touchpress, touchdown, touchup, touc... 49 샤먼 2019.11.22 6/0
히로매크로에서 하드웨어키로 스크린샷을 찍어보자! 43 닷찌 2020.04.01 3/0
히로매크로 쉽게 알기 - 4 (별이되어라 스스스작 좌표... 126 태환은린 2021.07.19 12/0
히로매크로 쉽게 알기 - 3 (스크립트 복사와 수정법) 96 태환은린 2019.11.22 8/0
히로매크로 제작 강좌-4 (부제: 장비 판매) 40 샤먼 2018.05.24 2/0
히로매크로 쉽게 알기 - 2 (별이되어라 모든사냥터사냥... 160 태환은린 2019.11.22 9/0
히로매크로 쉽게 알기 - 1 308 태환은린 2023.07.21 33/0
히로매크로 제작 강좌-3 (부제: 장비 판매) 46 샤먼 2021.04.29 3/0
심심해서 발로 써보는 히로매크로 강좌_3 75 가풍기 2020.10.09 12/0
히로매크로 제작 강좌-2 (부제: 장비 판매) 59 샤먼 2022.02.18 2/0
히로메크로 제작 강좌-1 (부제: 장비 판매) 121 샤먼 2021.02.13 8/0
Board Pagination Prev 1 2 Next
/ 2

전체 최신 인기글

전체 주간 인기글