现在我们在传奇自动脱机的时候会遇到在游戏里面地图挂机的时候会同时有双验证码,对于这个大家都很闷,不知道如何编辑,今天我们
刀速插件官网就免费提供这个脚本模版如下,如果需要的大家复制更改验证码即可使用,如果不懂的可以联系我们官网客服。
/<
lastmsg=""
function 过验证1()
local str = 获取NPC对话内容()
local pos = str:find("脱机")
if pos and str:match("系统") then
local cmd=str:match("/(@%w+)>",pos+1)
if cmd then
选择(cmd)
等待(1500)
end
end
end
lastmsg=""
function 过验证2()
function isf(an,c,num)
local p1 = 0
local nc = 0
while an ~= "" do
p1 = string.find(an,num,p1+1)
if p1 == NULL then
break
end
nc = nc + 1
end
return nc == c
end
function selectanswer(n,ii)
local p1 = 0
local s = ""
for i=1,ii,1 do
p1,_,s = string.find(n,"点击我/(@[^>]+)>",p1+1)
if p1 == NULL then
break
end
end
if s ~= "" and s ~= NULL then
选择(s)
等待(2000)
end
end
function 过验证()
local n = 获取NPC对话内容()
local ii = 0
local pos = 0
if string.find(n,"找出以下几组数据中") ~= NULL then
_,_,a,b = string.find(n,"里面有%s*(%d)%s*个%s*(%d)")
a1 = tonumber(a)
if a ~= NULL and b ~= NULL then
while n ~= "" do
ii = ii + 1
pos,_,an = string.find(n,"答案%d:(%d+)/",pos+1)
if pos == NULL or an == NULL then
break
end
if isf(an,a1,b) then
selectanswer(n,ii)
break
end
end
end
end
end
过验证1()
过验证2()
/>