对话NPC("装备回收")
等待(1000)
aa=NPC对话内容
aa=string.gsub(aa,"█████████████████████████████","")
aa=string.gsub(aa,"<███████/AUTOCOLOR=249>","AAAAAAAAAAAAAA")
aa=string.gsub(aa,"<█████/AUTOCOLOR=249>","AAAAAAAAAA")
aa=string.gsub(aa,"<████/AUTOCOLOR=249>","AAAAAAAA")
aa=string.gsub(aa,"<███/AUTOCOLOR=249>","AAAAAA")
aa=string.gsub(aa,"<██/AUTOCOLOR=249>","AAAA")
aa=string.gsub(aa,"<█/AUTOCOLOR=249>","AA")
aa=string.gsub(aa,"<▍/AUTOCOLOR=249>","CC")
aa=string.gsub(aa,"█","BB")
--输出信息(aa)
mosuzi={}
mosuzi[0]="BBAAAAAABBBBAABBAABBBBAABBAABBBBAABBAABBBBAAAAAABB"
mosuzi[1]="BBBBBBAABBBBBBBBAABBBBBBBBAABBBBBBBBAABBBBBBBBAABB"
mosuzi[2]="BBAAAAAABBBBBBBBAABBBBAAAAAABBBBAABBBBBBBBAAAAAABB"
mosuzi[3]="BBAAAAAABBBBBBBBAABBBBAAAAAABBBBBBBBAABBBBAAAAAABB"
mosuzi[4]="BBBBBBAABBBBBBAAAABBBBAABBAABBBBAAAAAAAABBBBBBAABB"
mosuzi[5]="BBAAAAAABBBBAABBBBBBBBAAAAAABBBBBBBBAABBBBAAAAAABB"
mosuzi[6]="BBAAAAAABBBBAABBBBBBBBAAAAAABBBBAABBAABBBBAAAAAABB"
mosuzi[7]="BBAAAAAABBBBAABBAABBBBBBBBAABBBBBBBBAABBBBBBBBAABB"
mosuzi[8]="BBAAAAAABBBBAABBAABBBBAAAAAABBBBAABBAABBBBAAAAAABB"
mosuzi[9]="BBAAAAAABBBBAABBAABBBBAAAAAABBBBBBBBAABBBBAAAAAABB"
emosuzi={}
emosuzi[65]="BBBBBBBBAABBBBBBBBBBBBBBAAAAAABBBBBBBBBBAABBBBBBAABBBBBBAAAAAAAAAAAAAABBBBAABBBBBBBBBBAABB"
emosuzi[66]="BBBBAAAAAABBBBBBBBBBBBAABBBBAABBBBBBBBBBAAAAAABBBBBBBBBBBBAABBBBAABBBBBBBBBBAAAAAABBBBBBBB"
emosuzi[67]="BBBBAAAAAAAABBBBBBBBBBAABBBBBBBBBBBBBBBBAABBBBBBBBBBBBBBBBAABBBBBBBBBBBBBBBBAAAAAAAABBBBBB"
emosuzi[68]="BBBBAAAAAABBBBBBBBBBBBAABBBBCCBBBBBBBBBBAABBBBAABBBBBBBBBBAABBBBCCBBBBBBBBBBAAAAAABBBBBBBB"
emosuzi[69]="BBBBAAAAAAAABBBBBBBBBBAABBBBBBBBBBBBBBBBAAAAAAAABBBBBBBBBBAABBBBBBBBBBBBBBBBAAAAAAAABBBBBB"
emosuzi[70]="BBBBAAAAAAAABBBBBBBBBBAABBBBBBBBBBBBBBBBAAAAAAAABBBBBBBBBBAABBBBBBBBBBBBBBBBAABBBBBBBBBBBB"
emosuzi[72]="BBBBAABBBBAABBBBBBBBBBAABBBBAABBBBBBBBBBAAAAAAAABBBBBBBBBBAABBBBAABBBBBBBBBBAABBBBAABBBBBB"
emosuzi[76]="BBBBAABBBBBBBBBBBBBBBBAABBBBBBBBBBBBBBBBAABBBBBBBBBBBBBBBBAABBBBBBBBBBBBBBBBAAAAAAAABBBBBB"
emosuzi[84]="BBBBAAAAAAAAAABBBBBBBBBBBBAABBBBBBBBBBBBBBBBAABBBBBBBBBBBBBBBBAABBBBBBBBBBBBBBBBAABBBBBBBB"
emosuzi[85]="BBBBAABBBBBBAABBBBBBBBAABBBBBBAABBBBBBBBAABBBBBBAABBBBBBBBAABBBBBBAABBBBBBBBAAAAAAAAAABBBB"
emosuzi[90]="BBBBAAAAAAAAAABBBBBBBBBBBBBBAABBBBBBBBBBBBBBAABBBBBBBBBBBBBBAABBBBBBBBBBBBBBAAAAAAAAAABBBB"
--输出信息(string.char(65))
abstring={}
for i=1,5 do
kk=匹配内容(aa,[[([A-C]{58})]])
if kk~=nil then
abstring[i]=kk
aa=string.gsub(aa,kk,"",1)
--输出信息(abstring[i])
end
end
destring=table.concat{abstring[1],abstring[2],abstring[3],abstring[4],abstring[5]}
--输出信息(destring)
--输出信息("第一位")
passstring={}
suziab={}
k1=1
for i=1,5 do
suziab[i]=string.sub(destring,k1,k1+9)
----输出信息(suziab[i])
k1=k1+58
end
passstring[1]=table.concat{suziab[1],suziab[2],suziab[3],suziab[4],suziab[5]}
--输出信息("第二位")
k1=1
for i=1,5 do
suziab[i]=string.sub(destring,k1+10,k1+19)
--输出信息(suziab[i])
k1=k1+58
end
passstring[2]=table.concat{suziab[1],suziab[2],suziab[3],suziab[4],suziab[5]}
--输出信息("第三位")
k1=1
for i=1,5 do
suziab[i]=string.sub(destring,k1+20,k1+29)
-- 输出信息(suziab[i])
k1=k1+58
end
passstring[3]=table.concat{suziab[1],suziab[2],suziab[3],suziab[4],suziab[5]}
--输出信息("第四位")
k1=1
for i=1,5 do
suziab[i]=string.sub(destring,k1+30,k1+39)
--输出信息(suziab[i])
k1=k1+58
end
passstring[4]=table.concat{suziab[1],suziab[2],suziab[3],suziab[4],suziab[5]}
k1=1
for i=1,5 do
suziab[i]=string.sub(destring,k1+40,k1+57)
-- 输出信息(suziab[i])
k1=k1+58
end
e5=table.concat{suziab[1],suziab[2],suziab[3],suziab[4],suziab[5]}
for i=65,90 do
if e5==emosuzi[i] then
-- 输出信息("E5=")
passe=string.char(i)
end
end
desuzi={}
for i1=1,4 do
for i2=0,9 do
if passstring[i1]==mosuzi[i2] then
--输出信息(i2)
desuzi[i1]=i2
end
end
end
if passe~=nil then
passcode=table.concat{desuzi[1],desuzi[2],desuzi[3],desuzi[4],passe}
--输出信息(passcode)
findapi=匹配内容(NPC对话内容,[[(@@InPutString\d{1,3})]])
if findapi~=nil then
api=findapi
else
api=匹配内容(NPC对话内容,[[(@@InPutInteger\d{1,3})]])
end
合成命令(api,passcode)
end