Gosub 战吼2
Return 防御2
//===================每250秒加一次战吼(按键5)=========================
Sub 战吼2
    If datediff("s",thistime2,now)>240
        //VBSCall messagebox(datediff("s",thistime,now))
        Delay 100
        KeyPress 53,1
        Delay 2500
        thistime2=now
    EndIf 
    Gosub 更换武器2
Return 战吼2
//===================每1.5小时更换一次武器(按键7)=========================
Sub 更换武器2
    If datediff("s",thistime3,now)>5400
        Delay 100
        KeyPress 55,1
        Delay 2500
        thistime3=now
    EndIf 
    If datediff("s",thistime4,now)>10800
        Delay 100
        KeyPress 9,1
        Delay 2500
        thistime4=now
    EndIf 
    Gosub Kill NPC2
Return 更换武器2
//======================打怪(按键1和2)=================================
Sub Kill NPC2
    KeyPress 67,1
    Delay 300
    For MaxTime
        IfColor 2,122,8cbeef,2
            IfColor 47,123,6b,2
                KeyPress 49,1
                Delay 500
            Else 
                For 40
                    IfColor 47,123,6b,2
                        IfColor 2,122,8cbeef,2
                            KeyPress 50,1
                            Delay 500
                        Else 
                            Gosub 补血2
                        EndIf 
                    Else 
                        Gosub 补血2
                    EndIf 
                EndFor 
            EndIf 
        Else 
            Gosub 补血2
        EndIf 
    EndFor 
Return Kill NPC2