一刀辅助编辑简单的脚本很方便大家都是知道的,那么编辑过验证码脚本?一刀插件官网可以明确的告诉你,一刀编辑过验证码脚本通用简单,现在就拿回收验证码来举例讲解下。
我们以一个小学生加减法题回收验证码为例:
原内容:
<╔┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╗/SCOLOR=250>\<┊/SCOLOR=250> <承天传奇独家防脱机脚本,还游戏一片绿色的净土/SCOLOR=254> <┊/SCOLOR=250>\<╠┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╣/SCOLOR=250>\<┊防脱机系统启动,请按照下列算术题回答,题目很简单回答结果都┊/SCOLOR=250>\<┊会被系统记录,系统会根据数据分析来判断是否脱机。脱机帐号会┊/SCOLOR=250>\<┊自动拉进监狱从重处罚。最后忠告:系统很先进,勿抱有侥幸心理┊/SCOLOR=250>\<╚┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈╝/SCOLOR=250>\\ <↓脱机验证题目↓/scolor=254>\\ <【小学减法题】/scolor=250> 7 - 2 = ? <[输入答案]@@InPutString61>\
以上是读取的验证码框内容,B版可以这样来编辑过验证代码:
/<
function 过验证()
local str=获取NPC对话内容()
if str:match("[输入答案]") then
local vc=str:match(">([^=<>]+)=")
local cmd=str:match("/(@@[^>]+)>")
if vc and cmd then
local sf=load("return "..vc)
if sf then
local r=sf()
if not r then r="" end
local content=tostring(r)
if content and #content>0 then
content=content:match("(%d+)") -- 过滤小数点
print("计算结果:"..content)
合成命令(cmd,content)
等待(1500)
end
end
end
end
end
过验证()
/>
这就是一段完整的过回收验证码代码,我们只需要把这段代码插入到回收脚本出验证的步骤即可,一刀辅助过回收验证是不是非常简单呢,有疑问可以直接咨询官网客服。