You are not very clear, but from what you said, there's two text files "text.txt" and "randomtimer.txt".
text.txt will contain some wildcard like *test*, and if an user says something that matches, send a message to them with a timer with a random line from the file randomtimer.txt?

If that's what you want, instead of text.txt, a better method is to use an hash table, which is similar but offers a good way of matching in your case:

Code:
on *:start:.hmake text | if ($exists(text)) .hload text text
on *:exit:hsave text text
on *:text:*:?:if ($hfind(text,$strip($1-),1,W).data) { .timer 1 60 msg $nick $!read(randomtimer.txt,nt) | msg $nick $1- our system will reply in 60 seconds 
}

now instead of adding line to text.txt with something like *text* you add it to the hash table with /hadd -m text N *text* where N is a number acting as a counter (start with 1), but it can litteraly be anything that doesn't contain a space, is different from $false and 0.
The file randomtimer.txt must be in your $mircdir.

Last edited by Wims; 02/04/12 05:28 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel