mIRC Home    About    Download    Register    News    Help

Print Thread
#161805 11/10/06 01:56 PM
Joined: Jun 2006
Posts: 79
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2006
Posts: 79
I just wanna request an input script that looks like this.

nick on #

abcd
samplenick
anothernick

if my msg to chan contain $nick on channel it will change like this

<frog> hi ~abcd[x] how are you?
<frog> frog slaps ~samplenick[x] with large thumb
<frog> -anothernick- this is notice for ~anothernick[x]

one more .. Is it possible to use in in query too? thanks
thanks ..

#161806 11/10/06 03:12 PM
Joined: Dec 2005
Posts: 58
S
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
like this
Code:
on *:input:#:{
  if ($readini(mirc.ini,text,commandchar) !isin $1) {
    var %i 1,%q
    while $gettok($1-,%i,32) {
      if ($v1 ison $chan) { 
        %q = %q $+(~,$v1,[x])
      }
      else { %q = %q $v1 }      
      inc %i
    }
    msg $chan %q  
    haltdef  
  }
  if ($istok(/notice /me /ame /amsg,$1,32)) {
    var %i 1,%q
    while $gettok($2-,%i,32) {
      if ($v1 ison $chan) { 
        %q = %q $+(~,$v1,[x])
      }
      else { %q = %q $v1 }      
      inc %i
    }
    $1 $chan %q  
    haltdef  
  }
}


i like that

Link Copied to Clipboard