mIRC Home    About    Download    Register    News    Help

Print Thread
#60949 18/11/03 04:17 PM
Joined: Sep 2003
Posts: 98
N
neznani Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
i would like a script that would chech every letter of every word inputed and if some letter is: "a" and if the letter that follows is "." it would return something smile how can i do this ?


www.stwar.us.to
IRCnet - #stwar
#60950 18/11/03 04:39 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Type: //if (a. isin a.b.c) { echo -a a. is inside a.b.c }

See the help file (/help /if) for more operators.

#60951 18/11/03 05:29 PM
Joined: Sep 2003
Posts: 98
N
neznani Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
yeah i know isin command but it cant help me because i have to check every single letter and the letter after that letter smile


www.stwar.us.to
IRCnet - #stwar
#60952 18/11/03 05:56 PM
Joined: Sep 2003
Posts: 98
N
neznani Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
ok i have solved the problem on other way :P its an encoding and decoding script
here is code if anyone wants it:
encoder:
Code:
 
on *:input:#: {
  var %beseda $1-
  if ( %leet == on ) { 
    %beseda = -leet(encoded)- $replace(%beseda,a,4,b,8,c,F,d,0.,e,3,f,C.,g,6,h,4.,i,1,j,9,k,B,l,1.,m,3.,n,Q,o,0,p,7.,r,2.,s,5,t,7,u,0:,v,3:,w,3;,z,2,y,9.)
  }
}

and you have to put: %leet on in variables

decoder:
Code:
 
on ^*:text:*:#: {
  var %beseda $1-
  if ( $1 == -leet(encoded)- ) { 
    %beseda = $2-
    %beseda = -leet(decoded)- $replace(%beseda, F,c,C.,f,B,k,0:,u,3:,v,3;,w,9.,y,0.,d,7.,p,2.,r,1.,l,3.,m,4.,h,4,a,8,b,3,e,6,g,1,i,9,j,Q,n,0,o,5,s,7,t,2,z)
  }
}
 




www.stwar.us.to
IRCnet - #stwar

Link Copied to Clipboard