138wow 发表于 2025-1-9 12:24:14

WBE平衡德输出循环代码





代码功能如下:有目标 且 目标不是死物 且当前可以攻击 且 目标是在战斗状态 且 是咕咕状态,才开始如下输出
{
精灵火全程保持
起手放愤怒(补月火、虫群)
如果触发月蚀,放星火(补月火、虫群),直到日蚀触发则放愤怒(仅补虫群),直到触发月蚀。。。循环
}
按alt 星辰陨落
按shift 吹风有cd是吹风,没cd是飓风
按左边ctrl爆发手套、饰品
按右边ctrl 战复



WBE明文版:
--根据焦点的目标,判断是否进行攻击,规则为存在且未死亡且是敌对且在战斗中
if UnitExists("target")==1 and not UnitIsDeadOrGhost("target")and BeeUnitCanAttack("target")==1 and BeeUnitAffectingCombat("target")==1 and
BeeGetShapeshiftFormInfo(5) ==1
then
    --职业输出规则
    --吹风shift
    if IsShiftKeyDown() then
      if BeeSpellCoolDown("台风")==0 then
            BeeRun("/cast 台风","target")
      else if BeeSpellCoolDown("旋风")==0 then
                BeeRun("/cast 旋风","target")
            end
      end
    end
    --alt星辰陨落
    if IsAltKeyDown() then
      if BeeSpellCoolDown("星辰坠落")==0 then
            BeeRun("/cast 星辰坠落","target")
      end
    end
    --右ctrl 战复
    if IsRightControlKeyDown() then
      ifUnitExists("target") and UnitIsDeadOrGhost("target") and BeeIsRun("复生") then
            BeeRun("复生","target") return;end
    return;end
   
    --左ctrl爆发 10是手套,13饰品1,14饰品2
    if IsLeftControlKeyDown() then
      if BeeUnitAffectingCombat()then
            if GetItemSpell(GetItemInfo(GetInventoryItemLink('player',13))) and GetInventoryItemCooldown("Player",13)==0 then BeeRun("/use 13") return end
            if GetItemSpell(GetItemInfo(GetInventoryItemLink('player',10))) and GetInventoryItemCooldown("Player",10)==0 then BeeRun("/use 10") return end
            ifGetItemSpell(GetItemInfo(GetInventoryItemLink('player',14))) and GetInventoryItemCooldown("Player",14)==0 then BeeRun("/use 14")return end
      end
    end
   
    --输出
   
    if BeeUnitBuff("精灵之火","Target")<1 and BeeSpellCoolDown("精灵之火")==0 then BeeRun("精灵之火") end
   
    if ry==nil or ry==0 then
      if BeePlayerBuffTime("月蚀")>=0 then ry=1;return end
      if BeeUnitBuff("月火术","Target")<1 and BeeSpellCoolDown("月火术")==0 then BeeRun("月火术")   end
      if BeeUnitBuff("虫群","Target")<1 and BeeSpellCoolDown("虫群")==0 then BeeRun("虫群") end
      if BeeIsRun("愤怒","target") then BeeRun("愤怒","target"); end
    end
   
    if ry==1 then
      if BeePlayerBuffTime("日蚀")>=0 then ry=0;return end
      if BeeUnitBuff("月火术","Target")<1 and BeeSpellCoolDown("月火术")==0 then BeeRun("月火术")   end
      if BeeIsRun("星火术","target") then BeeRun("星火术","target"); end
    end
end

页: [1]
查看完整版本: WBE平衡德输出循环代码