/<
lastmsg=""
function 过验证()
local str=获取NPC对话内容()
if lastmsg==str then return end
lastmsg=str
if str:match("方框中心") then
local cmd = str:match("/(@[^>]+)>")
local cn = str:match("下面“([白黄绿红]+)色”部分")
local color=nil
if cn=="白" then color="255"
elseif cn=="黄" then color="251"
elseif cn=="绿" then color="250"
elseif cn=="红" then color="58"
end
local content=nil
if color then
content = str:match(color.."#[^%d]+(%d+)")
end
local id = str:match("<INPUTTEXT%d+")
if cmd and content and id then
合成命令(cmd,id..content)
等待(1500)
end
end
end
过验证() -- 回收验证保留此行,删除下面一行
设置用户检测("过验证",2000) -- 脱机验证保留此行,删除上面一行
/>