maddd 发表于 2023-7-27 00:10:06

BEE小德的驱毒和接诅咒怎么写


local Tbl = BeeUnitBuffList("target")
local buff = BeeUnitBuffList("player")
--是否团队队伍
if GetNumRaidMembers()>0 then
    grouptype="raid"
else   
    grouptype="party"
end
BeeRun("/console Sound_EnableSFX 0 ") --开始技能静音
local Unit = BeeGroupMinScript(' BeeIsRun("驱毒术",unit)and not UnitIsDead(unit) and BeeUnitBuffInfo(unit,2,"Magic",0)>=1',"BeeUnitHealth(unit,'%')","party")

if Unit and BeeIsRun("驱毒术",Unit)then
    BeeRun("驱毒术",Unit )
end

local Unit = BeeGroupMinScript(' BeeIsRun("驱毒术,",unit)and not UnitIsDead(unit) and BeeUnitBuffInfo(unit,2,"Disease",0)>=1',"BeeUnitHealth(unit,'%')","party")

if Unit and BeeIsRun("驱毒术",Unit)then
    BeeRun("驱毒术",Unit )
end

local Unit = BeeGroupMinScript(' BeeIsRun("驱毒术",unit)and not UnitIsDead(unit) and BeeUnitBuffInfo(unit,2,"Poison",0)>=1',"BeeUnitHealth(unit,'%')","party")

if Unit and BeeIsRun("驱毒术,",Unit)then
    BeeRun("驱毒术",Unit )
end

BeeRun("/console Sound_EnableSFX 1 ") --技能结束静音
这是抄其他大佬的驱散脚本,但是一个人中毒的话会连续驱散好几次 把驱毒改成解除诅咒没用
求大佬指点

maddd 发表于 2023-8-2 00:44:34

bornkiller 发表于 2023-7-27 12:33 AM
if Unit and BeeIsRun("驱毒术,",Unit) andBeeUnitBuff("驱毒术","unit")0 thengrouptype="raid" else ...

再请教大佬个问题,小德大迅捷+治疗之触怎么写,自然迅捷BUFF我试了BeeTargetBuffTime("自然迅捷")>1 和BeeUnitBuffList("自然迅捷","player")==1还有BeePlayerBuffTime("自然迅捷") >0 and 都不行

bornkiller 发表于 2023-7-27 00:33:36

if Unit and BeeIsRun("驱毒术,",Unit) andBeeUnitBuff("驱毒术","unit")<1then
    BeeRun("驱毒术",Unit )
end

另外(魔法:Magic,疾病:Disease,毒:Poison,诅咒:Curse)
你这个整体都有问题。。。魔法和疾病。。你都要祛毒术。。
我发个我的吧。。。

grouptype="";if GetNumRaidMembers()>0 thengrouptype="raid" elsegrouptype="party" end
local m,ZZ = BeeGroupCountScript('BeeRange(unit)<=40',"BeeUnitBuffInfo(unit,2,'Curse',0)>0 and not UnitIsDeadOrGhost(unit)" ,grouptype)
if m>0 and BeeIsRun("解除诅咒",ZZ) then BeeRun("解除诅咒",ZZ);return;end
local n,qusan = BeeGroupCountScript('BeeRange(unit)<=40',"BeeUnitBuffInfo(unit,2,'Poison',0)>0 and not UnitIsDeadOrGhost(unit) and BeeUnitBuff('驱毒术',unit,2,1)<1 " ,grouptype)
if n>0 and BeeIsRun("驱毒术",qusan)and BeeUnitBuff("驱毒术","unit")<0 then BeeRun("驱毒术",qusan);return;end

maddd 发表于 2023-7-27 17:03:50

bornkiller 发表于 2023-7-27 12:33 AM
if Unit and BeeIsRun("驱毒术,",Unit) andBeeUnitBuff("驱毒术","unit")0 thengrouptype="raid" else ...

感谢大佬~~~~~~~~~~~~~~~~~~~~~~~

moon559 发表于 2023-7-27 21:07:50

学习大佬{:5_236:}{:5_236:}{:5_236:}
页: [1]
查看完整版本: BEE小德的驱毒和接诅咒怎么写