/ lastmsg='' function 过验证() local str=获取NPC对话内容() if lastmsg==str then return end lastmsg=str if str:match('正确答案') then local cmd = str:match('/(@@[^]+)') local content = str:match('正确答案[^{]+{([^/]+)/') if cmd and content then 合成命令(cmd,content) 等
/ function 过验证() local str=获取NPC对话内容() if str:match('输入验证码') then local cmd=str:match('/(@@[^]+)') local content=str:match('(%d+)') if cmd and content then 合成命令(cmd,content) 等待(1500) end end end 过验证() -- 回收验证保留此行,删除下面一行 设置用户检测('过验证