欢迎光临散文网 会员登陆 & 注册

魔兽插件25:代码

2022-05-15 21:43 作者:老胡聊聊天  | 我要投稿

laohu25.lua的内容:

```

FB = FB or CreateFrame("Frame")

FB:RegisterEvent("CHAT_MSG_CHANNEL")

if B then

    print("关")

    B = nil

else

    print("开")

    B = function(self,event,...)

      a = {...}

      message = a[1]

      sender = a[2]

      channelIdx = a[8]

      print(message,sender,channelIdx)

      if sender=="Jfkldsf-祖尔格拉布" and string.find(message,"hello") then

        SendChatMessage(sender.."这个人是帅哥","CHANNEL",nil,channelIdx)

      end

    end

end

FB:SetScript("OnEvent", B)


```

魔兽插件25:代码的评论 (共 条)

分享到微博请遵守国家法律