mIRC Home    About    Download    Register    News    Help

Print Thread
What is the join raw number? Can't fint it. #194799 11/02/08 10:33 PM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
I can't find the raw for join.

I'm going to make:
* nick (identd@host) has joined #channel and is an clone of clonenick

If there is no clone:
* nick (identd@host) has joined #channel

but whats the raw? I tryed many, but no.

Re: What is the join raw number? Can't fint it. [Re: Deep3D] #194800 11/02/08 10:37 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025

There is no raw for it.

/help on join

Re: What is the join raw number? Can't fint it. [Re: RoCk] #194801 11/02/08 10:42 PM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
Thanks for fast reply.

But how to replace the nick han joined with the new nick has joined and is a clone?

like

on join
if nick is clone { Replace join message }
else nothing

Re: What is the join raw number? Can't fint it. [Re: Deep3D] #194802 11/02/08 10:47 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025
Use the ^ prefix with the haltdef command.

on ^!*:JOIN:#: {
if nick is clone {
haltdef
Replace join message
}
}

But do your own routine for clone checking as that one isn't real. Also, the ! prefix prevents it from being triggered when you join.

You could do...

Code:

on ^!*:JOIN:#: {
  if ($ialchan($mask($fulladdress,2),#,2)) {
    haltdef
    Replace join message
  }
}



Also you could replace $mask($fulladdress,2) with $wildsite

Last edited by RoCk; 11/02/08 10:56 PM.
Re: What is the join raw number? Can't fint it. [Re: RoCk] #194803 11/02/08 11:00 PM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
I had this:

Code:
on ^!*:JOIN:#: {
  if ($address($me,2) == $address($nick,2)) {
    var %clone = $address($nick,2) | var %m = $nick(#,0) | var %i = 1 | haltdef
    while (%i <= %m) {
      if (%clone == $address($nick(#,%i) ,2)) {
        if ($nick != $nick(#, %i)) { echo 3 -lt $chan * $nick ( $+ $remove($address($nick,1),*!*) $+ ) has joined # and is an clone of $nick(#,%i) ( $+ $remove($address($nick(#,%i),1),*!*) $+ ) }
      }
      inc %i
    }
  }
}


but your is probably better. smile

Re: What is the join raw number? Can't fint it. [Re: Deep3D] #194804 11/02/08 11:04 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025

You're wanting to catch your own clones ?

Re: What is the join raw number? Can't fint it. [Re: RoCk] #194808 11/02/08 11:45 PM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
I don't want to catch my own clones. smile

Code:
on ^!*:JOIN:#: {
  var %clone = $address($nick,2) | var %m = $nick(#,0) | var %i = 1
  while (%i <= %m) {
    if (%clone == $address($nick(#,%i),2)) {
      if ($nick != $nick(#, %i)) { echo -l $chan $nick(#,%i) ( $+ $remove($address($nick(#,%i),1),*!*) $+ ) is a clone of $nick }
    }
    inc %i
  }
}


This will reply:
Paven (balle@85.19.*) is a clone of Paven1
Paven2 (balle@85.19.*) is a clone of Paven1
(Feb 12 00:37:50) * Paven1 (balle@85.19.*) has joined #channel

How to get the last line (join) to be first?
Eg:
(Feb 12 00:37:50) * Paven1 (balle@85.19.*) has joined #channel
Paven (balle@85.19.*) is a clone of Paven1
Paven2 (balle@85.19.*) is a clone of Paven1


One last thing, how to get the clones in one line?
And then the replys will show:
(Feb 12 00:37:50) * Paven1 (balle@85.19.*) has joined #channel
Paven and Paven2 is clones of Paven1

If there is more than 3 clones:
Paven, Paven2 and Paven3 is clones of Paven1

And if just one clone:
Paven is a clone of Paven1

Re: What is the join raw number? Can't fint it. [Re: Deep3D] #194873 13/02/08 09:02 AM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
I'm going for this code, but how to get the <nick> has joined to come before the echo without using timer?

(Feb 13 09:57:38) * test (test@192.168.1.1) has joined #test
(Feb 13 09:57:39) * test (test@192.168.1.1) is clone of test2 (test2@192.168.1.1)

Code:
on ^!*:JOIN:#:{
  if %join.clone.scan == on {
    var %clone = $address($nick,2) | var %m = $nick(#,0) | var %i = 1
    while (%i <= %m) {
      if (%clone == $address($nick(#,%i),2)) && ($nick != $nick(#, %i)) { .timer 1 1 echo -lt $chan * $nick ( $+ $remove($address($nick,5),$nick,!) $+ ) is clone of $nick(#,%i) ( $+ $remove($address($nick(#,%i),5),$nick(#,%i),!) $+ ) }
      inc %i
    }
  }
}

Last edited by Deep3D; 13/02/08 09:50 AM.
Re: What is the join raw number? Can't fint it. [Re: Deep3D] #194995 14/02/08 09:25 PM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
bump.. the question above. please help out. =)

Re: What is the join raw number? Can't fint it. [Re: Deep3D] #194997 14/02/08 10:07 PM
Joined: Apr 2004
Posts: 759
M
Mpdreamz Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
Im not sure i understand you correctly the nick has joined message should already come before the clone scan message smirk


$maybe
Re: What is the join raw number? Can't fint it. [Re: Deep3D] #194998 14/02/08 10:19 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Either use 0-delay timer or remove ^ from the event prefixes - it's not needed unless you intend to hide the default message.

Re: What is the join raw number? Can't fint it. [Re: Mpdreamz] #195010 15/02/08 05:32 PM
Joined: May 2003
Posts: 41
D
Damsulegna Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: May 2003
Posts: 41
could u not have both on same line???

Code:
on ^!*:JOIN:#:{
  if %join.clone.scan == on {
    var %x_match = [[ $+ $ialchan($address($nick,2),#,0) Clone $+ $iif($ialchan($address($nick,2),#,0) > 1,s) $+ ]]
    var %x = $ialchan($address($nick,2),#,0) , %nicks
    if (%x > 1) { 
      while (%x) { %nicks = %nicks $ialchan($address($nick,2),#,%x).nick | dec %x }
    }
    %xnicks = [[ $+ %nicks $+ ]]
    echo $colour(join) $target *** [Join] $nick has joined # %x_match $iif( $ialchan($address($nick,2),#,0) > 1 , %xnicks )
    haltdef
  }
}


Code:
*** [Join] nick has joined #Scripting [3 Clones] [nick1 nick2 nick3]



If At First You Don't Succeed, Ask Someone For Help......
Re: What is the join raw number? Can't fint it. [Re: Damsulegna] #195013 15/02/08 06:48 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Are you asking if you can? or are you showing us that you can? The answer is yes, as you showed.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: What is the join raw number? Can't fint it. [Re: Damsulegna] #195016 15/02/08 07:16 PM
Joined: May 2003
Posts: 41
D
Damsulegna Offline
Ameglian cow
Offline
Ameglian cow
D
Joined: May 2003
Posts: 41
Originally Posted By: Damsulegna
could u not have both on same line???


It was a direct question to Deep3D asking if all details on one line was more suited.

REF:
Originally Posted By: Deep3D

(Feb 13 09:57:38) * test (test@192.168.1.1) has joined #test
(Feb 13 09:57:39) * test (test@192.168.1.1) is clone of test2 (test2@192.168.1.1)


If At First You Don't Succeed, Ask Someone For Help......
Re: What is the join raw number? Can't fint it. [Re: Damsulegna] #195165 19/02/08 12:48 AM
Joined: Dec 2002
Posts: 481
Deep3D Offline OP
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
Joined: Dec 2002
Posts: 481
I decide to use your script Damsulegna! It works great, thank you. smile

I changed the code alittle

Code:
on ^!*:join:#:{
  if %join.clone.scan == on {
    var %x_match = ( $+ $ialchan($address($nick,2),#,0) clone $+ $iif($ialchan($address($nick,2),#,0) > 1,s) $+ :
    var %x = $ialchan($address($nick,2),#,0) , %nicks
    if (%x > 1) { 
      while (%x) { %nicks = %nicks $ialchan($address($nick,2),#,%x).nick | dec %x }
    }
    %xnicks = %nicks $+ )
    echo $colour(join) -lt $target * $nick ( $+ $remove($address($nick,5),$nick,!) $+ ) has joined # %x_match $iif( $ialchan($address($nick,2),#,0) > 1 , %xnicks )
    haltdef
  }
}


If nick joins and has no clones, it displays:
* test (test@192.168.1.100) has joined #test (1 clone:

How to prevent it from using the echo when there is no clones?

Last edited by Deep3D; 19/02/08 01:29 AM.
Re: What is the join raw number? Can't fint it. [Re: Deep3D] #195167 19/02/08 02:09 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just use the $iif to check the number of clones that you already have, but stick the %x_match in there...

Code:
echo $colour(join) -lt $target * $nick ( $+ $remove($address($nick,5),$nick,!) $+ ) has joined # $iif( $ialchan($address($nick,2),#,0) > 1 , %x_match %xnicks )


Or, if I read your question wrong and you don't want the join echoed at all, just stick it all into the $iif.


Invision Support
#Invision on irc.irchighway.net