Delay 300
KeyDown 17,1
KeyPress 90,1
KeyUp 17,1
Rem 开练
Delay 200
While 1=1
    IfColor 154,12,63cb7b,0
        KeyPress 192,1
        Gosub 无怪时间
        Delay 100
    Else 
        Goto 怪死否
    EndIf 
EndWhile 
Rem 怪死否
While 1=1
    IfColor 612,20,52efef,1
        Goto 技能加血
    Else 
        Delay 50
    EndIf 
EndWhile 
Rem 技能加血
While 1=1
    KeyPress 50,1
    MoveTo 60,55
    LeftClick 1
    IfColor 100,20,737573,0
        Goto 没魔休息
    Else 
        Delay 200
    EndIf 
    IfColor 212,12,63cb7b,0
        Goto 开练
    Else 
        Delay 1000
    EndIf 
EndWhile 
Rem 没魔休息
Delay 100
KeyPress 32,1
While 1=1
    IfColor 233,20,d6926b,0
        Delay 200
        KeyPress 32,1
        Goto 开练
    Else 
        Delay 200
    EndIf 
EndWhile 
Sub 无怪时间
    VBS T=1
    While T<=80
        IfColor 612,20,52efef,1
            Delay 100
            VBS T=T+1
            KeyPress 192,1
        Else 
            Goto 出黄色
        EndIf 
    EndWhile 
    KeyDown 17,1
    KeyPress 90,1
    KeyUp 17,1
    Rem 点地图
    Delay 500
    KeyPress 77,1
    Delay 500
    MoveTo 567,543
    LeftDoubleClick 1
    Delay 300
    LeftDoubleClick 1
    Delay 300
    LeftDoubleClick 1
    Delay 200
    KeyPress 77,1
    Delay 500
    Gosub 地图关否
    Delay 5000
    P=1
    While P<=10
        KeyPress 9,1
        Delay 1200
        IfColor 612,20,52efef,0
            Goto 是盗贼
        Else 
            P=P+1
        EndIf 
    EndWhile 
    Goto 点地图
    Rem 是盗贼
    KeyDown 17,1
    KeyPress 90,1
    KeyUp 17,1
    Rem 自动攻否
    While 1=1
        IfColor 106,52,ffd3a5,0
            IfColor 164,52,ffd3a5,0
                Delay 100