求教如何写给队友自由之手
如题,刷地狱火城墙的时候队友老被断筋,如何写一个队友被断筋就给他丢自由之手的代码?真心求教第一个方案,自己写一个函数。下面是代码,但是需要你自己去查下那个debuff的名字是啥,然后替换:“这里是debuff的名字” 为队友身上的debuff名字。
local Members =GetNumPartyMembers()+1
for i=1, Members do
if Members == i then
unit="player"
else
unit="party" .. i;
if UnitName(unit) and BeeUnitHealth(unit,"%")<35 and not BeeUnitIsDead(unit) and BeeUnitPlayerControlled(unit)
then
if BeeSpellCoolDown("自由之手")==0 and BeeUnitBuffTime("这里是debuff的名字",unit,2,2,iconName)>0 and IsSpellInRange("自由之手",unit) == 1
then
BeeBatchRun("自由之手",unit)
end
end
end
end
第二个方案,用BeeGroupMinHealthCast这个函数。或者其他的队伍函数,都能达到这效果 平凡 发表于 2022-11-4 07:25 PM
第一个方案,自己写一个函数。下面是代码,但是需要你自己去查下那个debuff的名字是啥,然后替换:“这里是 ...
谢谢大神么么哒,对我这样的新手非常有启发意义 崔花花 发表于 2022-11-7 01:59 PM
谢谢大神么么哒,对我这样的新手非常有启发意义
请教,你这是用在私服里?不会被检测到外挂么?
页:
[1]