简单辅助过笔画最多字的验证_脚本验证

2021-12-30 13:38:14 作者:

简单辅助_简单挂免费版|传奇单职业辅助_ >> 下载中心 >> 正文

 

/<
function 过验证()
  function 获取未知汉字笔画(a)
    local 未识别的汉字笔画表 =
    {www
      黳=23, 騜=19
    }
    return 未识别的汉字笔画表[a]
  end

  local str=获取NPC对话内容()
  if str:match("笔画最") then
    local cmd=nil
    local bhs=0
    local zx=false
    if str:match("笔画最少") then
      zx=true
      bhs=99
    end
    for v,c in str:gmatch("([^/::]+)/AUTOCOLOR=%d+} <[^/]+/(@[^>]+)>") do
      local b=获取汉字笔画数(v)
      if not b or b<=0 then
        b=获取未知汉字笔画(v)
      end
      if (not zx and b>bhs) or (zx and b<bhs) then
        bhs=b
        cmd=c
      end
    end
    if cmd then
      选择(cmd)
      清空NPC对话内容()
      等待(1500)
    end
  end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行
/>