If I understand your question correctly, then you want to make the script respond to certain words written by users on your channel.

You can try using such an interesting and small script construction:
Code
on *:TEXT:*:#channel:{
  var %words = hello,bye
  var %text $remove($strip($1-),$chr(96),$chr(39),$chr(94),$chr(42),$chr(34),$chr(63),$chr(33),$chr(64),$chr(35),$chr(36),$chr(37),$chr(38),$chr(58),$chr(59),$chr(126),$chr(45),$chr(61),$chr(43),$chr(95),$chr(40),$chr(41),$chr(91),$chr(93),$chr(123),$chr(125),$chr(124),$chr(92),$chr(47),$chr(44),$chr(46))
  var %i 1 | while (%i <= $numtok(%words,44)) { var %s $gettok(%words,%i,44) | if ($istok(%text,%s,32)) { %w = %w %s } | inc %i }
  if (%w) { .echo -a 00,14Words $+(,$nick,) used:04 %w | unset %w }
}

In the variable "%words = hello,bye" you must list, separated by commas, all the words that you want to catch in messages.

The script will collect all the search-flagged words that will be found in the message (separated by a space) and display them in the echo message.

Screenshot:
    [Linked Image from i.ibb.co]



🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples