LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 127|回复: 3

[wowbee] 如何在这段命令中加入战士的刺耳怒吼

[复制链接]
发表于 2023-5-13 11:01:55 | 显示全部楼层 |阅读模式
local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
local RAGE = UnitPower("player")
local zd  = BeeGetShapeshiftFormInfo(1)
local kn  = BeeGetShapeshiftFormInfo(3)
local youxiao = UnitExists("target")==1 and not UnitIsDeadOrGhost("target")
--姿态
if not BeeUnitAffectingCombat() and youxiao
then
    if BeeSpellCoolDown("冲锋")==0 then
        BeeRun("/cast 战斗姿态")
    else
        BeeRun("/cast 狂暴姿态")
    end  
end
if zd and not BeeUnitAffectingCombat() and youxiao and BeeRange("target")>=8 then BeeRun("冲锋") return
end
if BeeRange("target")<8 and not kn then BeeRun("/cast 狂暴姿态") return
end
--输出循环,shift顺劈斩,否则英勇打击
if  BeeUnitAffectingCombat() and youxiao and kn then
    if BeePlayerBuffTime("战斗怒吼")<0  and BeePlayerBuffTime("强效力量祝福")<0 and BeePlayerBuffTime("力量祝福")<0 and  RAGE>=10 then
        BeeRun("战斗怒吼")
        return
    end
    if BeePlayerBuffTime("猛击!")>0 and RAGE>=15 then
        BeeRun("猛击")
        return
    end
    if BeeUnitHealth("target","%")<20 and BeeIsRun("斩杀") then
        BeeRun("斩杀")
        return
    end
    if RAGE<=10 and BeeSpellCD("血性狂暴")==0 then
        BeeRun("血性狂暴")
        return
    end
    if RAGE>=20 and BeeSpellCD("嗜血")==0 then
        BeeRun("嗜血")
        return
    end
    if RAGE>=25 and BeeSpellCD("嗜血")>0 and
    BeeSpellCD("旋风斩")==0 then
        BeeRun("旋风斩")
        return
    end
    if  BeeSpellCD("嗜血")>0 and BeeSpellCD("旋风斩")>0 and RAGE>50 then
        if IsShiftKeyDown() then
            BeeRun("/cast 顺劈斩")
            return
        else
            BeeRun("/cast 英勇打击")
            return
        end
    end
end
--英勇投掷
if BeeSpellCD("英勇投掷")==0 and youxiao and BeeUnitAffectingCombat() then
    BeeRun("英勇投掷")
    return
end
--乘胜追击
if BeePlayerBuffTime("乘胜追击")>0 and youxiao then
    BeeRun("乘胜追击")
    return
end
回复

使用道具 举报

发表于 2023-5-19 13:52:38 | 显示全部楼层
if (BeeTargetDebuffTime("刺耳怒吼")<0 or BeeTargetDebuffTime("断筋")<0) and  BeeRange("target")<10 and RAGE>=25 and then
  BeeRun("/cast 刺耳怒吼")
  return
end

注释:目标身上不存在刺耳或者断筋且和目标距离<10码且怒气大于等于25 则释放刺耳怒吼
放在  
if BeePlayerBuffTime("猛击!")>0 and RAGE>=15 then
        BeeRun("猛击")
        return
    end
前面
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-5-20 12:48:52 | 显示全部楼层
好的,收到,谢谢,等下去试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-5-29 21:08:06 | 显示全部楼层
羞羞铁拳 发表于 2023-5-19 01:52 PM
if (BeeTargetDebuffTime("刺耳怒吼")

出错了,没法实现,不知道为什么
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-5-18 08:40 PM , Processed in 0.045328 second(s), 21 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表