매크로

조회 수 242 추천 0 댓글 1

바람의나라 미국서버를 하는 유저입니다.


며칠전부터 계속 여기저기 검색해서 공부해가며 노가다용 매크로를 만들고 있는데요.


도저히 제대로 작동하지를 않습니다..


1. 캐릭터가 랜덤함수를 통해 랜덤으로 이동한다.

2. 이미지서치를 통해 몬스터를 죽이고, 아이템을 루팅을 한다.

3. 몬스터와 루팅할 아이템이 없다면 계속해서 또 이동을 한다.

4. 인벤토리의 아이템이 꽉 차면 창고가 있는곳으로 귀환한다.

5. 아이템을 맡기고 사냥터가 있는 곳으로 되돌아간다.

6. 위에것들을 반복한다.


이게 제가 원하는 모양새인데... ㅠㅠㅠ 뭐가 문제인지를 모르겠네요. 도와주십셔... ㅠㅠ


F7::


이동:

{

Loop

{

ImageSearch, vx, vy, 0, 0, 1024, 768, *50 양털이오.png

If ErrorLevel = 0

{

sleep, 360000

}

If ErrorLevel = 1

{

Random, A, 1,4

if ( A = 1)

{

loop, 6

{

Send, {Left}

sleep, 150

}

}

else if ( A = 2)

{

loop, 6

{

Send, {up}

sleep, 150

}

}

else if ( A = 3)

{

loop, 6

{

Send, {right}

sleep, 150

}

}

else if ( A = 4)

{

loop, 6

{

Send, {Down}

sleep, 150

}

}

}

}

}


사냥:

{

Loop

{

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\가.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

sleep, 150

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\나.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\다.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\라.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\마.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}


ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\바.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\사.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\아.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\자.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\차.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\카.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

if ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 %A_Scriptdir%C:\Users\r\Desktop\g매크로\이미지캡처\타.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *40 파.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

Send, {5}

Mouseclick, left, %vx%,%vy%

sleep, 350

loop

{

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 350

send, {5}

sleep, 350

send, {enter}

sleep, 3500

}

}

IF ErrorLevel = 1

{

}

}

}


루팅:

{

Loop

{

ImageSearch, vx, vy, 0, 0, 1024, 768, *50 거.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

sleep, 250

Mouseclick, left, %vx%,%vy%

sleep, 5000

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *50 너.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

sleep, 250

Mouseclick, left, %vx%,%vy%

sleep, 5000

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *50 더.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

sleep, 250

Mouseclick, left, %vx%,%vy%

sleep, 5000

}

IF ErrorLevel = 1

{

}

ImageSearch, vx, vy, 0, 0, 1024, 768, *50 러.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

sleep, 250

Mouseclick, left, %vx%,%vy%

sleep, 5000

}

IF ErrorLevel = 1

{

}

}

}


귀환:

{

loop

{

ImageSearch, vx, vy, 0, 0, 1024, 768, *50 양털이오.png

if ErrorLevel = 0

{

vx:=vx+10

vy:=vy+10

sleep, 250

Send, {CtrlDown}c{d}

sleep, 360000

}

IF ErrorLevel = 1

{

}

}

}


창고:

{

Loop

{

ImageSearch, vx, vy, 0, 0, 1024, 768, *50 창고.png

If ErrorLevel = 0

{

Sleep, 4000

send, {down}

sleep, 150

send, {down}

sleep, 150

send, {down}

sleep, 150

send, {down}

sleep, 150

send, {down}

sleep, 150

send, {down}

sleep, 150

send, {down}

sleep, 150

send, {down}

sleep, 150

send, {down}

sleep, 150

send, {Left}

sleep, 150

send, {Left}

sleep, 150

send, {left}

sleep, 150

Send, {ENTER}

sleep, 150

Send, I will deposit all wool

sleep, 150

Send, {ENTER}

sleep, 150

Send, {ENTER}

sleep, 150

Send, Kugnae

sleep, 1500

Send, {ENTER}

sleep, 1500

Send, {ENTER}

sleep, 1500

Send, {down}

sleep, 1500

Send, {ENTER}

sleep, 550

Send, {CtrlDown}c{4}

sleep, 250

Send, n

sleep, 250

Send, {enter}

sleep, 250

}

IF ErrorLevel = 1

{

}

}

}



Alt::Pause

Esc::ExitApp


  • 달리니닷 2018.11.15 11:48

    어디서 어떻게 안되는지를 적어주셔야 도와드릴수 있지 않을까요 ㅠㅠ


List of Articles
분류 제목 글쓴이 최근변경 추천
질문 재질문... #IfWinActive 사용할 경우.. Rabbit 2016.08.17 0/0
질문 재시작후 설정 초기화 문제.. 5 파더 2014.11.29 0/0
질문 잠수타면 일부명령어가 실행이 안되는데 동영상녹화할... 3 꾸앙이 2018.10.22 0/0
질문 잘되던 매크로가 오작동을 하는이유? 1 zuzag 2017.03.29 0/0
질문 작업장 동업해보실분? 주7일 12시간교대근무 1 루릇 2019.08.28 0/0
질문 작동자체가 전혀 안되요 왜그럴가요?ㅠ 4 헬미미미 2017.10.10 0/0
질문 작동을 안하네요 ㅠㅠ 도와주세요.. 1 제작의뢰 2018.11.15 0/0
질문 자주쓰이는 해상도는 뭘까요? 포천아지 2017.09.17 0/0
질문 자동재부팅 / 재실행 질문드립니다. 7 파라마타 2018.06.06 0/0
질문 자동업데이트 2 천진 2018.05.29 0/0
질문 자동물약을 한번 만들어 볼려고 합니다. 12 꿈을낚는아이 2020.02.16 0/0
질문 자동물약을 만들고 있는중인데 막히는부분이 있어서요 2 에임1 2019.08.09 0/0
질문 자동 인터넷검색 질문 영창이염 2018.11.07 0/0
질문 자동 들여쓰기 질문 2 토스트 2015.08.23 0/0
질문 자꾸 매크로 실행하면 응답없음이 뜹니다 1 뿌뿌08 2021.03.19 0/0
질문 자기자신말고 다른오토핫키프로그램 모두종료 3 _Crash 2015.04.24 0/0
질문 입문자입니다. 오토핫키 클릭관련 질문있습니다! 7 헌잉 2015.02.07 0/0
질문 임의의 숫자가들은 변수를 소트하는방법을 좀 부탁드려요. 14 우후훅 2015.04.15 0/0
질문 일정시간마다 캡처후 메시지 보내는 매크로 7 초밥인간 2020.05.11 0/0
질문 일정시간마다 앱정지여부 체크해서 리스타트 하는 방법? 2 HyunYu 2015.05.14 0/0
Board Pagination Prev 1 ... 222324252627282930 ... 173 Next
/ 173

전체 최신 인기글

전체 주간 인기글