LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 243|回复: 4

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

[复制链接]
发表于 2023-7-27 00:10:06 | 显示全部楼层 |阅读模式

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 ") --技能结束静音
这是抄其他大佬的驱散脚本,但是一个人中毒的话会连续驱散好几次 把驱毒改成解除诅咒没用
求大佬指点

回复

使用道具 举报

 楼主| 发表于 2023-8-2 00:44:34 | 显示全部楼层
bornkiller 发表于 2023-7-27 12:33 AM
if Unit and BeeIsRun("驱毒术,",Unit) and  BeeUnitBuff("驱毒术","unit")0 then  grouptype="raid" else ...

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

使用道具 举报

发表于 2023-7-27 00:33:36 | 显示全部楼层
if Unit and BeeIsRun("驱毒术,",Unit) and  BeeUnitBuff("驱毒术","unit")<1  then
    BeeRun("驱毒术",Unit )
end

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

grouptype="";if GetNumRaidMembers()>0 then  grouptype="raid" else  grouptype="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

回复 支持 反对

使用道具 举报

 楼主| 发表于 2023-7-27 17:03:50 | 显示全部楼层
bornkiller 发表于 2023-7-27 12:33 AM
if Unit and BeeIsRun("驱毒术,",Unit) and  BeeUnitBuff("驱毒术","unit")0 then  grouptype="raid" else ...

感谢大佬~~~~~~~~~~~~~~~~~~~~~~~
回复 支持 反对

使用道具 举报

发表于 2023-7-27 21:07:50 | 显示全部楼层
学习大佬
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-11 05:30 PM , Processed in 0.069022 second(s), 23 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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