简单辅助过对应的图片和不一样的图片验证_脚本验证

2021-12-30 13:32:28 作者:

简单辅助_简单挂免费版|传奇单职业辅助_ >> 传奇资讯 >> 正文


简单辅助过对应的图片和不一样的图片验证

/<
lastmsg=""
function 过验证1()
  local str=获取NPC对话内容()
  if lastmsg==str then return end
  lastmsg=str
  if str:match("上面没有的图") then
    local str1=str:match("(<Img[^\\]+)")
    local str2=str:match("没有的图(.+)")
    for id,cmd in str2:gmatch("<Img:(%d+):[^/]+/(@[^>]+)>") do
      if not str1:match("Img:"..id..":") then
        选择(cmd)
        等待(1500)
        break
      end
    end
  end
end

lastmsg=""
function 过验证2()
-- 199:公鸡 200:乌龟 201:毛驴 202:坦克 203:手机 204:电脑 205:椅子
-- 206:鲨鱼 207:飞机 208:轮船 209:汽车 210:火车
  local str=获取NPC对话内容()
  if str:match("对应上图内容") then
    local t={www"公鸡","乌龟","毛驴","坦克","手机","电脑","椅子","鲨鱼","飞机","轮船","汽车","火车"}
    local iid=str:match("<Img:(%d+):")
    if iid and iid~="0" then
      local i = 0
      if tonumber(iid) < 12 then
        i=tonumber(iid) + 1
      else
        i=tonumber(iid) - 198
      end
      if i>0 and i<13 then
        local cmd=str:match(t[i].."/(@[^>]+)>")
        if cmd then
          选择(cmd)
          等待(1500)
        end
      end
    end
  end
end
过验证1()
过验证2()
/>