MoveTo 37,12
        Delay 200
        LeftClick 1
        Delay 100
        KeyDown 17,1
        KeyPress 56,1
        KeyUp 17,1
        VBS jxjn1=now
        Delay jxjn1szt*1030
    EndIf 
    Delay 100
EndIf 
//人物是否需要吃药补血
IfColor 8+200*Var0,49,000000,0
    KeyPress 117,1
    Delay 200
EndIf 
Delay 400
KeyPress 112,1
Delay 1000
//人物是否需要吃药补蓝
IfColor 8+200*Var9,64,0d0200,2
    KeyPress 118,1
    Delay 200
EndIf 
//宠物给人加BUFF1
If Var7=0
    Goto 不给人加BUFF
EndIf 
If datediff("s",bbforyouztjn1,now)>=bbforyouztjn1lqt
    MoveTo 37 12
    Delay 200
    LeftClick 1
    Delay 200
    KeyDown 18,1
    KeyPress 54,1
    KeyUp 18,1
    VBS bbforyouztjn1=now
    Delay bbforyouztjn1szt*1030
EndIf 
Rem 不给人加BUFF
//看宠物是否需要补蓝
IfColor 44+180*Var3,139,150d07,2
    MoveTo 45,135
    Delay 200
    LeftClick 1
    Delay 200
    KeyDown 17,1
    KeyPress 114,1
    KeyUp 17,1
    Delay 200
    KeyPress 27,1
EndIf 
//宠物是否给自己BUFF回蓝等
If Var8=0
    Goto BB不给自己加BUFF
EndIf 
If datediff("s",bbbuffjn1,now)>=bbbuffjn1lqt
    MoveTo 45,128
    Delay 100
    LeftClick 1
    Delay 100
    KeyDown 18,1
    KeyPress 53,1
    KeyUp 18,1
    Delay bbbuffjn1szt*1030
    VBS bbbuffjn1=now
    KeyPress 27,1
EndIf 
Rem BB不给自己加BUFF
//人物自己加BUFF123
If datediff("s",ztjn1,now)>=ztjn1lqt
    KeyPress 119,1
    VBS ztjn1=now
    Delay ztjn1szt*1030
EndIf 
Delay 100
If datediff("s",ztjn2,now)>=ztjn2lqt
    KeyPress 120,1
    VBS ztjn2=now
    Delay ztjn2szt*1030
EndIf 
Delay 100
If datediff("s",ztjn3,now)>=ztjn3lqt
    KeyPress 121,1
    VBS ztjn3=now
    Delay ztjn3szt*1030
EndIf 
//人物是否需要坐下补蓝
IfColor 8+200*Var10,64,0d0200,2
    KeyPress 122,1
    Rem zuoxia1
    Delay 4000
    IfColor 8+200*Var10,64,0d0200,2
        Goto zuoxia1
    Else 
        KeyPress 122,1
        Delay 200
        Goto st0
    EndIf