/script T,F=T or 0,F or CreateFrame("frame")if X then X=nil else X=function() local t=GetTime() if t-T>60 then SendChatMessage("喊话内容","channel",nil,2) T=t end end end F:SetScript("OnUpdate",X) 怎么能把连接带里呢 3Q
宏比较长,宏的字数限制255。喊话的内容不要过长…… /script T,F=T or 0,F or CreateFrame("frame")if X then X=nil else X=function() local t=GetTime() if t-T>60 then SendChatMessage("喊话内容前半"..GetItemInfo(物品ID).. "喊话内容后半","channel",nil,2)T=t end end end F:SetScript("OnUpdate",X)
链接是GetItemInfo(物品ID)的第二个返回值……我才知道,宏改一下 /run T,F,_,ss=T or 0,F or CreateFrame("frame"),GetItemInfo(113588) if X then X=nil else X=function() local t=GetTime() if t-T>60 then SendChatMessage("喊话内容前半"..ss.."喊话内容后半","channel",nil,2) T=t end end end F:SetScript("OnUpdate",X)
/script i,E=2,E or CreateFrame("frame")E:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED")E:SetScript("OnEvent",function(_,_,a,b)if a=="player" and b=="天降杀机"then if i==2 then i=1 SendChatMessage(s[i],"yell") else i=2 SendChatMessage(s[i],"yell") end end;end)