function 主体函数()
local 返回值1
返回值1 = 发言("@会员")
if 返回值1 ~= 0 then
return 1
end
等待(1000)
选择("[0]")
等待(1000)
local aa
aa=NPC对话框内容()
aa=string.gsub(aa,"□","A")
aa=string.gsub(aa,"●","A")
aa=string.gsub(aa,"①","A")
aa=string.gsub(aa," ","B")
aa=string.gsub(aa,"○","A")
aa=string.gsub(aa,"⊙","A")
aa=string.gsub(aa,"◎","A")
aa=string.gsub(aa,"⊕","A")
aa=string.gsub(aa,"■","A")
输出信息(aa)
local mosuzi={}
mosuzi[0]="AAAAAAAAAAAABBBBBBAAAABBBBBBAAAABBBBBBAAAABBBBBBAAAABBBBBBAAAAAAAAAAAA"
mosuzi[1]="BABBABBABBABBAB"
mosuzi[2]="AAABBAAAAABBAAA"
mosuzi[3]="AAABBAAAABBAAAA"
mosuzi[4]="ABAABAAAABBABBA"
mosuzi[5]="AAAABBAAABBAAAA"
mosuzi[6]="AAAABBAAAABAAAA"
mosuzi[7]="AAABBABBABBABBA"
mosuzi[8]="AAAABAAAAABAAAA"
mosuzi[9]="AAAABAAAABBAAAA"
local kk
local i
local abstring={}
local desuzi={}
local pass={}
for i=1,5 do
kk=匹配内容(aa,[[([A-B]{15})]])
if kk~=nil then
abstring[i]=kk
aa=string.gsub(aa,kk,"",1)
--输出信息(abstring[i])
end
end
for i=1,5 do
desuzi[i]=string.sub(abstring[i],1,3)
--输出信息(desuzi[i])
end
pass[1]=table.concat{desuzi[1],desuzi[2],desuzi[3],desuzi[4],desuzi[5]}
for i=0,9 do
if pass[1]==mosuzi[i] then
--输出信息(tostring(i))
pass[1]=tostring(i)
end
end
for i=1,5 do
desuzi[i]=string.sub(abstring[i],5,7)
--输出信息(desuzi[i])
end
pass[2]=table.concat{desuzi[1],desuzi[2],desuzi[3],desuzi[4],desuzi[5]}
for i=0,9 do
if pass[2]==mosuzi[i] then
--输出信息(tostring(i))
pass[2]=tostring(i)
end
end
for i=1,5 do
desuzi[i]=string.sub(abstring[i],9,11)
--输出信息(desuzi[i])
end
pass[3]=table.concat{desuzi[1],desuzi[2],desuzi[3],desuzi[4],desuzi[5]}
for i=0,9 do
if pass[3]==mosuzi[i] then
--输出信息(tostring(i))
pass[3]=tostring(i)
end
end
for i=1,5 do
desuzi[i]=string.sub(abstring[i],13,15)
--输出信息(desuzi[i])
end
pass[4]=table.concat{desuzi[1],desuzi[2],desuzi[3],desuzi[4],desuzi[5]}
for i=0,9 do
if pass[4]==mosuzi[i] then
--输出信息(tostring(i))
pass[4]=tostring(i)
end
end
if pass[4]~=nil then
设置对话框状态(0)
选择("请点击*")
等待(1000)
bb=提示对话框内容()
bb=string.gsub(bb,"一","1")
bb=string.gsub(bb,"二","2")
bb=string.gsub(bb,"三","3")
bb=string.gsub(bb,"四","4")
bb=string.gsub(bb,"五","5")
bb=string.gsub(bb,"壹","1")
bb=string.gsub(bb,"贰","2")
bb=string.gsub(bb,"叁","3")
bb=string.gsub(bb,"肆","4")
bb=string.gsub(bb,"伍","5")
bb=string.gsub(bb,"⑴","1")
bb=string.gsub(bb,"⑵","2")
bb=string.gsub(bb,"⑶","3")
bb=string.gsub(bb,"⑷","4")
bb=string.gsub(bb,"⑸","5")
bb=string.gsub(bb,"⒈","1")
bb=string.gsub(bb,"⒉","2")
bb=string.gsub(bb,"⒊","3")
bb=string.gsub(bb,"⒋","4")
bb=string.gsub(bb,"⒌","5")
bb=string.gsub(bb,"1","1")
bb=string.gsub(bb,"2","2")
bb=string.gsub(bb,"3","3")
bb=string.gsub(bb,"4","4")
bb=string.gsub(bb,"5","5")
bb=string.gsub(bb,"㈠","1")
bb=string.gsub(bb,"㈡","2")
bb=string.gsub(bb,"㈢","3")
bb=string.gsub(bb,"㈣","4")
bb=string.gsub(bb,"㈤","5")
bb=string.gsub(bb,"①","1")
bb=string.gsub(bb,"②","2")
bb=string.gsub(bb,"③","3")
bb=string.gsub(bb,"④","4")
bb=string.gsub(bb,"⑤","5")
输出信息(bb)
local su1
local su2
local pass1
local passcode
pass1=匹配内容(bb,[[\d]])
if pass1~="error.Null" then
su1=pass[tonumber(pass1)]
bb=string.gsub(bb,pass1,"",1)
pass1=匹配内容(bb,[[\d]])
su2=pass[tonumber(pass1)]
passcode=table.concat{su1,su2}
输出信息(passcode)
回答(passcode)
设置对话框状态(1)
end
end
end