LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 116|回复: 5

[wowbee] 关于法师的魔蜂,如何加命令实现?

[复制链接]
发表于 2024-3-25 15:40:44 | 显示全部楼层 |阅读模式
--BeeUnitCastSpellName("player") 意思自己正在施法
if  BeeSpellCoolDown("奥术弹幕")==0  then BeeRun("/cast 奥术弹幕") return end

if not BeeUnitCastSpellName("player") and BeeSpellCoolDown("奥术飞弹")==0 and BeeUnitBuffTime("飞弹速射")>0 or BeeUnitHealth("target","%")<=20  then BeeRun("/cast 奥术飞弹","target") return;end


if UnitExists("target")==1 and IsSpellInRange("奥术冲击","target")==1 and not UnitIsDeadOrGhost("target") and  BeeUnitHealth("target","%")>20 then BeeRun("/cast 奥术冲击") return;end


比较简单的循环,但是老是在引导奥术飞弹的时候,其他技能图标一直在闪,迫切想释放其他的技能,不知道有什么办法能实现,在引导奥术飞弹的时候不要想着放其他的技能?

回复

使用道具 举报

发表于 2024-3-25 15:42:30 | 显示全部楼层
这么多代码看的头疼哦,楼主太厉害了
回复 支持 反对

使用道具 举报

发表于 2024-3-25 18:52:27 | 显示全部楼层
引导法术过程如果不想抢技能,就把这句放到最前面
if BeeUnitCastSpellTime("player")>0 or BeeGCD()>0 then return end
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-3-25 19:52:06 | 显示全部楼层
懒动行不行 发表于 2024-3-25 06:52 PM
引导法术过程如果不想抢技能,就把这句放到最前面
if BeeUnitCastSpellTime("player")>0 or BeeGCD()>0 th ...

额,能给我示范一下吗,加在我的那一段命令里,我直接试了没用
回复 支持 反对

使用道具 举报

发表于 2024-3-25 22:09:40 | 显示全部楼层
wulinnike 发表于 2024-3-25 07:52 PM
额,能给我示范一下吗,加在我的那一段命令里,我直接试了没用

这个方法很明显是有用的,你的问题在于,你的运行速度太快了 导致这个语句在执行之前还有别的语句在等待执行。简单的就是魔蜂的动作客户端来不及执行导致的。
解决方法就是你把运行间隔时间降低,右击代码框 运行间隔改成0.1 再不行就0.2.对于输出来说是不会有任何损失的!
回复 支持 反对

使用道具 举报

发表于 昨天 01:44 PM | 显示全部楼层

在引导奥术飞弹的时候不要想着放其他的技能
[Lua] 纯文本查看 复制代码
if not BeeUnitCastSpellName('player')==("奥术飞弹") then
if  BeeSpellCoolDown("奥术弹幕")==0  then BeeRun("/cast 奥术弹幕") return end

if not BeeUnitCastSpellName("player") and BeeSpellCoolDown("奥术飞弹")==0 and BeeUnitBuffTime("飞弹速射")>0 or BeeUnitHealth("target","%")<=20  then BeeRun("/cast 奥术飞弹","target") return;end


if UnitExists("target")==1 and IsSpellInRange("奥术冲击","target")==1 and not UnitIsDeadOrGhost("target") and  BeeUnitHealth("target","%")>20 then BeeRun("/cast 奥术冲击") return;end
end
上面这个是在你的代码改的,下面这个可以试试,因为没看懂这技能循环加BeeUnitHealth("target","%")>20有什么用所有没加,一个or BeeUnitHealth("target","%")>20 ,一个and BeeUnitHealth("target","%")>20.
[Lua] 纯文本查看 复制代码
if not BeeUnitCastSpellName('player')==("奥术飞弹") then

if BeeSpellCoolDown("奥术飞弹")==0 and BeeGCD()==0 then
BeeRun("奥术弹幕") 
return 
end

if BeeSpellCoolDown("奥术冲击")==0 and BeeGCD()==0 and UnitBuff('player','飞弹速射') then
BeeRun("奥术飞弹") 
return 
end

if BeeSpellCoolDown("奥术冲击")==0 and BeeGCD()==0 then
BeeRun("奥术冲击") 
return 
end

end

回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 01:15 PM , Processed in 0.055655 second(s), 22 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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