LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 137|回复: 2

[wowbee] 求助LR自动切换守护的写法

[复制链接]
发表于 2024-10-4 11:19:34 | 显示全部楼层 |阅读模式
if not BeeUnitAffectingCombat() and not BeeStringFind("豹群守护",buff) then
    BeeRun("/cast 豹群守护")   return
end

if  BeeUnitAffectingCombat() and not BeeStringFind("灵猴守护",buff) then
    BeeRun("/cast 灵猴守护")  return
end   

如题,想猎人脱战之后自动切换豹群守护方便跑路,进战斗自动切换灵猴守护,但是我写的,猎人就一直释放豹群守护,进战斗了也是如此,请问哪儿写错了啊?
回复

使用道具 举报

发表于 2024-10-8 17:20:05 | 显示全部楼层
进入战斗切换龙鹰守护
蓝量小于10%的时候自动切换蝰蛇守护
脱离战斗,蓝量满的时候自动切换猎豹守护


[Lua] 纯文本查看 复制代码
local buff = BeeUnitBuffList("player")

if not BeeUnitAffectingCombat() and BeeUnitMana("player","%")==100 and GetUnitSpeed("player")>0 and not BeeStringFind("猎豹守护",buff) and not BeeStringFind("猎豹守护",buff) then
    BeeRun("/cast 猎豹守护")
end
if (not BeeStringFind("蝰蛇守护",buff) and BeeUnitMana("player","%")<10) or (not BeeStringFind("蝰蛇守护",buff) and not BeeUnitAffectingCombat()) and not BeeStringFind("猎豹守护",buff) then
    BeeRun("/cast 蝰蛇守护")
    return;
end
if BeeUnitAffectingCombat() and not BeeStringFind("龙鹰守护",buff) and BeeUnitMana("player","%")>90 then
    BeeRun("/cast 龙鹰守护")
    return;
end
回复 支持 1 反对 0

使用道具 举报

发表于 2024-10-4 18:44:18 | 显示全部楼层
你是不是少了
local buff = BeeUnitBuffList("player")
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-2 02:28 AM , Processed in 0.045463 second(s), 20 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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