mIRC Home    About    Download    Register    News    Help

Print Thread
#17997 04/04/03 06:05 AM
Joined: Apr 2003
Posts: 7
I
Icekenz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Apr 2003
Posts: 7
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

Last edited by Icekenz; 04/04/03 06:07 AM.
#17998 04/04/03 08:59 AM
Joined: Dec 2002
Posts: 143
A
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
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


Aubs.
cool

#17999 04/04/03 11:00 AM
Joined: Apr 2003
Posts: 7
I
Icekenz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Apr 2003
Posts: 7
hmh, it don't work

#18000 04/04/03 02:44 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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 $+ )
    }
  }
}


-KingTomato
#18001 04/04/03 03:36 PM
Joined: Dec 2002
Posts: 143
A
Vogon poet
Offline
Vogon poet
A
Joined: Dec 2002
Posts: 143
Achh, I knew what I said was close!!!!!!!!

Well done KT wink


Aubs.
cool

#18002 04/04/03 04:25 PM
Joined: Apr 2003
Posts: 7
I
Icekenz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Apr 2003
Posts: 7
thanks for the help.. but it wont work for the same network...
but other network works.

#18003 05/04/03 01:12 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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 $+ )
    }
  }
}


-KingTomato
#18004 05/04/03 05:53 AM
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
($nick != $me) isn't needed in a channel event as you can't trigger your own on text events.


Link Copied to Clipboard