Else
            End if
            Call 技能6()
        Else
            Delay 100  
            Goto 战斗中
        End if

    Else
        Call 技能6()
    End if
End Sub
Sub 技能6()
    //技能6
    If jnkg6=1 then
        jn6b = Plugin.GetSysInfo.GetTime()
        jn6c=jn6b-jn6a
        Delay 100 
        
        IfColor 479+w1,82+h1,"2028D0",0 Then
            If jn6c>jn6*1000  Then
                KeyPress 54, 1
                jn6a= Plugin.GetSysInfo.GetTime()
                Delay 100 
            Else
            End if
            Call 技能7()
        Else
            Delay 100  
            Goto 战斗中
        End if

    Else
        Call 技能7()
    End if
End Sub
Sub 技能7()
    //技能7
    If jnkg7=1 then
        jn7b = Plugin.GetSysInfo.GetTime()
        jn7c=jn7b-jn7a
        Delay 100 
        
        IfColor 479+w1,82+h1,"2028D0",0 Then
            If jn7c>jn7*1000  Then
                KeyPress 55, 1
                jn7a= Plugin.GetSysInfo.GetTime()
                Delay 100 
            Else
            End if
            Call 技能8()
        Else
            Delay 100  
            Goto 战斗中
        End if

    Else
        Call 技能8()
    End if
End Sub
Sub 技能8()
    //技能8
    If jnkg8=1 then
        jn8b = Plugin.GetSysInfo.GetTime()
        jn8c=jn8b-jn8a
        Delay 100 
        
        IfColor 479+w1,82+h1,"2028D0",0 Then
            If jn8c>jn8*1000  Then
                KeyPress 56, 1
                jn8a= Plugin.GetSysInfo.GetTime()
                Delay 100 
            Else
            End if
            Goto 战斗中
        Else
            Delay 100  
            Goto 战斗中
        End if

    Else
        Goto 战斗中
    End if
End Sub




Sub 优先打近身怪()

    Delay 30

    ifColor 479+w1,82+h1,"2028D0",0 Then
    
        Delay 100 
        Goto 战斗中 
    Else
    
        FindCenterColor w1,h1,w2,h2,"00FC00",intX,intY
        If intX > 0 And intY > 0 Then