魔兽宏吧 关注:8,754贴子:57,116
  • 18回复贴,共1

求大神,弄个自动喊话带连接的宏,自己有个但不能带连接

只看楼主收藏回复

/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


IP属地:吉林1楼2015-01-13 10:44回复
    黄图哥都不来。。。。


    IP属地:吉林2楼2015-01-13 10:47
    回复
      2026-05-05 14:33:16
      广告
      不感兴趣
      开通SVIP免广告
      自顶


      IP属地:吉林3楼2015-01-13 11:06
      回复
        宏比较长,宏的字数限制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)


        IP属地:上海4楼2015-01-13 12:55
        收起回复

          就这 意思 代码打上了 光是名没有连接啊


          IP属地:吉林5楼2015-01-13 20:31
          收起回复

            光是名没连接


            IP属地:吉林6楼2015-01-13 20:32
            回复
              链接是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)


              IP属地:上海7楼2015-01-13 22:33
              收起回复
                不错。这个


                8楼2016-09-04 15:07
                回复
                  2026-05-05 14:27:16
                  广告
                  不感兴趣
                  开通SVIP免广告
                  /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)


                  9楼2017-03-30 04:50
                  回复