Im working on a text reply system and Im having some problems with it I first tried do it using
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 frown](/images/graemlins/mirc/frown.gif)
I wnat to make it more accurate so I tried this :
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