UID:282457630 帖
2019-12-22 19:28
特来感谢楼主和其他贡献者的帮助,太好用了。
已编辑
Reply Post by yumo19891023 (2019-12-24 01:39):
楼主 我想问下是不是有自动退出战场的功能哈~ 如何关闭咧
首先做一个宏, 命名为 进入按钮:
J_B=nil if UnitAffectingCombat("player")then SendSystemMessage("提示:战斗中无法使用进入战场宏!!")else local x,f,j,b=_,_,"进入战场",DropDownList1;for _,x in ipairs({b:GetChildren()})do f=x.value if f==j then J_B=x break end end end
再做一个宏,名字随便,比如 进入战场:
/click MiniMapBattlefieldFrame RightButton
/脚本 local m={GetMacroInfo("进入按钮")}loadstring(m[3])()CreateFrame("Button", "J", UIParent, "SecureActionButtonTemplate")J:SetAttribute("type", "click")J:SetAttribute("clickbutton", J_B)
/stopmacro [combat]
/click J
然后把这个宏拖入技能栏,战场出的时候点击这个宏就行啦!(这个宏的原理是右键小地图旁边的战场按钮,然后点击进入战场)
已编辑
已编辑
Reply Post by hurxyill (2019-12-25 22:53):
大神,我最近一直在研究进入战场的宏,研究了好几天,昨天终于研究出来了,如下:
具体见链接 https://nga.178.com/read.php?&tid=19418985
然后我把这个宏加入到了你的插件里面,测试了一下,效果还可以,不会出现禁用插件什么的。我待会在github提交一个PR给你看一下。
登录后可以回复