/<
lastmsg=""
function 过验证()
::A::
local str=获取NPC对话内容()
if lastmsg==str then return end
lastmsg=str
if str:match("按顺序点击") then
local w=nil
for v in str:gmatch("【/SCOLOR=%d+>([^%?][^%?])<】") do
w = v
end
if not w then return end
local i=0
local content=nil
local t={"A","B","C","D","E"}
for v in str:gmatch("<|/SCOLOR=%d+>([^<]+)<│/SCOLOR=%d+> <[^/]+/@") do
i=i+1
if v:match(w) then
v=v:gsub(" ","")
v=v:gsub(" ","")
local s=v:find(w)
content=tostring((s+1)/2)
content=content:match("(%d+)")
content=t[i]..content
break
end
end
if content then
local cmd=str:match(content.."/(@[^>]+)>")
if cmd then
选择(cmd)
等待(1500)
goto A
end
end
end
end
过验证() -- 回收保留此行,删除下面一行
设置用户检测("过验证",1500) -- 脱机验证保留此行,删除上面一行。
/>