EndIf 
                    If intX>=0 and intY>=0
                        LeftClick 1
                        QJAX=0
                        KeyUp 32,1
                        KeyUp 87,1
                        Goto 开始攻击
                    EndIf 
                EndFor 
                KeyUp 32,1
                RightUp 1
                QJAX=1
            EndIf 
        EndIf 
        Goto 1
    Else 
        Gosub 判断转向
        RightDown 1
        KeyDown 32,1
        Delay 100
        For 14
            Delay 40
            VBSCall FindColorEx(461,314,473,330,"78DABE",1,0.9,intX,intY)
            If intX>=0 and intY>=0
            Else 
                VBSCall FindColorEx(461,314,473,330,"98F1CD",1,0.9,intX,intY)
            EndIf 
            If intX>=0 and intY>=0
                LeftClick 1
                QJAX=0
                KeyUp 32,1
                KeyUp 87,1
                Goto 开始攻击
            EndIf 
        EndFor 
        KeyPress 87,2
        Delay 100
        KeyDown 87,1
        QJAX=1
        KeyUp 32,1
        IfColor 470,654,cfec54,2
        Else 
        EndIf 
        For 20
            Delay 40
            //  //    VBSCall FindColorEx(0,0,940,710,"2020ff",1,1,intX,intY)
            //       If intX>=0 and intY>=0
            ////            KeyPress 87,1
            //            QJAX=0
            //             Goto 1
            //          EndIf
            VBSCall FindColorEx(461,314,473,330,"78DABE",1,0.9,intX,intY)
            If intX>=0 and intY>=0
            Else 
                VBSCall FindColorEx(461,314,473,330,"98F1CD",1,0.9,intX,intY)
            EndIf 
            If intX>=0 and intY>=0
                LeftClick 1
                QJAX=0
                KeyUp 32,1
                Goto 开始攻击
                KeyUp 87,1
            EndIf 
        EndFor 
        Goto 1
    EndIf 
Return 擂台攻击
Sub 选择武器
    If wq=2 or wq=4
        IfColor 498,686,a00e1,0
            IfColor 635,725,ff,0
                KeyPress 49,1
                wq=1
                Goto 结束选择武器
            Else 
                KeyPress 51,1
                wq=3
                Goto 结束选择武器
            EndIf 
        Else 
            wq=2
            KeyPress 50,1
            Goto 结束选择武器
        EndIf 
    EndIf 
    If wq=3
        IfColor 645,685,a00e1,0
            IfColor 485,728,ff,0
                KeyPress 49,1
                wq=1
                Goto 结束选择武器
            Else 
                KeyPress 50,1
                wq=2
                Goto 结束选择武器
            EndIf 
        Else 
            KeyPress 51,1
            Goto 结束选择武器
        EndIf