Originally Posted By: Eliasayala1
I have this script and do not know how could I do to only show the result "ada"
The script you have above uses a while loop that will scan all the relevant, related names when they're said and found. Therefore you get a bunch of names outputted from your text file.

What you're after doesn't really require a loop. The code below will suffice just fine:
Code:
on *:text:*:?:{
if ($read(names.txt,nw,$nick)) {
.msg $nick hi $v1
}
}
But here's the catch though, the matching name will result in the bot greeting him or her every time they say something in your query. I doubt this is what you've wanted. You should match specific common greeting pattern and have the bot act on it.