|
/<
function 过验证()
local str=获取NPC对话内容()
if str:match("颜色不一样的数字") then
local c1=nil;local n1=nil;local c2=nil;local n2=nil;
local col1=nil;local col2=nil;local content=nil;
for num,col in str:gmatch("<【(%d+)】/SCOLOR=(%d+)>") do
if not c1 then
c1=1
col1=col
n1=num
elseif col == col1 then c1=c1+1
elseif not c2 then
c2=1
col2=col
n2=num
elseif col == col2 then c2=c2+1
end
end
if c1 and c2 then
if c1 == 1 then content = n1
else content = n2
end
end
if content then
for i=1,#content do
local n=content:sub(i,i)
local cmd=str:match("<『"..n.."』/(@[^>]+)>")
if cmd then
选择(cmd)
等待(1000)
end
str=获取NPC对话内容()
end
local cmd=str:match("/(@确认[^>]*)>")
if cmd then
选择(cmd)
清空NPC对话内容()
等待(1000)
end
end
end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行
/>
|
|