mIRC Home    About    Download    Register    News    Help

Print Thread
#192475 02/01/08 01:54 AM
Joined: Mar 2007
Posts: 218
V
vexed2 Offline OP
Fjord artisan
OP Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
I'm currently making a theme, and i like to know when a clone has joined the channel, but i can't stand it showing all the info when one has joined, so i narrowed it down to show 1 line, and the number of clones that user has, ie

if he has a clone(s)
Join paranoia ! [sY5@39682EEA.D080BD2F.F95D1540.IP] [1]

no clones

Join paranoia ! [sY5@39682EEA.D080BD2F.F95D1540.IP]

I wanted to know if i could make the [1] or whatever number it would be into a hotlink so when i click it, it will show the info of the clones, i'm guessing this might use regex, and i don't really know a great deal, any help would be gladly appreciated.
here's my on join event

Code:
on !^*:join:#: { 
  if ($ialchan($wildsite,$chan,0) > 1) {
    var %i 1
    while $ialchan($wildsite,$chan,%i).nick {
      var %i = %i + 1,%m $v1
      if (%m != $nick) var %cl = $addtok(%cl,%m,44)
    }
    echo -i21 # join $jalign($nick) 10!14 [10 $+ $address $+ 14] 14[10 $+ $numtok(%cl,44) $+ 14]
    halt 
  }
  else {
    echo -i21 # join $jalign($nick) 10!14 [10 $+ $address $+ 14]
    halt
  }
}

vexed2 #192478 02/01/08 02:50 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try this:

Code:

on ^*:HOTLINK:*:*:{
  var %r = /join .* \! \[.*@.*] \[\d+\]/Si
  if (($regex($hotline,%r)) && ($regex($1,/\[\d+]/Si))) return
  halt
}

on *:HOTLINK:*:*:{
  echo -s -> Display clones for: $gettok($hotline,2,32)
}




It doesn't have extensive error checking, but it should do what you want.

-genius_at_work

Joined: Mar 2007
Posts: 218
V
vexed2 Offline OP
Fjord artisan
OP Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
Marvelous! Just what i needed, works a treat, nice one g_a_w smile

vexed2 #204559 24/09/08 03:25 PM
Joined: Mar 2007
Posts: 218
V
vexed2 Offline OP
Fjord artisan
OP Offline
Fjord artisan
V
Joined: Mar 2007
Posts: 218
I'll reignite this post to save another thread.
It's the same as before really, i haven't scripted in ages so i've lost it a bit crazy

I want the same thing, but my join event has changed

Code:
on !^*:Join:#: { 
  if ($ialchan($wildsite,$chan,0) > 1) {
    var %i 1
    while $ialchan($wildsite,$chan,%i).nick {
      var %i = %i + 1,%m $v1
      if (%m != $nick) var %cl = $addtok(%cl,%m,44)
    }
    echo -i21 # 09> $str($chr(160),4) 09joined $str($chr(160),3) 00 $+ $nick 14..14 [09 $+ $replace($address,.,14.09,@,14@09,-,14-09) $+ 14] 14[00 $+ $numtok(%cl,44) $+ 14]
    halt 
  }
  else {
    echo -i21 # 09> $str($chr(160),4) 09joined $str($chr(160),3) 00 $+ $nick 14..14 [09 $+ $replace($address,.,14.09,@,14@09,-,14-09) $+ 14] 
    halt
  }
]

I can't seem to get the mouse over now



Link Copied to Clipboard