传奇脱机从下面答案中选出指定颜色的字:
/<
function 过验证()
local str=获取NPC对话内容()
if str:match("验证码") then
local ct={蓝="252",红="249",黄="251",绿="250"}
local t=str:match("选出“([^/]+)”色的字")
local colortext=nil;local i=0
if t then colortext = ct[t] end
if not colortext then return end
for w in str:gmatch(":{[^/]+/FCOLOR=(%d+)}") do i=i+1
if w == colortext then break end
end
if i > 0 then
选择("@"..i)
清空NPC对话内容()
等待(1000)
end
end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行
/>