你的位置: > 新手帮助 > 脚本编写 > 正文
脚本编写

四位大数字颜色随机乱变

发布时间:2014-01-17 10:37



温馨提示:老好人辅助验证均为官方客服自主编写,禁止其他辅助盗版本验证
本验证均加有防伪代码,一经发现必追究其法律责任!

四位大数字颜色随机乱变:

 
发言("@服务")
等待(2000)
aa=NPC对话内容
s1 = string.gsub(aa,"<■/SCOLOR=16>","bb")
s1 = string.gsub(s1,"<■/SCOLOR=50>","bb")
s1 = string.gsub(s1,"<■/SCOLOR=66>","bb")
s1 = string.gsub(s1,"<■/SCOLOR=137>","bb")
s1 = string.gsub(s1,"<■/SCOLOR=73>","bb")
s2 = string.gsub(s1,"<■/SCOLOR=","AA")
s2 = string.gsub(s2,">","")
s2 = string.gsub(s2,"1","")
s2 = string.gsub(s2,"2","")
s2 = string.gsub(s2,"3","")
s2 = string.gsub(s2,"4","")
s2 = string.gsub(s2,"5","")
s2 = string.gsub(s2,"6","")
s2 = string.gsub(s2,"7","")
s2 = string.gsub(s2,"8","")
s2 = string.gsub(s2,"9","")
s2 = string.gsub(s2,"0","")
s2 = string.gsub(s2," ","")
--输出信息(s2)
desuzi={}
suzi={}
suzi[1]={}
suzi[2]={}
suzi[3]={}
suzi[4]={}
 
k1=11
k2=k1
for i=1,7 do
suzi[1][i]=string.sub(s2,k2,k2+9)
k2=k2+53
end
 
 
k2=k1
for i=1,7 do
suzi[2][i]=string.sub(s2,k2+14,k2+14+9)
k2=k2+53
end
 
 
 
 
k2=k1
for i=1,7 do
suzi[3][i]=string.sub(s2,k2+28,k2+28+9)
k2=k2+53
end
 
 
 
 
k2=k1
for i=1,7 do
suzi[4][i]=string.sub(s2,k2+42,k2+42+9)
k2=k2+53
end
 
mosuzi={}
mosuzi[0]={}
mosuzi[1]={}
mosuzi[2]={}
mosuzi[3]={}
mosuzi[4]={}
mosuzi[5]={}
mosuzi[5]={}
mosuzi[6]={}
mosuzi[7]={}
mosuzi[8]={}
mosuzi[9]={}
 
 
mosuzi[0][1]="AAAAAAAAAA"
mosuzi[0][2]="AAbbbbbbAA"
mosuzi[0][3]="AAbbbbbbAA"
mosuzi[0][4]="AAbbbbbbAA"
mosuzi[0][5]="AAbbbbbbAA"
mosuzi[0][6]="AAbbbbbbAA"
mosuzi[0][7]="AAAAAAAAAA"
 
 
mosuzi[1][1]="bbbbbbbbAA"
mosuzi[1][2]="bbbbbbbbAA"
mosuzi[1][3]="bbbbbbbbAA"
mosuzi[1][4]="bbbbbbbbAA"
mosuzi[1][5]="bbbbbbbbAA"
mosuzi[1][6]="bbbbbbbbAA"
mosuzi[1][7]="bbbbbbbbAA"
 
 
mosuzi[2][1]="AAAAAAAAAA"
mosuzi[2][2]="bbbbbbbbAA"
mosuzi[2][3]="bbbbbbbbAA"
mosuzi[2][4]="AAAAAAAAAA"
mosuzi[2][5]="AAbbbbbbbb"
mosuzi[2][6]="AAbbbbbbbb"
mosuzi[2][7]="AAAAAAAAAA"
 
 
mosuzi[3][1]="AAAAAAAAAA"
mosuzi[3][2]="bbbbbbbbAA"
mosuzi[3][3]="bbbbbbbbAA"
mosuzi[3][4]="AAAAAAAAAA"
mosuzi[3][5]="bbbbbbbbAA"
mosuzi[3][6]="bbbbbbbbAA"
mosuzi[3][7]="AAAAAAAAAA"
 
 
mosuzi[4][1]="AAbbbbbbAA"
mosuzi[4][2]="AAbbbbbbAA"
mosuzi[4][3]="AAbbbbbbAA"
mosuzi[4][4]="AAAAAAAAAA"
mosuzi[4][5]="bbbbbbbbAA"
mosuzi[4][6]="bbbbbbbbAA"
mosuzi[4][7]="bbbbbbbbAA"
 
 
mosuzi[5][1]="AAAAAAAAAA"
mosuzi[5][2]="AAbbbbbbbb"
mosuzi[5][3]="AAbbbbbbbb"
mosuzi[5][4]="AAAAAAAAAA"
mosuzi[5][5]="bbbbbbbbAA"
mosuzi[5][6]="bbbbbbbbAA"
mosuzi[5][7]="AAAAAAAAAA"
 
 
mosuzi[6][1]="AAAAAAAAAA"
mosuzi[6][2]="AAbbbbbbbb"
mosuzi[6][3]="AAbbbbbbbb"
mosuzi[6][4]="AAAAAAAAAA"
mosuzi[6][5]="AAbbbbbbAA"
mosuzi[6][6]="AAbbbbbbAA"
mosuzi[6][7]="AAAAAAAAAA"
 
 
mosuzi[7][1]="AAAAAAAAAA"
mosuzi[7][2]="bbbbbbbbAA"
mosuzi[7][3]="bbbbbbbbAA"
mosuzi[7][4]="bbbbbbbbAA"
mosuzi[7][5]="bbbbbbbbAA"
mosuzi[7][6]="bbbbbbbbAA"
mosuzi[7][7]="bbbbbbbbAA"
 
 
mosuzi[8][1]="AAAAAAAAAA"
mosuzi[8][2]="AAbbbbbbAA"
mosuzi[8][3]="AAbbbbbbAA"
mosuzi[8][4]="AAAAAAAAAA"
mosuzi[8][5]="AAbbbbbbAA"
mosuzi[8][6]="AAbbbbbbAA"
mosuzi[8][7]="AAAAAAAAAA"
 
 
mosuzi[9][1]="AAAAAAAAAA"
mosuzi[9][2]="AAbbbbbbAA"
mosuzi[9][3]="AAbbbbbbAA"
mosuzi[9][4]="AAAAAAAAAA"
mosuzi[9][5]="bbbbbbbbAA"
mosuzi[9][6]="bbbbbbbbAA"
mosuzi[9][7]="AAAAAAAAAA"
 
 
 
for i=1,4 do
  for i2=0,9 do
    --输出信息(suzi[i][i2])
    if suzi[i][1]== mosuzi[i2][1] then
    if suzi[i][2]== mosuzi[i2][2] then
    if suzi[i][3]== mosuzi[i2][3] then
    if suzi[i][4]== mosuzi[i2][4] then
    if suzi[i][5]== mosuzi[i2][5] then
    if suzi[i][6]== mosuzi[i2][6] then
    if suzi[i][7]== mosuzi[i2][7] then
    
    --输出信息("发现数字位数=")
    --输出信息(i)
    --输出信息("发现数字值=")
    --输出信息(i2)
    desuzi[i]=i2
    end
    end
    end
    end
    end
    end
    end
end
end   
passcode=table.concat({desuzi[1],desuzi[2],desuzi[3],desuzi[4]})
--输出信息(passcode)
合成命令("@@InPutInteger1",passcode)