aa=NPC对话内容
k1=string.find(aa,"荣誉值",1,true)
if k1~=nil then
passcode=取整型变量信息("荣誉值")
if tonumber(passcode)<10 then
passcode=table.concat{wwwpasscode,"1"}
end
if tonumber(passcode)>99 then
w=string.len(passcode)
passcode=string.sub(passcode,w-1,w)
end
end
k1=string.find(aa,"元宝",1,true)
if k1~=nil then
passcode=取整型变量信息("元宝")
if tonumber(passcode)<10 then
passcode=table.concat{wwwpasscode,"1"}
end
if tonumber(passcode)>99 then
w=string.len(passcode)
passcode=string.sub(passcode,w-1,w)
end
end
k1=string.find(aa,"血量",1,true)
if k1~=nil then
passcode=取整型变量信息("MaxHP")
if tonumber(passcode)<10 then
passcode=table.concat{wwwpasscode,"1"}
end
if tonumber(passcode)>99 then
w=string.len(passcode)
passcode=string.sub(passcode,w-1,w)
end
end
输出信息(passcode)
if passcode~=nil then
findapi=匹配内容(NPC对话内容,[[(@@InPutString\d{www1,3})]])
if findapi~=nil then
api=findapi
else
api=匹配内容(NPC对话内容,[[(@@InPutInteger\d{www1,3})]])
end
合成命令(api,passcode)
end
以上内容由简单挂中国官网:www.jdgua.cn原创发布。转载请注明出处!
上一篇:输入四位英文字母验证码大全
下一篇:防置到几号按钮验证码大全