简单辅助输入指定行列验证图案_脚本验证

2021-12-30 12:26:47 作者:

简单辅助_简单挂免费版|传奇单职业辅助_ >> 传奇资讯 >> 正文

 

/<
lastmsg=""
function 过验证()
  local str=获取NPC对话内容()
  if lastmsg==str then return end
  lastmsg=str
  if str:match("正确的验证图案") then
    local cmd=str:match("/(@@[^>]+)>")
    if not cmd then return end
    local nums={www}
    for a in str:gmatch("<Img:(%d+):") do
      table.insert(nums,a-479)
    end
    ind,tar=str:match("【第([一二三四1-4]+)([行列]+)】")
    if not ind or not tar then return end
    ind=ind:gsub("四","4"):gsub("三","3"):gsub("二","2"):gsub("一","1")
    if tar=="列"
    then step=4;start=tonumber(ind)
    else step=1;start=(tonumber(ind)-1)*4+1
    end
    local content=""
    for i=0,3 do
      content=content..nums[i*step+start]
    end
    content=content:gsub(".0","")
    if #content==4 then
      合成命令(cmd,content)
    end
  end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000)  -- 脱机验证保留此行,删除上面一行
/>