WBE自动转身面对目标写法分享
放入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)
1111111111111
:lol:lol:l谢谢
页:
[1]