|
加群说138wow.com看到的
放入WBE即可,自行测试
- if BeeGetVariable("tm") == nil then BeeSetVariable("tm", 0) end
- local NT=GetTime();
- local LT=BeeGetVariable("tm")
- if NT-LT >= 0.1
- then
- TurnRightStop()
- end
- --print("剩余时间"..NT-LT)
- local function Turn(_,_,s)
- if s == "你必须面对目标。" then
- -- print("开始转向")
- TurnRightStart()
- BeeSetVariable("tm", GetTime())
- end
- end
- local TurnR = CreateFrame("Frame")
- TurnR:RegisterEvent("UI_ERROR_MESSAGE")
- TurnR:SetScript("OnEvent", Turn)
复制代码
|
|