传奇脱机脚本输入六位图片数字验证
/<
function 过验证()
local str=获取NPC对话内容()
if str:match("验证码") then
local content=""
local cmd=str:match("/(@@[^>]+)>")
local t="<0:1010><1:1015><2:1011><3:1016><4:1012><5:1017><6:1013><7:1018><8:1014><9:1019>"
for v in str:gmatch("<Img:(%d+):") do
content=content..t:match("<(%d+):"..v..">")
end
if cmd and #content==6 then
合成命令(cmd,content)
清空NPC对话内容()
等待(1500)
end
end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行。
/>