传奇挂机脚本之过逆序开始脱机验证:
// 下面全部代码都放到挂机脚本最后面
触发器(背包("防脱机卷轴>0"))->跳转("过验证")
<过验证>
关闭触发器()
使用("防脱机卷轴")
等待(1500)
/<
function 过验证()
local str=获取NPC对话内容()
if str:match("输入:") then
local cmd=str:match("/(@@[^>]+)>")
local content=str:match("输入:(%w+)")
if cmd and content then
if str:match("逆序") then
local newContent=content
content=""
for i=#newContent,1,-1 do
content=content..newContent:sub(i,i)
end
end
合成命令(cmd,content)
清空NPC对话内容()
等待(1500)
end
end
end
过验证()
/>
开启触发器()
跳转("脚本开始")
以上图片的2种类型的逆顺验证码输入都是通用的。