Then most likely you need to do it like this:

Code
on *:TEXT:*:#:{
  if ($onenicks($nick)) {
    if (!$hget(onegreet,$nick)) {
      .hadd -mu120 onegreet $nick 1
      /msg $chan $nick $onegreet
    }
  }
}
alias -l onenicks {
  %og_nicks = Epic,apoio82,Nick1,Nick2,Nick3
  if ($istok(%og_nicks,$1,44)) return $1
}
alias -l onegreet {
  var %og_rand $rand(1,3)
  if (%og_rand == 1) var %og_mess = Hello!
  if (%og_rand == 2) var %og_mess = Hi my friend!
  if (%og_rand == 3) var %og_mess = Nice to see you here!
  return %og_mess
}

In the alias "onenicks" in the "%og_nicks" variable value, specify all the necessary nicknames, with which this script should interact, separated by commas. All other nicknames will be ignored.

If you want to remove the time limit for a new answer and stop writing nicknames to the hash table, then delete unnecessary lines so that part of the code looks like this:

Code
on *:TEXT:*:#:{
  if ($onenicks($nick)) {
    /msg $chan $nick $onegreet
  }
}




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