简单辅助选择正确答案(有答案)示例_脚本验证

2021-12-30 12:54:58 作者:

简单辅助_简单挂免费版|传奇单职业辅助_ >> 视频教程 >> 正文

 

/<
function 过验证()
  local str = 获取NPC对话框内容()
  if str:match("选择正确的答案") then
  local ans=str:match("(答案:([^ ]+) )")
  if not ans then ans=str:match("(([^ ]+) )") end
  if not ans then ans=str:match("%(正确答案提示:([^%)]+)%)") end
  local cmd=nil
  if ans then
    cmd=str:match("<[^/]*"..ans.."[^/]*/(@[^>]+)>")
  end
  if cmd then
   选择(cmd)
   等待(1500)
  end
 
  end
end
过验证()  -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000)  -- 脱机验证保留此行,删除上面一行
/>