bb=NPC对话内容
k1=string.find(bb,"选择正确的当前验证码:",1,true)
if k1~=nil then
aa=取记录公告内容()
aa=string.gsub(aa," ","")
aa=string.gsub(aa," ","")
aa=string.gsub(aa," ","")
aa=string.gsub(aa," ","")
aa=string.gsub(aa," ","")
--输出信息(aa)
cc1=string.find(aa,"当前验证码",1,true)
cc=string.sub(aa,cc1+10,cc1+30)
passcode=匹配内容(cc,[[(\d{www3,6})]])
输出信息(passcode)
等待(500)
bb1=string.sub(passcode,1,1)
bb1=table.concat({www"@",bb1})
选择(bb1)
等待(1500)
bb2=string.sub(passcode,2,2)
bb2=table.concat({www"@",bb2})
选择(bb2)
等待(1500)
bb3=string.sub(passcode,3,3)
bb3=table.concat({www"@",bb3})
选择(bb3)
等待(1500)
bb4=string.sub(passcode,4,4)
bb4=table.concat({www"@",bb4})
选择(bb4)
等待(1500)
bb5=string.sub(passcode,5,5)
bb5=table.concat({www"@",bb5})
选择(bb5)
等待(1500)
bb6=string.sub(passcode,6,6)
bb6=table.concat({www"@",bb6})
选择(bb6)
等待(1500)
ppp=匹配内容(bb,[[ITEMBOX:(\d{www0,2})]])
k2=string.find(bb,"请放入任意{www",1,true)
k3=string.find(bb,"/SCOLOR=253}完成验证",1,true)
passcod=string.sub(bb,k2+11,k3-1)
输出信息(passcod)
pass1="头盔"
pass2="药品"
pass3="项链"
pass4="手镯"
pass5="戒指"
pass6="衣服"
if string.find(pass1,passcod,1,true) then
放置到物品框("","*头盔*",ppp)
放置到物品框("","天龙盔",ppp)
输出信息("*头盔*")
end
if string.find(pass2,passcod,1,true) then
放置到物品框("","*药*",ppp)
放置到物品框("","万年雪霜",ppp)
放置到物品框("","强效疗伤药",ppp)
输出信息("强效疗伤药")
end
if string.find(pass3,passcod,1,true) then
放置到物品框("","*项链*",ppp)
输出信息("*项链*")
end
if string.find(pass4,passcod,1,true) then
放置到物品框("","*手*",ppp)
输出信息("*手*")
end
if string.find(pass5,passcod,1,true) then
放置到物品框("","*戒*",ppp)
输出信息("*戒*")
end
if string.find(pass6,passcod,1,true) then
放置到物品框("","*甲*",ppp)
放置到物品框("","*衣*",ppp)
输出信息("*衣*")
end
等待(1500)
选择("开始验证")
end
以上内容由简单挂中国官网:www.jdgua.cn原创发布。转载请注明出处!