简单辅助输入指定颜色部分数字_脚本验证

2021-12-30 12:27:23 作者:

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

 


/<
上次对话内容=""
function 过验证()
--[[
红色 18=0 19=1 ... 27=9
蓝色 28=0 29=1 ... 37=9
绿色 38=0 39=1 ... 47=9
--]]
  local 对话内容=获取NPC对话内容()
  if 对话内容:match("防脱机验证系统") then
    if 上次对话内容==对话内容 then return end
    上次对话内容=对话内容
    local 输入指令=对话内容:match("/(@@[^>]+)>")
    local 最小序号=18; local 最大序号=27;
    if 对话内容:match("红色数字部分") then 最小序号=18;最大序号=27;
    elseif 对话内容:match("蓝色数字部分") then 最小序号=28;最大序号=37;
    elseif 对话内容:match("绿色数字部分") then 最小序号=38;最大序号=47;
    end
    local 输入内容=""
    for 序号 in 对话内容:gmatch("<Img:(%d+):") do
      if tonumber(序号)>=最小序号 and tonumber(序号)<=最大序号
      then 输入内容=输入内容..tostring(tonumber(序号)-最小序号)
      end
    end
    if 输入指令 and 输入内容~="" then
      合成命令(输入指令,输入内容)
    end
  end
end
过验证()  -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000)  --  脱机验证保留此行,删除上面一行
/>