你好,欢迎来到霸星辅助官方网站!
你的位置:主页 > 相关资讯 >

霸星B版过按顺序选择汉字脚本验证码

发布时间:2023-05-24  作者:霸星辅助 文章来源:https://www.baxingfz.com
按顺序选择汉字

/<
local lastmsg=""
function 过验证()
  local str=获取NPC对话内容()
  if lastmsg==str then return end
  lastmsg=str
  if str:match("验证码") then
  
function GetWords(s)
  s=s:gsub(" ","  ")
  local t={};local ti={};local rt={};
  for w in s:gmatch("{([^/]+)/SCOLOR=%d+}") do
    local ps=0;local pe=0;
    repeat
      ps,pe,w1=w:find("([^%s]+)",pe+1)
      if ps and w1 then t[ps]=w1;table.insert(ti,ps) end
    until not ps
  end
  table.sort(ti)
  for k,v in pairs(ti) do
    table.insert(rt,t[v])
  end
  return rt;
end
 
function GetCMDs(s)
  local rt={}
  for w,cmd in s:gmatch("<([^/]+)/(@防脱机[^>]+)>") do
    rt[w]=cmd
  end
  return rt;
end
 
    local cmds = GetCMDs(str)
    local words = GetWords(str)
    for k,v in ipairs(words) do
      if cmds[v] then
        选择(cmds[v])
        等待(1000)
      else
        for k2,v2 in pairs(cmds) do
          if 拼音比较(v,k2) then 
            选择(v2)
            等待(1000)
            break;
          end
        end
      end
    end
  end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行
/>

下面是对话内容


QFunction/<┏┅┓┏┅┓┏┅┓/SCOLOR=253> <验证码为:/SCOLOR=249>\<┇/SCOLOR=253><形/@防脱机按钮1><┇┇/SCOLOR=253><合/@防脱机按钮2><┇┇/SCOLOR=253><精/@防脱机按钮3><┇/SCOLOR=253>{     精     阴            néng /SCOLOR=254}\<┗┅┛┗┅┛┗┅┛/SCOLOR=253>{                       渺 /SCOLOR=254}\<┏┅┓┏┅┓┏┅┓/SCOLOR=253> \<┇/SCOLOR=253><能/@防脱机按钮4><┇┇/SCOLOR=253><惚/@防脱机按钮5><┇┇/SCOLOR=253><虚/@防脱机按钮6><┇/SCOLOR=253> \<┗┅┛┗┅┛┗┅┛/SCOLOR=253>   <查看过验证教程!/@过验证教程>\<┏┅┓┏┅┓┏┅┓/SCOLOR=253> <答错请撤销→/SCOLOR=222> <┏┅┅┅┅┓/SCOLOR=69> 『<看不清楚/@SXYZM>』\<┇/SCOLOR=253><固/@防脱机按钮7><┇┇/SCOLOR=253><渺/@防脱机按钮8><┇┇/SCOLOR=253><阴/@防脱机按钮9><┇/SCOLOR=253> <已点击记录→/SCOLOR=222> <┇/SCOLOR=69>        <┇/SCOLOR=69>\<┗┅┛┗┅┛┗┅┛/SCOLOR=253> <撤销可重答→/SCOLOR=222> <┗┅┅┅┅┛/SCOLOR=69> 『<撤销重答/@cxct>』\