Originally Posted by saner
the nickname and the trigger word will be posted!
can you do that in the post without a nickname and trigger word?

Ok. Try to use this script modification:
Code
on *:TEXT:*:#test:{
  if ($network == EpicNet.Ru) {
    %triggers = saner,Hello,How are you,Bye,some words
    if ($wfind($strip($1-))) { .scid -at1 copymsg $unsafe($rtrig($strip($1-))) }
  }
}
alias -l wfind { var %i 1 | while (%i <= $numtok(%triggers,44)) { if ($gettok(%triggers,%i,44) isin $1-) return 1 | inc %i } }
alias -l rtrig { var %i 1, %str $1- | while (%i <= $numtok(%triggers,44)) { var %str $remove(%str,$gettok(%triggers,%i,44)) | inc %i } | if ($len(%str)) return %str | else return $1- }
alias -l copymsg { msg #test2 $1- }


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