If itX > 0 And itY > 0 Then
Rem 攻击
LeftClick 1
End If
FindPic 0,0,1440,900,"Attachment:\1.bmp",0.7,sX,sY
If sX > 0 And sY > 0 Then
KeyPress "2", 1
End If
FindPic 0,0,1440,900,"Attachment:\2.bmp",0.7,eX,eY
If eX > 0 And eY > 0 Then
KeyPress "3", 1
End If
FindPic 0,0,1440,900,"Attachment:\3.bmp",0.7,sX,sY
If sX > 0 And sY > 0 Then
KeyPress "1", 1
Delay 100
End If
FindPic 0,0,1440,900,"Attachment:\1l.bmp",0.7,sX,sY
If sX > 0 And sY > 0 Then
FindColorEx hpX-207,hpY-390,hpX-195,hpY-384,"9BF4CF",1,0.5,itX,itY
If itX > 0 And itY > 0 Then
LeftClick 1
Delay 350
LeftClick 1
Delay 350
LeftClick 1
Delay 350
LeftClick 1
Delay 350
LeftClick 1
Delay 350
LeftClick 1
Delay 350
LeftClick 1
Else
KeyPress "3", 1
End If
End If
FindPic 0,0,1440,900,"Attachment:\4l.bmp",0.7,hplX,hplY
If hplX > 0 And hplY > 0 Then
Goto 攻击
End If
FindColorEx hpX-207,hpY-390,hpX-195,hpY-384,"9BF4CF",1,0.5,itX,itY
If itX > 0 And itY > 0 Then
Goto 攻击
KeyPress "Esc", 1
Delay 10000
End If
End If
End Sub
FindPic 0,0,1440,900,"Attachment:\1l.bmp",0.7,ylX,ylY
If ylX > 0 And ylY > 0 Then
KeyPress "4", 1
End If
FindPic 0,0,1440,900,"Attachment:\2l.bmp",0.7,elX,elY
If elX > 0 And elY > 0 Then
KeyPress "4", 1
End If
FindPic 0,0,1440,900,"Attachment:\3l.bmp",0.7,slX,slY
If slX > 0 And slY > 0 Then
KeyPress "4", 1
End If
FindPic 0,0,1440,900,"Attachment:\4l.bmp",0.7,siX,siY
If siX > 0 And siY > 0 Then
KeyPress "4", 1
Delay 1000
LeftDown 1
RightDown 1
Delay 2000
RightUp 1
LeftUp 1
Delay 100
End If