bt123456 发表于 2023-4-5 09:51:27

问下老大们战士冲锋怎么自动变回防御姿势

老大们战斗姿势冲锋。冲锋完后自动切回防御姿势怎么写~~~
local nq = BeeUnitMana()
if IsSpellInRange("冲锋","target")==1 orIsSpellInRange("拦截","target")==1then
    ifnot BeeUnitAffectingCombat() then
      if notBeeGetShapeshiftFormInfo(1)and BeeIsRun("战斗姿态","nogoal") then
            CastShapeshiftForm(1)return;end
      if BeeGetShapeshiftFormInfo(1)   and BeeIsRun("冲锋") then
            BeeRun("冲锋","Target") return;end
      if BeeSpellCD("冲锋")>0 then


许文嵩 发表于 2023-4-5 11:11:12

冲锋CD不为0   切换为防御姿态    冲锋CD为0切不在战斗中切换战斗姿态   试试看行不行

bt123456 发表于 2023-4-5 11:31:26

local nq = BeeUnitMana()
if IsSpellInRange("冲锋","target")==1 orIsSpellInRange("拦截","target")==1then
    ifnot BeeUnitAffectingCombat() then
      if notBeeGetShapeshiftFormInfo(1)and BeeIsRun("战斗姿态","nogoal") then
            CastShapeshiftForm(1)return;end
      if BeeGetShapeshiftFormInfo(1)   and BeeIsRun("冲锋") then
            BeeRun("冲锋","Target") return;end
      if BeeSpellCD("冲锋")>0 then
            ifnot BeeGetShapeshiftFormInfo(3)and BeeIsRun("狂暴姿态","nogoal") thenCastShapeshiftForm(3)return;end
            if nq>=10andBeeGetShapeshiftFormInfo(3)and BeeIsRun("拦截") then
                BeeRun("/cast 拦截\n/cast 血性狂暴","Target") return;end
      return;end
    return;end
    if BeeUnitAffectingCombat() then
      ifnot BeeGetShapeshiftFormInfo(3)and BeeIsRun("狂暴姿态","nogoal") then
            CastShapeshiftForm(3)return;end
      if nq>=10andBeeGetShapeshiftFormInfo(3)and BeeIsRun("拦截") then
            BeeRun("拦截","Target") return;end
    return;end
return;end
脚本是这样的要怎么改老大~~~

bt123456 发表于 2023-4-5 11:33:51

许文嵩 发表于 2023-4-5 11:11 AM
冲锋CD不为0   切换为防御姿态    冲锋CD为0切不在战斗中切换战斗姿态   试试看行不行

你看下要怎么改在楼下~~~
页: [1]
查看完整版本: 问下老大们战士冲锋怎么自动变回防御姿势