EndIf 
IfColor 491,23,000000,0
    Goto 拾取
EndIf 
If datediff("s",gjjn3,now)>=gjjn3lqt
    KeyPress 115,1
    VBS gjjn3=now
    Delay gjjn3szt*1030
EndIf 
IfColor 491,23,000000,0
    Goto 拾取
EndIf 
KeyPress 49,1
Delay 1000
IfColor 491,23,000000,0
    Goto 拾取
EndIf 
//判断怪物血颜色看是否需要继续攻击
VBSCall FindColorEx(491,6,660,17,"060606",1,0.9,x,y)
If x>=0 and y>=0
    Goto 判断怪物血颜色看是否需要继续攻击
Else 
    Goto 拾取
EndIf 
Rem 判断怪物血颜色看是否需要继续攻击
//这个颜色需要确认
IfColor 491,23,000000,1
    Goto 攻击
EndIf 
Rem 拾取
KeyPress 32,1
Delay 1000
KeyPress 32,1
Delay 500
KeyPress 32,1
Delay 500
KeyPress 27,1
Delay 50
Rem 4
If n>1
    Goto 1
EndIf 
//右转90度
Rem 90
//人物是否需要坐下补蓝
IfColor 8+200*Var10,64,0d0200,2
    KeyPress 122,1
    Rem zuoxia3
    Delay 4000
    IfColor 8+200*Var10,64,0d0200,2
        Goto zuoxia3
    Else 
        KeyPress 122,1
        Delay 200
        Goto st1
    EndIf 
Else 
    Goto st1
EndIf 
Rem st1
//人物是否需要坐下补红
IfColor 8+200*Var11,49,000000,0
    KeyPress 122,1
    Rem zuoxia4
    Delay 4000
    IfColor 8+200*Var11,49,000000,0
        Goto zuoxia4
    Else 
        KeyPress 122,1
        Delay 200
        Goto st2
    EndIf 
Else 
    Goto st2
EndIf 
Rem st2
m=m-1
MoveTo 500,260
Delay 100
RightDown 1
Delay 100
MoveR 250,0
Delay 100
RightUp 1
Delay 100
If m>1
    Goto s
EndIf 
//前进4秒
MoveTo 500,125
Delay 100
LeftClick 1
Delay Var6*1000
Goto stt
Rem BOSS1
MoveTo 899 300
RightDown 1
Delay 100
MoveR -400,0
Delay 100