首页 论坛 宏命令分享 [1.18]戒律简易一键输宏

标签: 

该帖子包含 2 评论,2 参与者,最后由一个星期一次 更新于 6天前
2025年8月26日 18:09|1年前
Crazydru
版主
Lv.5 小有所成
243/900(27%)

不知道什么时候帮朋友写过这个宏,无意间翻出来就留下记录,没什么难点也没什么特点。。。

/script local ZFID=GetSpellIndex("责罚") if not UnitExists("target") or UnitIsDeadOrGhost("target") then TargetNearestEnemy() end if GetSpellCooldown(ZFID,"spell") then CastSpellByName("责罚",1) elseif not IsBuffActive("纯净火焰") then CastSpellByName("神圣之火") else CastSpellByName("惩击") end
2025年12月31日 11:44|8个月前
一个星期一次
管理员
Lv.19 熟能生巧
1813/3700(49%)

好东西~~

2026年8月24日 21:15|6天前
一个星期一次
管理员
Lv.19 熟能生巧
1813/3700(49%)

通过CR大神的帮助,最新改进后的戒律一键DPS宏命令,必须使用超级宏:

/script P=function(m) DEFAULT_CHAT_FRAME:AddMessage(tostring(m))end;
/script MB=MyBuff;CS=CastSpellByName;G=GetSpellCooldown;L=GetSpellIndex;
/script H=UnitHealth("player")/UnitHealthMax("player");M=UnitMana("player")/UnitManaMax("player");
/script ZF=G(L("责罚"),"spell");XN=G(L("心灵专注"),"spell");TY=G(L("太阳之井的恩典"),"spell");KM=G(L("奎尔多雷冥想"),"spell");
/script if MB("灼热之光") then P("灼热之光");CS("惩击")end;
/script if KM==0 and M<0.9 then P("蓝少");CS("奎尔多雷冥想",1) end;
/script if not MB("启发") then P("无启发");CS("启发",1) end;
/script if not MB("心灵之火") then P("无心灵之火");CS("心灵之火",1)end;
/script if XN==0 then P("无心灵专注");CS("心灵专注",1)end;
/script if TY==0 then P("无太阳之井的恩典");CS("太阳之井的恩典",1)end;
/script if ZF==0 and H<0.8 then P("血少");CS("治疗术", 1) end; /script if ZF==0 and H>0.8 then P("血多");CS("责罚", 1) end;
/script if not MB("纯净火焰") then P("无纯净火焰");CS("神圣之火")end;CS("神圣之火");

 

哎呀,评论帖子必需登录。

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