djfeiji 发表于 2023-12-14 19:34:19

335元素萨满输出脚本



if UnitIsDeadOrGhost("player") then BeeRun("/目标 灵魂医者");RepopMe()RetrieveCorpse()AcceptResurrect()AcceptXPLoss()return;end
BeeRun("/targetenemy ")
local time , Castingtime= BeeUnitCastSpellTime("Focustarget");
local NeedBreak = "赫希斯之耳语,愤怒,血泪,火球术,云雾冲击,冰川冲击,奥术飞弹,灵魂震击,治疗之环,生命吸取,恐惧,圣光术,快速治疗,强效治疗术,魔能火球,冰霜新星,神圣新星,治疗之触,愈合,寒冰箭雨,飓风,烈焰,治疗波,献祭,滋养,次级治疗波,苦修,变形术,暗影修补,圣光闪现,召唤太阳宝珠,黑暗契约,黑暗治疗,暗影打击,烈焰风暴,暗影愈合,寒冰箭,熔岩箭,强制之握,震爆,混乱之箭,黑暗命令,治疗链,神圣之火,暗影新星,暴风雪,火焰之雨,炎爆术,恐惧术,地狱烈焰,幽灵冲击,治疗术,精神灼烧,精神鞭笞"
if BeeStringFind(NeedBreak,BeeUnitCastSpellName()) and UnitCanAttack("player", "focus-target") and BeeSpellCoolDown("风剪")==0 then BeeRun("风剪")end

--驱散咒毒
grouptype="";if GetNumRaidMembers()>0 then grouptype="raid" else grouptype="party";end
local n,qusan = BeeGroupCountScript('BeeRange(unit)<=40 orBeeRange(unit)<=30',"BeeUnitBuffInfo(unit,2,'Disease,Poison',0)>0 and not UnitIsDeadOrGhost(unit)",grouptype)
if n>0 andBeeIsRun("驱毒术",qusan) then BeeRun("驱毒术",qusan);return;end
if n>3 andBeeTotem("净化图腾")<5 andBeeIsRun("净化图腾","nogoal")
then BeeRun("净化图腾","nogoal"); return;end

--元素萨有天赋解除诅咒,中毒,疾病
--grouptype="";if GetNumRaidMembers()>0 then grouptype="raid" else grouptype="party";end
--local n,qusan = BeeGroupCountScript('BeeRange(unit)<=40 orBeeRange(unit)<=30',"BeeUnitBuffInfo(unit,2,'Disease,Curse,Poison',0)>0 and not UnitIsDeadOrGhost(unit)",grouptype)
--if n>0 andBeeIsRun("净化灵魂",qusan) then BeeRun("净化灵魂",qusan);return;end
--if n>3 andBeeTotem("净化图腾")<5 andBeeIsRun("净化图腾","nogoal")
--then BeeRun("净化图腾","nogoal"); return;end


if BeePlayerBuffTime("闪电之盾")<1 and BeeUnitBuffCount("闪电之盾","player",0,0)<2 and BeeUnitMana("player","%",0)>40 then
    BeeRun("/cast 闪电之盾")
end
if BeePlayerBuffTime("水之护盾")<1and BeeUnitBuffCount("闪电之盾","player",0,0)<3 andBeeUnitBuffCount("水之护盾","player",0,0)<2 and BeeUnitHealth("target","%",0)>5 and BeeUnitMana("player","%",0)<30 then
    BeeRun("/cast 水之护盾")
end
ifBeeWeaponEnchantInfo(1)<20then BeeRun("火舌武器","player")end

--图腾释放,需预先把相关图腾按照以下设置进行绑定。1 - 火焰 2 - 土 3 - 水 4 - 空气
if BeeUnitAffectingCombat("player") andCheckInteractDistance("target",4) then
    if not BeeTotemType(1) and not BeeTotemType(2) and not BeeTotemType(3) and not BeeTotemType(4)then BeeRun("/cast 元素的召唤");return;end
    if not BeeTotemType(1) andBeeIsRun("天怒图腾","nogoal") then BeeRun("天怒图腾","nogoal");return;end
    if not BeeTotemType(2) andBeeIsRun("大地之力图腾","nogoal") then BeeRun("大地之力图腾","nogoal");return;end
    if not BeeTotemType(3) andBeeIsRun("治疗之泉图腾","nogoal") then BeeRun("治疗之泉图腾","nogoal");return;end
    if not BeeTotemType(4) andBeeIsRun("空气之怒图腾","nogoal") then BeeRun("空气之怒图腾","nogoal");return;end
    ifBeeUnitMana("player","%")<70 and BeeTotem("法力之潮图腾")<5 andBeeIsRun("法力之潮图腾","nogoal")
    then BeeRun("法力之潮图腾","nogoal"); return;end
end
--下方--为自动收回图腾
if not BeeUnitAffectingCombat("player")and (BeeTotemType(1) or BeeTotemType(2) or BeeTotemType(3) or BeeTotemType(4)) then BeeRun("收回图腾","player") return;end

--if BeeUnitHealth("player","%",0)<90 and BeeSpellCoolDown("激流")==0 then BeeRun("激流","player")end

if UnitExists("target")==1 and not UnitIsDeadOrGhost("target") then
    if BeeUnitBuff("镇压","Target")<1 then BeeRun("冰霜震击")end
    if BeeUnitBuff("大地震击","Target")<1 then BeeRun("大地震击")end
    if BeeUnitBuff("烈焰震击","Target")<1 then BeeRun("烈焰震击")end
    if BeeSpellCoolDown("熔岩爆裂")==0 then BeeRun("/cast 熔岩爆裂")end
    if BeeSpellCoolDown("雷霆风暴")==0 then BeeRun("/cast 雷霆风暴")end
    if BeeSpellCoolDown("闪电箭")==0 then BeeRun("闪电箭")end
    if BeeSpellCoolDown("元素掌握")==0 then BeeRun("/cast 元素掌握")end
    if BeeSpellCoolDown("火焰新星")==0 and BeeRange(target)<=10 and BeeTotemType(1) then BeeRun("/cast 火焰新星")end
    if BeeSpellCoolDown("狂暴")==0 then BeeRun("/cast 狂暴")end
    if BeeSpellCoolDown("血性狂怒")==0 then BeeRun("/cast 血性狂怒")end
    if BeeSpellCoolDown("熔岩爆裂")>=0 then BeeRun("/cast 闪电链")end
    if BeeSpellCoolDown("熔岩爆裂")>=1 and BeeSpellCoolDown("闪电链")>=1 then BeeRun("/cast 闪电箭","target")end
    if IsSpellInRange("风暴打击")==1 and BeeSpellCoolDown("风暴打击")==0 then BeeRun("风暴打击")end
end


xyiwf 发表于 2025-6-14 20:39:37

多谢分享元素萨
页: [1]
查看完整版本: 335元素萨满输出脚本