mIRC Home    About    Download    Register    News    Help

Print Thread
#17943 03/04/03 04:55 PM
Joined: Jan 2003
Posts: 22
M
Marco Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2003
Posts: 22
Im working on a text reply system and Im having some problems with it I first tried do it using
Code:
 On 1*:TEXT:*:*:
 {if ( $strip(%word.text1) isin $strip($1-))  && ( %word.text1a != $null ) { msg $chan %word.text1a }  


but lets say the word to reply was test the script wsa gonna reply if someone said testing too frown I wnat to make it more accurate so I tried this :
Code:
 On 1*:TEXT:*:*: {
  var %1- = $1- 
  while ($istok(%1-,%word.text1, 32)) %1- = $reptok(%1-,%word.text1,$color2(%word.text1a) , 1, 32)
  msg $chan %1- 
  halt 


now is accurate only replies when teh specific word is said but is working like an echo now everything a person says is beeing repeated by my script !
Any ideas how I can fix it please confused

#17944 03/04/03 05:55 PM
Joined: Jan 2003
Posts: 22
M
Marco Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Jan 2003
Posts: 22
I changed a bit teh code and now seems to be working smile thanks anyway laugh


Link Copied to Clipboard