简单辅助过输入加减乘除结果4验证

2021-12-28 19:56:42 作者:

简单辅助_简单挂免费版|传奇单职业辅助_ >> 网站导航 >> 正文

 

/<
function 过验证()
  local tab={www
              {www"加","+"},{www"减","-"},{www"乘","*"},{www"除","/"},
              {www"+","+"},{www"—","-"},{www"×","*"},{www"÷","/"},
              {www"[","("},{www"]",")"},{www"【","("},{www"】",")"},
              {www"{www","("},{www"}",")"},{www"<","("},{www">",")"},
            }
  local function maskstr(str)
    for k,v in ipairs(tab) do
      if v[1]==str then return v[2] end
    end
    return str
  end
 
  local str=获取NPC对话内容()
  if str:match("验证问题") then
    local cmd=str:match("/(@[^>]+)>")
    local str2=maskstr(str)
    local bds=str2:match("([%d%+%-%*%/]+)=")
    if not bds then return end
    local sf=load("return "..bds)
    if sf and cmd then
      local r=sf()
      if not r then r="" end
      local content=tostring(r)
      if content and #content>0 then
        content=content:match("(%d+)")
        合成命令(cmd,content)
        清空NPC对话内容()
        等待(1000)
      end
    end
  end
end
 
过验证() -- 简单辅助过回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行
/>
以上内容 简单挂官网原创:www.a1904.com 转载请注明来源!