//↓找快捷键字母"F",如没找到,则说明没放上技能
If Rx>1000 then
XY=Plugin.Color.FindShape(Lx+512,Ty+654,Lx+547,Ty+689,"1|0|1,2|0|1,3|0|1,4|0|1,0|1|0,1|1|1,2|1|0,3|1|0,4|1|1,0|2|0,1|2|1,2|2|0,3|2|1,4|2|0,0|3|0,1|3|1,2|3|1,3|3|1,4|3|0,0|4|0,1|4|1,2|4|0,3|4|1,4|4|0,0|5|0,1|5|1,2|5|0,3|5|0,4|5|0,-1|6|0,0|6|0,1|6|1,2|6|0,3|6|0,-1|7|0,0|7|1,1|7|1,2|7|1,3|7|0,-1|8|0,0|8|0,1|8|0,2|8|0,3|8|0",0.8)
Else
XY=Plugin.Color.FindShape(Lx+400,Ty+542,Lx+435,Ty+577,"1|0|1,2|0|1,3|0|1,4|0|1,0|1|0,1|1|1,2|1|0,3|1|0,4|1|1,0|2|0,1|2|1,2|2|0,3|2|1,4|2|0,0|3|0,1|3|1,2|3|1,3|3|1,4|3|0,0|4|0,1|4|1,2|4|0,3|4|1,4|4|0,0|5|0,1|5|1,2|5|0,3|5|0,4|5|0,-1|6|0,0|6|0,1|6|1,2|6|0,3|6|0,-1|7|0,0|7|1,1|7|1,2|7|1,3|7|0,-1|8|0,0|8|0,1|8|0,2|8|0,3|8|0",0.8)
End If
ZB = InStr(XY,"|")
X = Clng(Left(XY, ZB - 1)): Y = Clng(Right(XY, Len(XY) - ZB))
If X < 0 and Y < 0 Then
Goto F6群
End If
daqunk = 1
//↑大群开关daqunk
KeyPress "F6", 1
Delay 200
MoveTo Lx + 0.5 * Rx, Ty + 0.54 * By
Delay 1000
shape=GetCursorShape(0)
If shape = pkdm Then
//↑如果是鼠标(剑)形状代码,拖放群
LeftDown 1
Delay 500
LeftUp 1
Delay 700
tf6=now
End If
daqunk = 0
//↑大群开关daqunk
Rem F6群
End If
End If
Delay 100
If attack = 1 Then
//↑此处F7只用普通攻击技,不用大群
If DateDiff("s", tf7, now) >= sf7 Then
KeyPress "F7", 1
tf7=now
Delay 100
End If
End If
If attack = 2 Then
//↑此处F7群攻技能(拖放)
If DateDiff("s", tf7, now) >= sf7 Then
//↓找快捷键字母"F",如没找到,则说明没放上技能
If Rx>1000 then
XY=Plugin.Color.FindShape(Lx+548,Ty+654,Lx+583,Ty+689,"1|0|1,2|0|1,3|0|1,4|0|1,0|1|0,1|1|1,2|1|0,3|1|0,4|1|1,0|2|0,1|2|1,2|2|0,3|2|1,4|2|0,0|3|0,1|3|1,2|3|1,3|3|1,4|3|0,0|4|0,1|4|1,2|4|0,3|4|1,4|4|0,0|5|0,1|5|1,2|5|0,3|5|0,4|5|0,-1|6|0,0|6|0,1|6|1,2|6|0,3|6|0,-1|7|0,0|7|1,1|7|1,2|7|1,3|7|0,-1|8|0,0|8|0,1|8|0,2|8|0,3|8|0",0.8)
Else
XY=Plugin.Color.FindShape(Lx+436,Ty+542,Lx+471,Ty+577,"1|0|1,2|0|1,3|0|1,4|0|1,0|1|0,1|1|1,2|1|0,3|1|0,4|1|1,0|2|0,1|2|1,2|2|0,3|2|1,4|2|0,0|3|0,1|3|1,2|3|1,3|3|1,4|3|0,0|4|0,1|4|1,2|4|0,3|4|1,4|4|0,0|5|0,1|5|1,2|5|0,3|5|0,4|5|0,-1|6|0,0|6|0,1|6|1,2|6|0,3|6|0,-1|7|0,0|7|1,1|7|1,2|7|1,3|7|0,-1|8|0,0|8|0,1|8|0,2|8|0,3|8|0",0.8)
End If
ZB = InStr(XY,"|")
X = Clng(Left(XY, ZB - 1)): Y = Clng(Right(XY, Len(XY) - ZB))
If X < 0 and Y < 0 Then
Goto F7群
End If
daqunk = 1
//↑大群开关daqunk
KeyPress "F7", 1
Delay 200
MoveTo Lx +0.5 * Rx, Ty +0.54 * By
Delay 1000
shape=GetCursorShape(0)
If shape = pkdm Then
//↑如果不是鼠标(剑)形状代码,,拖放群
LeftDown 1
Delay 500
LeftUp 1
Delay 700
tf7=now
End If
daqunk = 0
//↑大群开关daqunk
Rem F7群
End If
End If
Delay 100
If pkms = 1 Then
//↑打怪模式,此处用F1-F7攻
Goto 辨别
End If
If DateDiff("s", talt2, now) >= salt2 Then
KeyDown "Alt", 1
Delay 49
KeyPress "2", 1
Delay 51
KeyUp "Alt", 1
talt2=now
Delay 100
End If
Delay 100
If DateDiff("s", talt3, now) >= salt3 Then
KeyDown "Alt", 1
Delay 49
KeyPress "3", 1
Delay 51
KeyUp "Alt", 1
talt3=now
Delay 100
End If
Delay 100
If DateDiff("s", talt4, now) >= salt4 Then