现在有很多的传奇私服版本有需要站到装备上的防脱机验证,这种验证对于很多传奇辅助来说都是一个难点,需要特定的接口有的甚至还需要收集装备编号。为了更好的让用户挂机私服,现在传奇辅助排行榜第一品牌来告诉大家如何设置这种过验证脚本。
防脱机验证码如上图所示,就是点击npc会给你一个提示,然后根据提示站到对于的装备上面,然后在点完成验证即可。这种验证之所以难过是因为需要特定的接口来获取装备光点,让我们一起来看下过验证代码:
function extractChinese(s)
local dstString = ""
for m in string.gmatch(s,'地上“.*”的上') do
dstString = dstString..m
end
dstString = string.gsub(dstString, "地上“", "");
dstString = string.gsub(dstString, "”的上", "");
return dstString
end
function extractChinese2(s)
local arrstr = {}
for m in string.gmatch(s,'[%z\1-\127]') do
table.insert(arrstr, m)
end
return arrstr
end
function getmystr(ss)
local sstmp = extractChinese(ss)
local ssarrstr = extractChinese2(sstmp)
local ssarrstrlen = #ssarrstr
for i=1,ssarrstrlen do
sstmp = string.gsub(sstmp, ssarrstr[i], "");
end
return sstmp
end
function 过验证()
pass={}
停止战斗()
等待(500)
走到(35,31)
对话NPC("验证码")
等待(1500)
k1= getmystr(NPC对话内容)
输出信息("过验证 k1="..k1)
for i=1,12 do
pass[i]=取光点坐标(i)
pass[i]=string.gsub(pass[i],"|",":")
pass[i]=string.gsub(pass[i],"65536043","头盔")
pass[i]=string.gsub(pass[i],"65536044","项链")
pass[i]=string.gsub(pass[i],"65536034","武器")
pass[i]=string.gsub(pass[i],"65536035","衣服")
pass[i]=string.gsub(pass[i],"65536038","戒指")
pass[i]=string.gsub(pass[i],"65536046","腰带")
pass[i]=string.gsub(pass[i],"65536045","靴子")
pass[i]=string.gsub(pass[i],"65536036","宝石")
pass[i]=string.gsub(pass[i],"65536040","矿石")
pass[i]=string.gsub(pass[i],"65536041","骰子")
pass[i]=string.gsub(pass[i],"65536037","抽卷")
pass[i]=string.gsub(pass[i],"65536047","药瓶")
pass[i]=string.gsub(pass[i],"65536042","手镯或手套")
pass[i]=string.gsub(pass[i],"65536039","金币或金条或金箱")
end
for i=1,12 do
if string.find(pass[i],k1,1,true) then
passcode=pass[i]
end
end
goto_x=匹配内容(passcode,[[(\d{2}):\d{2}:100]])
goto_y=匹配内容(passcode,[[\d{2}:(\d{2}):100]])
走到(goto_x,goto_y)
对话NPC("验证码")
等待(1500)
选择("我要验证")
等待(2500)
end
if 当前地图编号=="未知地图" then
过验证()
end
if 取背包中物品数量("*")>35 then
发送自定义封包(0,171,3,0,0)
等待(1500)
选择("@多挥手光光的")
end
不同的传奇私服版本可能光点坐标还不一样,大家到时候根据实际情况来获取下即可,一般这种过验证码脚本都是定时脚本来执行。