;=======================================결투장=============================================
결투장:
Gui, Submit, Nohide
if 결투장 = 0
{
sleep, 500
goto, 길드전
}
if 결투장=1 ;결투장 체크됐다면 확인
{
sleep, 2000
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 마을대기 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
waitImage("\Image\마을대기.bmp")
goto, 결투장확인
return
결투장확인:
if(imageSearcher(x,y, "\Image\마을결투장확인.bmp")=1)
{
sleep, 500
goto, 결투장입장
}
else
{
sleep, 500
goto, 길드전
}
return
결투장입장:
sleep, 2000
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 결투장입장 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
sleep,2500
waitImage("\Image\결투장.bmp")
waitImageClick("\Image\결투장.bmp")
goto, 대전준비
return
대전준비:
Gui, Submit, Nohide
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 대전대기 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
sleep, 3000
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 업적확인 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
sleep, 2000
if(imageSearcher(x,y, "\Image\업적.bmp")=1)
{
업적발생++
Guicontrol,,업적발생,업적발생 : %업적발생%회
sleep, 1000
imageSearcher(x,y, "\Image\업적닫기.bmp")=1
sleep, 500
sendClick(x,y)
sleep, 200
}
else
{
sleep, 500
}
if(imageSearcher(x,y, "\Image\업적.bmp")=1)
{
업적발생++
Guicontrol,,업적발생,업적발생 : %업적발생%회
sleep, 1000
imageSearcher(x,y, "\Image\업적닫기.bmp")=1
sleep, 500
sendClick(x,y)
sleep, 200
}
else
{
sleep, 500
}
if(imageSearcher(x,y, "\Image\업적.bmp")=1)
{
업적발생++
Guicontrol,,업적발생,업적발생 : %업적발생%회
sleep, 1000
imageSearcher(x,y, "\Image\업적닫기.bmp")=1
sleep, 500
sendClick(x,y)
sleep, 200
}
else
{
sleep, 500
}
if(imageSearcher(x,y, "\Image\업적.bmp")=1)
{
업적발생++
Guicontrol,,업적발생,업적발생 : %업적발생%회
sleep, 1000
imageSearcher(x,y, "\Image\업적닫기.bmp")=1
sleep, 500
sendClick(x,y)
sleep, 200
}
else
{
sleep, 500
}
;=========================결투장 열쇠확인=========================================
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 열쇠확인 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
sleep,1000
if(imageSearcher(x,y, "\Image\결투장열쇠확인.bmp")=1)
{
sleep,1000
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 결투장종료 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
imageSearcher(x,y, "\Image\결투장뒤로.bmp")=1
sleep, 1500
sendClick2(78,48)
sleep, 500
IniWrite,%업적발생%, option.ini, LOG 기록,업적발생
IniWrite,%통신실패%, option.ini, LOG 기록,통신실패
IniWrite,%결투패배%, option.ini, LOG 기록,결투패배
IniWrite,%결투승리%, option.ini, LOG 기록,결투승리
IniWrite,%행동물약%, option.ini, LOG 기록,행동물약
IniWrite,%연속탐험%, option.ini, LOG 기록,연속탐험
IniWrite,%레이드성공%, option.ini, LOG 기록,레이드성공
IniWrite,%레이드실패%, option.ini, LOG 기록,레이드실패
IniWrite,%길드전승리%, option.ini, LOG 기록,길드전승리
IniWrite,%길드전패배%, option.ini, LOG 기록,길드전패배
IniWrite,%재시작발생%, option.ini, LOG 기록,재시작발생
IniWrite,%요일레이드%, option.ini, LOG 기록,요일레이드
IniWrite,%보상획득%, option.ini, LOG 기록,보상획득
sleep, 500
goto,길드전
}
else
{
sleep, 2000
}
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 대전준비 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
sleep, 500
waitImage("\Image\대전준비.bmp")
sleep, 500
waitImageClick("\Image\대전준비.bmp")
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 자동스킬대기 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 자동스킬확인중 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
sleep, 3000
Gui, Submit, Nohide
sleep, 3000
if H=1 ;자동스킬 체크됐다면 확인
{
sleep, 1000
if(imageSearchClick("\Image\결투장공격스킬.bmp"))
{
sleep, 200
}
else
{
sleep,500
}
}
if H=0
{
sleep, 100
}
Gui, Submit, Nohide
if I=1 ;자동스킬 체크됐다면 확인
{
;sleep, 1000
if(imageSearchClick("\Image\결투장방어스킬.bmp"))
{
sleep, 200
}
else
{
sleep,500
}
}
if I=0
{
sleep,100
}
Gui, Submit, Nohide
if J=1 ;자동스킬 체크됐다면 확인
{
;sleep, 1000
if(imageSearchClick("\Image\결투장체력스킬.bmp"))
{
;sendClick2(500,149)
sleep, 200
}
else
{
sleep,500
}
}
if J=0
{
sleep, 100
}
Gui, Submit, Nohide
if K=1 ;자동스킬 체크됐다면 확인
{
;sleep, 1000
if(imageSearchClick("\Image\결투장자동스킬.bmp"))
{
;sendClick2(570,143)
sleep, 200
}
else
{
sleep,500
}
}
if K=0
{
sleep, 100
}
sleep, 700
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 결투전보상확인 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
sleep,700
if(imageSearcher(x,y, "\Image\결투장보상.bmp")=1)
{
sendClick2( 650, 325)
sleep,500
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 결투장보상 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
보상획득++
Guicontrol,,보상획득,보상획득 : %보상획득%회
}
else
{
sleep,300
}
waitImage("\Image\대전시작.bmp")
sleep, 700
waitImageClick("\Image\대전시작.bmp")
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 대전시작 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
waitImageClick("\Image\결투장로딩.bmp")
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 전투중 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
waitImageClick("\Image\결투결과.bmp")
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 전투결과확인 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
sleep , 2500
if(imageSearcher(x,y, "\Image\결투승리.bmp")=1)
{
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 결투승리 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
결투승리++
Guicontrol,,결투승리,결투승리 : %결투승리%회
sleep, 2000
sendClick2(210,405)
sleep, 2000
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 결투연승확인 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
결투승리++
Guicontrol,,결투승리,결투승리 : %결투승리%회
sleep, 500
waitImage("\Image\결투결과확인.bmp")
sleep, 500
waitImageClick("\Image\결투결과확인.bmp")
sleep , 500
goto, 대전준비
}
else
{
imageSearcher(x,y, "\Image\결투패배.bmp")=1
sleep, 2000
formattime , nowtime,,MM-dd HH:mm:ss
guicontrol,,notice_2, %message_2%
listMessage =%nowtime% 결투패배 %message_2%|%listMessage%
guicontrol,,notice_list, |%listMessage%
결투패배++
Guicontrol,,결투패배,결투패배 : %결투패배%회
sleep, 500
waitImage("\Image\결투결과확인.bmp")
sleep, 500
waitImageClick("\Image\결투결과확인.bmp")
sleep , 500
goto, 대전준비
}
}
return
매크로 쓰면 정지먹나요?