QFunction
\ \ \请在30秒内完成下列验证后继续回收!!!!!!!!!\当前四位随机验证码为:3ag7 \验证要求:<请将4位随机验证码中扣除第二位的剩下三个字符输入到框中/SCOLOR=215> \验证说明:<例如四位验证码是1234,就输入134到框中/SCOLOR=215> \<输入要删除的名字/@@InputString79(请输入新的名称)> \
QFunction
\ \ \请在30秒内完成下列验证后继续回收!!!!!!!!!\当前四位随机验证码为:9OcS \验证要求:<请将4位随机验证码的后三位输入到框中/SCOLOR=215> \验证说明:<例如四位验证码是1234,就输入234到框中/SCOLOR=215> \<输入要删除的名字/@@InputString79(请输入新的名称)> \
/<
function 过验证()
local a=获取NPC对话框内容()
local pos=0
local type=0
local content=""
if string.find(a,"输入要删除的名字")~=NULL then
_,_,code=string.find(a,"验证码为:([0-9a-zA-Z]+)")
_,_,ii=string.find(a,"扣除第(..)位")
if ii==NULL then
_,_,ii=string.find(a,"的后(..)位")
type=1
end
if code==NULL or ii==NULL then return end
local s={www"一","二","三","四"}
for k,v in ipairs(s) do
if v==ii then
pos=k
break
end
end
if pos==0 then return end
if type==1 then
content=string.sub(code,#code-pos+1,#code)
else
for i=1,#code,1 do
if i~=pos then
content=content..string.sub(code,i,i)
end
end
end
_,_,cmd=string.find(a,"/(@@Input%a+%d+)")
if content~="" and cmd~="" then
合成命令(cmd,content)
print("输入验证码:"..content)
end
end
end
过验证()
/>
上一篇:简单辅助输入裁决数量_脚本验证
下一篇:简单辅助放入指定物品_脚本验证