//下面代码放到<脚本开始>下面
如果(人物[当前地图=0110])->跳转("走验证")
//下面代码放到挂机脚本最后
触发器(人物[当前地图=0110])->跳转("走验证")
<走验证>
关闭触发器()
/<
x,y = 获取最近NPC坐标()
if x and y then
对话(x,y)
等待(1500)
end
local str=获取NPC对话内容()
local cmd=""
if str:match("点我验证") then
cmd=str:match("点我验证/(@[^>]+)>")
选择(cmd)
等待(1500)
end
local dhstr=获取对话框内容()
local content=dhstr:match("(%d+)")
if content then
for i=1,#content do
选择("@按键"..content:sub(i,i))
等待(1000)
end
选择("@确定")
清空NPC对话内容()
等待(1000)
end
/>
开启触发器()
跳转("脚本开始")