SetSimMode 2
FindPic 0,0,1024,768,"Attachment:\2.bmp",0.6,intX1,intY1
If intX1 > 0 And intY1 > 0 Then
MoveTo intX1, intY1
Delay 50
LeftClick 1
Delay 50
End If
Rem 跑图
FindPic 0,0,1024,768,"Attachment:\保卫.bmp",0.2,intX,intY
If intX > 0 And intY > 0 Then
Delay 500 // 跑图中....
KeyPress "G", 1
Delay 600
KeyPress "G", 1
KeyDown "D", 1
Delay 300
KeyUp "D", 1
KeyDown "w",1
Delay 10500
KeyDown "d",1
Delay 2300
KeyUp "D", 1
KeyUp "w", 1
Delay 300
KeyDown "a",1
Delay 400
KeyUp "a", 1
KeyDown "w",1
Delay 3000
KeyUp "w",1
Delay 100
KeyDown "a",1
Delay 650
KeyUp "a",1
Delay 1000
KeyDown "s",1
Delay 300
KeyUp "s",1
Delay 300
rem 攻击
MoveR -250, 0
Delay 200
For 40
MoveR -6, 0
Delay 1
MoveR -6, 0
Delay 1
MoveR -6, 0
Delay 1
LeftClick 1
Delay 1
Next
MoveR -210, 0
else
goto 跑图
End If