PutAttachment .\[羽枫]\[练级脚本] HpSpColor.ini
PutAttachment .\[羽枫]\[练级脚本]\[弓盗篇] Setting.ini
//////////////// 初始化
Htype=1
Ctype=1
Ttype=1
Wtype=1
HPdelay=8
HPlower=50
HPlowerColor="52616B"
CallForHelp=1
////////////////////////
SettingFile = "Setting.ini"
SettingFolder = "[弓盗篇]\"
ScriptFolder = "[羽枫]\[练级脚本]\"
HpSpColorFile= "HpSpColor.ini"
Wtime=DateAdd("s",-10,now)
Dtime=0
Ctime=0
Htime=0
Stime=0
Chgtime = 0
Died = 0
HPlowerY = 597-CInt(HPlower/100*86)
//////////////////////////// 设置参数
KeyPress 13,1
Delay 50
Mystring = "[羽枫练级脚本之弓盗篇][2.0]版 By CDK1 YS:飘飘的枫"
Gosub 说话
Gosub 加载脚本设置
Gosub 参数设置
EndScript 
//////////////////////////// 挂机
Rem 准备开始
KeyPress 13,1
Delay 50
Mystring="/trade off"
Gosub 说话
Mystring="/effectoff"
Gosub 说话
Mystring="/off"
Gosub 说话
KeyPress 27,3
Delay 200
KeyDown 16,1
Delay 200
Rem 开始
Gosub 补充体力
Gosub 判断死亡
Rem CP判断
IfColor 775,591,ad7942,0
    If Ctime = 0
        Delay 400
        Gosub 判断血量
        Delay 400
        For 3
            LeftClick 1
            Delay 10
        EndFor 
        MoveTo Skill_X,Skill_Y
        Delay 80
        RightDown 2
        Stime = now
        Gosub 判断血量
        Delay 350
        RightUp 1
        Delay 50
        MoveTo Attack_X,Attack_Y
        Delay 50
        Rem 使用冰雹
        //  IfColor 745 507 217539 0
        IfColor 745,595,217129,0
            Atime = now
            Rem 开始打怪
            Gosub 判断血量
            Gosub 攻击
            IfColor 745,595,217129,0
                If Datediff("s",Atime,now) <= 30
                Else 
                    Gosub 取消国战
                    Gosub 更换武器
                    Gosub 判断死亡
                EndIf 
                Goto 开始打怪
            EndIf 
        Else 
            If Datediff("s",Stime,now) <= 4
                Gosub 攻击
                Goto 使用冰雹
            Else 
                Gosub 取消国战
                Gosub 更换武器
                Delay 200
                Gosub 判断血量
                KeyPress 112 1
                Gosub 攻击
                Gosub 判断血量
            EndIf 
        EndIf 
    Else