i = 0
While i=0
//判断是否在城中//
FindPic 0,0,1280,960,"Attachment:\离开副本2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
Goto 进入副本
Else 
Goto 可接任务
End If

//跳出副本//
Rem 跳出副本
FindPic 0,0,1280,960,"Attachment:\任务.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
Goto 当前任务
Else 
LeftClick 1
Delay 200
Goto 跳出副本
End If

//任务接取界面//
Rem 任务接取界面
For 10

Delay 1000
FindPic 0,0,1280,960,"Attachment:\任务接取4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
Goto 任务接取
Else 
Goto 副本选择界面
End If

//副本选择界面//
Rem 副本选择界面
FindPic 0,0,1280,690,"Attachment:\副本选择界面1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
Goto 副本选择

End If
Next
//可接任务//
Rem 可接任务
FindPic 0,0,1280,960,"Attachment:\任务.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+18,intY
End If
Delay 200
LeftClick 1
Delay 1000
FindColor 1089,281,1236,383," 00F2FF",intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX,intY
Delay 200
LeftClick 1

Goto 任务接取界面
Else Goto 当前任务
End If

//当前任务//
Rem 当前任务
FindPic 0,0,1280,960,"Attachment:\任务.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX-18,intY
End If

Delay 200
LeftClick 1 
Delay 1000
FindColor 1097,284,1142,392," 00FF00",intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX, intY
Delay 200
LeftClick 1
Goto 任务接取界面
Else FindColor 1067,232,1234,343,"00F2FF",intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX,intY
Delay 200
LeftClick 1
Delay 200
Goto 任务接取界面
End If 
End If
Goto 可接任务
//任务接取//
Rem 任务接取
FindPic 0,0,1280,960,"Attachment:\任务接取4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+10,intY+95
Delay 200
LeftClick 1
Delay 200
FindPic 0,0,1280,960,"Attachment:\邀请.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX, intY
Delay 200
LeftClick 1
End If