首页 论坛 宏命令分享 [1.18通用]一键站岗刷怪普通组合宏 -by 化肥 评论至:[1.18通用]一键站岗刷怪普通组合宏 -by 化肥
2026年2月4日 10:40|1个月前
化肥
此帖作者
Lv.4 初学乍练
146/700(21%)
评论 一个星期一次 发布于 2026年1月30日 22:29|1个月前查看原回复

太强了·~~感谢楼主~~

牧师定点站岗组合宏

本组合供5个宏,加上吃喝,共需要7个键位,为了不影响正常游玩,建议放在第2技能栏。

 

键位1:驱动宏(通用),判断开怪、战斗、拾取、补buff或吃喝


/script UA=UseAction;UAC=UnitAffectingCombat;CT=ClearTarget;UE=UnitExists;AU=AssistUnit
/script h=UnitHealth("player");hm=UnitHealthMax("player");e=UnitMana("player");em=UnitManaMax("player");pc=UnitClass("player")
/script if UAC("player")then if not UCA("player","target")or not UAC("target")then if UE("pet")then AU("pet")else CT()end;end;UA(14)end
/script if not UAC("player")then Interact(0);UA(19);if h/hm>0.6 and(pc=="Warrior" or pc=="Rogue" or e/em>0.6)then UA(15)else UA(16)end;end

 

键位2:战斗宏,打怪输出,把丢魔杖放在第2技能栏最后1个键位(=),或自行调整位置数字。低于80%蓝就丢魔杖。


/script C=CastSpellByName;TD=TarDebuff;IAR=IsAutoRepeatAction;h=UnitHealth("player");hm=UnitHealthMax("player");e=UnitMana("player");em=UnitManaMax("player")
/script if h/hm<0.6 then if not B("恢复")then C("恢复")else C("治疗术")end;elseif not TD("暗言术:痛")then C("暗言术:痛")elseif e/em>0.8 then C("惩击")elseif not IAR(23)then C("射击")end

 

键位3:开怪宏,远程开怪


/script UE=UnitExists;UH=UnitHealth;UCA=UnitCanAttack;TNE=TargetNearestEnemy;C=CastSpellByName;CID=CheckInteractDistance
/script if UE("target")and UH("target")>0 and UCA("player","target")then C("神圣之火")else TNE()end

 

键位4:吃喝宏(通用)


/script UA=UseAction;B=IsBuffActive
/script h=UnitHealth("player");hm=UnitHealthMax("player");e=UnitMana("player");em=UnitManaMax("player");pc=UnitClass("player")
/script if h/hm<=0.6 and not B("进食")then UA(17)end;if pc~="Warrior" and pc~="Rogue" and e/em<=0.6 and not B("喝水")then UA(18)end

 

键位5:回血食物,脱战后血量低于60%,会吃。

键位6:回蓝食物,脱战后蓝量低于60%,会吃。

 

键位7:补buff状态,优先级在吃面包喝水之前。


/script B=IsBuffActive;C=CastSpellByName;UE=UnitExists;UH=UnitHealth;UHM=UnitHealthMax;UM=UnitMana;UMM=UnitManaMax
/script h=UH("player");hm=UHM("player");e=UM("player");em=UMM("player")
/script if not B("真言术:韧")then C("真言术:韧")elseif not B("心灵之火")then C("心灵之火")elseif e/em>0.8 and h/hm<0.8 then if not B("恢复")then C("恢复")else C("治疗术")end;end

QQ群975207273
QQ群975207273
微信小程序
微信小程序
微信群
微信群
再续前缘安卓APP
再续前缘安卓APP