/<
function 过验证()
local str=获取NPC对话内容()
local ask=str:match("%[验证问题%]/scolor=[^>]+>:<*([,%d ‖ ]+)[^%-]*%-%-")
if not ask then return end
ask=ask:gsub(",","")
ask=ask:gsub("‖","")
local fx,ind=str:match("从<([^/]+)/scolor=254>第(%d+)个数字")
if not fx or not ind then
if not str:match("中间的数字") then return end
fx=""
ind=(#ask+1)/2
end
if fx=="右至左" then ask:reverse() end
local ans=ask:sub(tonumber(ind),tonumber(ind))
if not ans then return end
local cmd=str:match("<%["..ans.."%]/(@[^>]+)>")
if cmd then
选择(cmd)
等待(1500)
end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行
/>
下一篇:简单辅助选择正确的公式_脚本验证