宏1:为框架设置接收消息的类型/run MSG_E= 宏2:处理战斗记录消息,并发送聊天信息/run function EV_M(type) for a,b,c in string.gmatch(arg1,"(.+)打断了(.+)的(.+)") do SendChatMessage("["..string.gsub(a,"^你$",UnitName("player")).."] 打断了 ["..string.gsub(b,"^你$",UnitName("player")).."] 的 "..c,type);end end 宏3:创建接收消息的框架/run if (not MSG_F) then CreateFrame("Frame","MSG_F",UIParent);end if (MSG_E) then for i=1,8 do MSG_F:RegisterEvent(MSG_E[i]);end end MSG_F:SetScript("OnEvent",function() if (EV_M) then EV_M("YELL");end end); 以上三个宏在进入游戏后按顺序执行过一遍就可以即时提示打断施法的消息。 比如某一时刻一个人打断了另一个人的施法,那么使用这套宏的人就会喊出提示来,效果如下: [亚伯拉罕]喊道: [阳光美少男] 打断了 [西方必败] 的 恐惧术。 功能很强大吧,不仅玩家打断施法可以提示,就连怪物的打断都可以提示。