i = 0
While i = 0
Delay 300
FindPic 0,0,1280,1024,"Attachment:\家族总管.bmp",0.7,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+8, intY+8
Delay 300
LeftClick 1
Delay 300
FindPic 0,0,1280,1024,"Attachment:\家族任务不消耗体力值.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300
LeftClick 1
Delay 300
End If
FindPic 0,0,1280,1024,"Attachment:\家族任务我准备好了.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300
LeftClick 1
Delay 1500
End If
Goto 任务分析
Else 
KeyPress "F", 1
Delay 300
End If
FindPic 0,0,1280,1024,"Attachment:\NPC坐标家族总管.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300
LeftDoubleClick 1
Delay 4000
End If
FindPic 0,0,1280,1024,"Attachment:\家族任务不消耗体力值.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300
LeftClick 1
Delay 300
End If
FindPic 0,0,1280,1024,"Attachment:\家族任务我准备好了.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300
LeftClick 1
Delay 1500
End If
FindPic 0,0,1280,1024,"Attachment:\关掉窗口.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX + 2, intY + 2
Delay 300
LeftClick 1
Else 
End If
FindPic 0,0,1280,1024,"Attachment:\NPC坐标家族总管.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300
LeftDoubleClick 1
Delay 1000
End If
FindPic 0,0,1280,1024,"Attachment:\家族任务不消耗体力值.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300
LeftClick 1
Delay 300
End If
FindPic 0,0,1280,1024,"Attachment:\家族任务我准备好了.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300
LeftClick 1
Delay 1500
End If
FindPic 0,0,1280,1024,"Attachment:\关掉窗口.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX + 2, intY + 2
Delay 300
LeftClick 1
End If
Rem 任务分析
FindPic 0,0,1280,1024,"Attachment:\李婆婆任务.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
Goto 李婆婆任务找车夫离开家族地图
Else 
End If
FindPic 0,0,1280,1024,"Attachment:\逍遥子任务.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
i=1
Goto 逍遥子任务找车夫离开家族地图
End If
KeyPress "L", 1
Delay 500
FindPic 0,0,1280,1024,"Attachment:\任务栏家族任务.bmp",1,intX,intY
If intX > 0 And intY > 0 Then 
MoveTo intX+15, intY+5
Delay 300