/<
lastmsg=""
function 过验证()
local str=获取NPC对话内容()
if str==lastmsg then return end
lastmsg = str
if str:match("(方块有几个)") then
local cmd=str:match("/(@@[^>]+)>")
if cmd then
local c=0
for a in str:gmatch("<■/SCOLOR") do
c=c+1
end
if c>0 then
local content=tostring(c)
content=content:match("%d+")
合成命令(cmd,content)
等待(1000)
end
end
end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行
/>