关于法师的魔蜂,如何加命令实现?
--BeeUnitCastSpellName("player") 意思自己正在施法ifBeeSpellCoolDown("奥术弹幕")==0then BeeRun("/cast 奥术弹幕") return end
if not BeeUnitCastSpellName("player") and BeeSpellCoolDown("奥术飞弹")==0 and BeeUnitBuffTime("飞弹速射")>0 or BeeUnitHealth("target","%")<=20then BeeRun("/cast 奥术飞弹","target") return;end
if UnitExists("target")==1 and IsSpellInRange("奥术冲击","target")==1 and not UnitIsDeadOrGhost("target") andBeeUnitHealth("target","%")>20 then BeeRun("/cast 奥术冲击") return;end
比较简单的循环,但是老是在引导奥术飞弹的时候,其他技能图标一直在闪,迫切想释放其他的技能,不知道有什么办法能实现,在引导奥术飞弹的时候不要想着放其他的技能?
这么多代码看的头疼哦,楼主太厉害了{:5_243:}{:5_243:}{:5_243:} 引导法术过程如果不想抢技能,就把这句放到最前面
if BeeUnitCastSpellTime("player")>0 or BeeGCD()>0 then return end 懒动行不行 发表于 2024-3-25 06:52 PM
引导法术过程如果不想抢技能,就把这句放到最前面
if BeeUnitCastSpellTime("player")>0 or BeeGCD()>0 th ...
额,能给我示范一下吗,加在我的那一段命令里,我直接试了没用 wulinnike 发表于 2024-3-25 07:52 PM
额,能给我示范一下吗,加在我的那一段命令里,我直接试了没用
这个方法很明显是有用的,你的问题在于,你的运行速度太快了 导致这个语句在执行之前还有别的语句在等待执行。简单的就是魔蜂的动作客户端来不及执行导致的。
解决方法就是你把运行间隔时间降低,右击代码框 运行间隔改成0.1 再不行就0.2.对于输出来说是不会有任何损失的!
在引导奥术飞弹的时候不要想着放其他的技能
if not BeeUnitCastSpellName('player')==("奥术飞弹") then
ifBeeSpellCoolDown("奥术弹幕")==0then BeeRun("/cast 奥术弹幕") return end
if not BeeUnitCastSpellName("player") and BeeSpellCoolDown("奥术飞弹")==0 and BeeUnitBuffTime("飞弹速射")>0 or BeeUnitHealth("target","%")<=20then BeeRun("/cast 奥术飞弹","target") return;end
if UnitExists("target")==1 and IsSpellInRange("奥术冲击","target")==1 and not UnitIsDeadOrGhost("target") andBeeUnitHealth("target","%")>20 then BeeRun("/cast 奥术冲击") return;end
end上面这个是在你的代码改的,下面这个可以试试,因为没看懂这技能循环加BeeUnitHealth("target","%")>20有什么用所有没加,一个or BeeUnitHealth("target","%")>20 ,一个and BeeUnitHealth("target","%")>20.
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
页:
[1]