找回密码
 立即注册
查看: 398|回复: 0

[通用宏] WBE自动转身面对目标写法分享

[复制链接]

121

主题

0

回帖

165

积分

注册会员

积分
165
发表于 2024-2-7 21:40:45 | 显示全部楼层 |阅读模式
138wow.com


放入WBE即可,自行测试
  1. if BeeGetVariable("tm") == nil then BeeSetVariable("tm", 0)  end
  2. local NT=GetTime();
  3. local LT=BeeGetVariable("tm")

  4. if NT-LT >= 0.1
  5. then
  6.     TurnRightStop()
  7. end

  8. --print("剩余时间"..NT-LT)
  9. local function Turn(_,_,s)

  10.     if s == "你必须面对目标。" then
  11.         --    print("开始转向")
  12.         TurnRightStart()
  13.         BeeSetVariable("tm", GetTime())
  14.     end
  15. end
  16. local TurnR = CreateFrame("Frame")
  17. TurnR:RegisterEvent("UI_ERROR_MESSAGE")
  18. TurnR:SetScript("OnEvent", Turn)
复制代码


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|138wow魔兽私服论坛

GMT+8, 2024-5-9 16:53 , Processed in 0.042552 second(s), 18 queries .

Powered by Discuz! X3.5 Designed by 138wow.com © 魔兽世界私服,魔兽世界私服论坛

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表