求飞翼buff流程



  • // raid.flow
    @toolbar skills
    // raid.flow
    <-stopSSAuto
    //技能列表
    [if] (skill) == null
    ($skill) = '基本拳脚','基本内功','基本轻功','基本招架','基本剑法','基本刀法','基本棍法','基本鞭法','基本暗器','基本杖法','金刚不坏体','燃木刀法','一指禅','一苇渡江','玄铁剑法','衡山五神剑','蛇岛奇功','神照经','金蛇锥法'
    @js ($Skill_num) = [(skill)].length

    //级别上限
    @js ($level) = /\d+/.exec($(".obj-money").text())['0']

    //弹出配置窗
    [if] (lianxi_map) == null
    ($lianxi_map) = 练功房
    [if] (chiyao) == null
    ($chiyao) = 否
    #input ($skill)=技能列表,(skill)
    #input ($target_level)=目标技能等级,(level)
    #select ($lianxi_map)=练习地点,练功房|帮会-练功房,(lianxi_map)
    #select ($chiyao)=是否吃冰心丹,是|否,(chiyao)
    #config

    //调用
    [if] (arg0) != null
    ($skill) = (arg0)
    [if] (arg1) != null
    ($target_level) = (arg1)
    [if] (arg2) != null
    ($lianxi_map) = (arg2)

    //传送到练功房
    stopstate
    cha
    $to (lianxi_map)

    //循环判断
    ($num)=0
    while < (Skill_num)
    //依次获取技能列表
    @js ($skill_name) = [(skill)][(num)]
    //获取技能id
    @js ($skill_id) = $(".skill-item:contains((skill_name))").eq('1').attr("skid")
    [if] (skill_id) == null
    @js ($skill_id) = $(".skill-item:contains((skill_name))").eq('0').attr("skid")
    //获取技能目前等级
    @js ($skill_level) = /\d+/.exec($("[skid=(skill_id)]").children(".skill-level").text())['0']
    @print <hig>目前技能等级:</hig><hiy>(skill_level)</hiy><hig>,预计目标等级:</hig><hiy>(target_level)</hiy>
    //判断目前等级和目标等级
    [if] (skill_level) >= (target_level)
    @print (skill_name)<hig>已到达目标等级</hig><hir>(target_level)</hir>
    stopstate
    ($num) = (num) + 1
    [else]
    //判断是否吃药
    [if] (:status food) == false && (chiyao) == 是 && {b冰心丹}? != null
    stopstate
    use {b冰心丹}
    @await 1000
    [if] (:state) != 练习
    lianxi (skill_id)
    @await 1000
    //判断是否用完潜能或者无法学习在发呆
    [if] (:state) == 发呆
    [break]
    @tip 等级提升了
    @await 2000

    $zdwk
    stopSSAuto->


登录后回复