function 主体函数()
对话NPC("装备回收")
等待(1500)
local aa
aa=NPC对话框内容()
local kk
kk=string.find(aa,"骰子",1,true)
if kk~=nil then
aa=string.sub(aa,1,kk)
local mosuzi
mosuzi={}
mosuzi[1]="CGGCGCFEGBDDEGEGEGCFEGBDEGCFEGBDDEGCFEGBDEGCFEGBDDEG"
mosuzi[2]="CGGCGCAABDDEGCFDEBDCFDEBDDCAABEGCBDDDD"
mosuzi[3]="CGGCGCAABDDEGCFDEBDGCFDEBDDCAABDGCFDEBDD"
mosuzi[4]="CGGCGCBDEBDDEGCBDEBDECBDEBDDCAABDECFDEBDD"
mosuzi[5]="CGGCGCAABDDEGCBDDDCBDDDDCAABEGCFDEBDD"
mosuzi[6]="CGGCGCAABDDEGCBDDDCBDDDDCAABDCBDEBDD"
local i
local pp
local i
for i=48,57 do
aa=string.gsub(aa,string.char(i),"")
end
for i=65,90 do
aa=string.gsub(aa,string.char(i),"")
end
for i=97,122 do
aa=string.gsub(aa,string.char(i),"")
end
aa=string.gsub(aa,"<","")
aa=string.gsub(aa,">","")
aa=string.gsub(aa,"【","")
aa=string.gsub(aa,"】","")
aa=string.gsub(aa,"=","")
aa=string.gsub(aa,"!","")
aa=string.gsub(aa,",","")
aa=string.gsub(aa,"←","")
aa=string.gsub(aa,"/","")
aa=string.gsub(aa,"@","")
aa=string.gsub(aa,"██","A")
aa=string.gsub(aa,"█","B")
aa=string.gsub(aa,"\\","C")
aa=string.gsub(aa," ","D")
aa=string.gsub(aa," ","E")
aa=string.gsub(aa," ","F")
aa=string.gsub(aa," ","G")
for i=1,200 do
pp=匹配内容(aa,[[([\u4e00-\u9fa5])]])
if pp~="error.Null" then
aa=string.gsub(aa,pp,"")
end
end
local k1
for i=1,6 do
k1=string.find(aa,mosuzi[i],1,true)
if k1~=nil then
输出信息(tostring(i))
if i==1 then
拖放物品("验证 ",1)
end
if i==2 then
拖放物品("验证?",1)
end
if i==3 then
拖放物品("验证?",1)
end
if i==4 then
拖放物品("验证?",1)
end
if i==5 then
拖放物品("验证?",1)
end
if i==6 then
拖放物品("验证?",1)
end
break
end
end
输出信息(aa)
end
--在此处写过完验证以后的内容,例如:选择
end