Hey,
I tried to do a similar thing, and wrote this.. works excellent for me.
the Q.txt contains one question on each line and A.txt the corresponding answer on the same line number..
..Automaticly finds total number of lines, etc.
on *:text:*:#:{
var %i = 1
while (%i <= $lines(Q.txt)) {
if ($read(Q.txt,%i) == $1-30) {
/msg $chan $read(A.txt,%i)
halt
}
inc %i
}
}
Last edited by torhaala; 19/10/04 11:01 PM.