mIRC Homepage
Posted By: Icekenz on text... - 04/04/03 06:05 AM
on *:TEXT:$($+(*,$me,*)):#: {
if ($active != $chan) {
echo $color(mode text) -a $timestamp * Your nick ( $+ $me $+ ) has been metioned by $nick on $chan
}
}

how do i make multiserver too? example * Your nick ( $+ $me $+ ) has been metioned by $nick on $chan ( $network ) sumthing like that..

how to i prevent from flooding ? after 3 echos. confused
Posted By: Aubs Re: on text... - 04/04/03 08:59 AM
look into $cid /cid and $active

I've not done much with multi-server's but you could try this:

Code:
on *:TEXT:$+(*,$me,*):#:{ 
  if (($active != $chan) && ($activecid !== $chan.cid)) { 
    echo $color(mode text) -a $timestamp * Your nick ( $+ $me $+ ) has been metioned by $nick on $chan ( $+ $network $+ )
    halt
  }
  if ($active != $chan) { 
    echo $color(mode text) -a $timestamp * Your nick ( $+ $me $+ ) has been metioned by $nick on $chan
    halt
  }
}


As I said, I've not tried it, so I don't know if it works!

Good luck! wink
Posted By: Icekenz Re: on text... - 04/04/03 11:00 AM
hmh, it don't work
Posted By: KingTomato Re: on text... - 04/04/03 02:44 PM
Code:
on 1:TEXT:*:#: {
  ; Look for our name, and make we didn't say it (like an away message, etc)
  if (($me isin $1-) && ($nick != $me)) {
    ; make sure we are not on that network and also make sure we haven't echoed in the last 5 minutes
    if (($cid != $activecid) && (%say. [ $+ [ $cid ] $+ ] . [ $+ [ $nick ] ] == $null)) {
      ; Set a variable to make sure we get one echo per 5 minutes
      /set -u600 %say. [ $+ [ $cid ] $+ ] . [ $+ [ $nick ] ] 1

      ; Echo on the channel
      /echo $color(info) -ati2 * Your name was just said by $+(,$nick,) on channel $+(,$chan,) (Server: $server $+ )
    }
  }
}
Posted By: Aubs Re: on text... - 04/04/03 03:36 PM
Achh, I knew what I said was close!!!!!!!!

Well done KT wink
Posted By: Icekenz Re: on text... - 04/04/03 04:25 PM
thanks for the help.. but it wont work for the same network...
but other network works.
Posted By: KingTomato Re: on text... - 05/04/03 01:12 AM
Well, just use your existing script.. or use this:

Code:
on 1:TEXT:*:#: {
  ; Look for our name, and make we didn't say it (like an away message, etc)
  if (($me isin $1-) && ($nick != $me)) {
    ; make sure we are not on that network and also make sure we haven't echoed in the last 5 minutes
    if ((($cid != $activecid) || ($chan != $active)) && (%say. [ $+ [ $cid ] $+ ] . [ $+ [ $nick ] ] == $null)) {
      ; Set a variable to make sure we get one echo per 5 minutes
      /set -u600 %say. [ $+ [ $cid ] $+ ] . [ $+ [ $nick ] ] 1
      ; Echo on the channel
      /echo $color(info) -ati2 * Your name was just said by $+(,$nick,) on channel $+(,$chan,) (Server: $server $+ )
    }
  }
}
Posted By: Nobodi Re: on text... - 05/04/03 05:53 AM
($nick != $me) isn't needed in a channel event as you can't trigger your own on text events.
© mIRC Discussion Forums