makaay 发表于 2022-7-6 22:46:41

求大佬帮下忙!

有没有大佬帮写一个中毒或者诅咒 自动解的脚本,还有血量低于50%自动放树皮的脚本,万分感谢~ 本人小白一枚,白得不能在白,刚接触魔峰2天:$

胡先生 发表于 2022-7-7 09:48:55

--解毒驱散 论坛的很常见的,直接贴给你吧
if GetNumRaidMembers()>0 then grouptype="raid" else grouptype="party" end
local m,zusan = BeeGroupCountScript('BeeRange(unit)<=40 andBeeIsRun("解除诅咒",unit)',"BeeUnitBuffInfo(unit,2,'Curse',0)>0 and not UnitIsDeadOrGhost(unit) " ,grouptype)
local b,dusan = BeeGroupCountScript('BeeRange(unit)<=40 andBeeIsRun("驱毒术",unit)',"BeeUnitBuffInfo(unit,2,'Poison',0)>0 and not UnitIsDeadOrGhost(unit) and BeeUnitBuff('驱毒术',unit,2,1)<1 " ,grouptype)
if m>0 and BeeIsRun("解除诅咒",zusan) then BeeRun("解除诅咒",zusan);return;end
if b>0 and BeeIsRun("驱毒术",dusan) then BeeRun("驱毒术",dusan);return;end

--树皮术,战斗中自己血量低于50%自动释放
if BeeUnitAffectingCombat() and BeeSpellCoolDown("树皮术")==0 and BeeUnitHealth("player","%",0)<50 then BeeRun("树皮术") return; end

zlksdd 发表于 2022-7-7 11:02:10

代码如下:
--是否团队队伍
grouptype=""
if GetNumRaidMembers()>0 thengrouptype="raid" else   grouptype="party" end
--解毒
local A,B = BeeGroupCountScript('BeeRange(unit)<=40 and BeeIsRun("驱毒术",unit)',"BeeUnitBuffInfo(unit,2,'Poison',0)>0 and not UnitIsDeadOrGhost(unit) and BeeUnitBuff('驱毒术',unit,2,1)<1 ",grouptype)
if A>0 and BeeIsRun("驱毒术",B) then BeeRun("驱毒术",B);return;end
--解诅咒
local C,D = BeeGroupCountScript('BeeRange(unit)<=40 and BeeIsRun("解除诅咒",unit)',"BeeUnitBuffInfo(unit,2,'Curse',0)>0 and not UnitIsDeadOrGhost(unit) and BeeUnitBuff('解除诅咒',unit,2,1)<1 ",grouptype)
if C>0 and BeeIsRun("解除诅咒",D) then BeeRun("解除诅咒",D);return;end

makaay 发表于 2022-7-7 13:13:02

胡先生 发表于 2022-7-7 09:48 AM
--解毒驱散 论坛的很常见的,直接贴给你吧
if GetNumRaidMembers()>0 then grouptype="raid" else groupty ...

万分感谢,好人一生平安,

makaay 发表于 2022-7-7 13:15:53

zlksdd 发表于 2022-7-7 11:02 AM
代码如下:
--是否团队队伍
grouptype=""


非常感谢!好人一生平安!
页: [1]
查看完整版本: 求大佬帮下忙!