今天教大家怎么调试简单挂过表格验证码

2015-04-03 22:58:26

简单挂官网 >> 速战辅助 >> 正文

首先打开我们的脚本编辑器,找到表格的验证码,如下图:

今天教大家怎么调试简单挂过表格验证码

这个验证码可能跟我们玩的服有一点的差异,不要紧原理都是相同的,用简单挂脚本编辑器生成的代码如下:

function 过验证1()
 NPC对话内容=获取NPC对话框内容()
 npcsuzu={}
 npcsuzu[1]={}
 npcsuzu[2]={}
 npcsuzu[3]={}
 npcsuzu[4]={}
 npcsuzu[5]={}
 npcsuzu[6]={}
 npcsuzu[7]={}
 npcsuzu[8]={}
 npcsuzu[9]={}
 npcsuzu[10]={}
 npcsuzu[11]={}
 npcsuzu[12]={}
 npcsuzu[13]={}
 npcsuzu[14]={}
 aa=NPC对话内容
 kk1=string.find(aa,"①",1,true)
 faa1=string.sub(aa,kk1+4,kk1+58)
 for i2=1,14 do
  npcsuzu[i2][1]=string.sub(faa1,(i2-1)*4+1,(i2-1)*4+2)
 end
 kk1=string.find(aa,"②",1,true)
 faa1=string.sub(aa,kk1+4,kk1+58)
 for i2=1,14 do
  npcsuzu[i2][2]=string.sub(faa1,(i2-1)*4+1,(i2-1)*4+2)
 end
 kk1=string.find(aa,"③",1,true)
 faa1=string.sub(aa,kk1+4,kk1+58)
 for i2=1,14 do
  npcsuzu[i2][3]=string.sub(faa1,(i2-1)*4+1,(i2-1)*4+2)
 end
 passk1=string.find(NPC对话内容,"请输入【",1,true)
 passa1=string.sub(NPC对话内容,passk1+8,passk1+13)
 pp1=string.sub(passa1,1,2)
 pp2=string.sub(passa1,3,3)
 pp3=string.sub(passa1,4,5)
 pp4=string.sub(passa1,6,6)
 if pp1=="A" then
  ppp1=1
 end
 if pp1=="B" then
  ppp1=2
 end
 if pp1=="C" then
  ppp1=3
 end
 if pp1=="D" then
  ppp1=4
 end
 if pp1=="E" then
  ppp1=5
 end
 if pp1=="F" then
  ppp1=6
 end
 if pp1=="G" then
  ppp1=7
 end
 if pp1=="H" then
  ppp1=8
 end
 if pp1=="I" then
  ppp1=9
 end
 if pp1=="J" then
  ppp1=10
 end
 if pp1=="K" then
  ppp1=11
 end
 if pp1=="L" then
  ppp1=12
 end
 if pp1=="M" then
  ppp1=13
 end
 if pp1=="N" then
  ppp1=14
 end
 if pp3=="A" then
  ppp3=1
 end
 if pp3=="B" then
  ppp3=2
 end
 if pp3=="C" then
  ppp3=3
 end
 if pp3=="D" then
  ppp3=4
 end
 if pp3=="E" then
  ppp3=5
 end
 if pp3=="F" then
  ppp3=6
 end
 if pp3=="G" then
  ppp3=7
 end
 if pp3=="H" then
  ppp3=8
 end
 if pp3=="I" then
  ppp3=9
 end
 if pp3=="J" then
  ppp3=10
 end
 if pp3=="K" then
  ppp3=11
 end
 if pp3=="L" then
  ppp3=12
 end
 if pp3=="M" then
  ppp3=13
 end
 if pp3=="N" then
  ppp3=14
 end
 passaa=npcsuzu[tonumber(ppp1)][tonumber(pp2)]
 passbb=npcsuzu[tonumber(ppp3)][tonumber(pp4)]
 passcode=table.concat({passaa,passbb})
 findapi=匹配内容(NPC对话内容,[[(@@InPutString\d{1,3})]])
 if findapi~=nil then
  api=findapi
 else
  api=匹配内容(NPC对话内容,[[(@@InPutInteger\d{1,3})]])
 end
 合成命令(api,passcode)
 等待(1500)
end
需要我们去修改的就是NPC对话内容的代码,现在很多不同的服代码都是不一样的。

鏈変簨鎮ㄦ壂涓€鎵�


鍦ㄧ嚎鍙栧崱


9锛�00 ~ 24锛�00