此宏的作用是在偷天打出的同时大喊出目标的名字 方便知道偷天是什么时候打出的 打给谁
首先 新建一个宏名字为 存储
/脚本 U="UNIT_SPELLCAST_S"F=F or CreateFrame("frame")R=F.RegisterEvent;R(F,U.."ENT")R(F,U.."UCCEEDED")F:SetScript("OnEvent",function(_,_,a,b,_,c)if a=="player"and b=="嫁祸诀窍"then n=type(c)=="string"and c or SendChatMessage(n.." 偷天换日给你了尽情打吧","yell")end end)
然后拖放到侧边栏右下角的位置
然后 再建另一个宏
#showtooltip 嫁祸诀窍
/click MultiBarRightButton12
/cast [help] [target=focus, help,nodead] [target=targettarget, help] 嫁祸诀窍
分开两个宏的原因是要突破魔兽中宏255的字数限制
当然前面那个存储宏也可以拖放到其他位置 但对应的第二个宏click的地方就要作相应的修改 具体为:
主动作条:ActionButton
左下:MultiBarBottomLeftButton
右下:MultiBarBottomRightButton
右1:MultiBarRightButton
右2:MultiBarLeftButton
对应的按钮都是1~12
同理血DK的狂血(国服叫 狂乱)喊话宏也可以写成
/脚本 U="UNIT_SPELLCAST_S"F=F or CreateFrame("frame")R=F.RegisterEvent;R(F,U.."ENT")R(F,U.."UCCEEDED")F:SetScript("OnEvent",function(_,_,a,b,_,c)if a=="player"and b=="狂乱"then n=type(c)=="string"and c or SendChatMessage(n.." 血液沸騰吧","yell")end end)
/施放 狂乱