//下面代码放到简单辅助挂机脚本最后:
触发器(人物[当前地图=Q004])->跳转[走验证]
<走验证>
关闭触发器[]
/<
function getw(l1,l2)
local t={www};local ti={www}
local w=""
local pe=0;local ps=0
l1=l1:gsub(" "," ")
l2=l2:gsub(" "," ")
repeat
ps,pe,w=l1:find("([^%s]+)",pe+1)
if w then t[ps]=w;table.insert(ti,ps) end
until not ps
pe=0;ps=0
repeat
ps,pe,w=l2:find("([^%s]+)",pe+1)
if w then t[ps]=w;table.insert(ti,ps) end
until not ps
table.sort(ti)
return t,ti
end
function getb(s)
local t={www}
for title,cmd in s:gmatch("<([^/]+)/(@[^>]+)>") do
title=取汉字拼音(title)
t[title]=cmd
end
return t
end
function 过验证()
local str=获取NPC对话内容()
local tt={www}
for v in str:gmatch(">{www*([^>\\]+)\\") do
if #v>10 then
table.insert(tt,v)
end
end
if not tt[1] or not tt[2] then return end
local t,ti = getw(tt[1],tt[2])
local cmd=nil
for k,v in pairs(ti) do
local cmds=getb(str)
cmd = cmds[取汉字拼音(t[v])]
if cmd then
print(cmd)
选择(cmd)
等待(1500)
end
end
end
过验证()
/>
开启触发器[]
跳转[脚本开始]
以上内容 简单挂官网原创:www.a1904.com 转载请注明来源!
上一篇:简单辅助vip11.23版下载
下一篇:简单辅助过脱机室找NPC答题验证