DR-Clone

By DarthReven on Jan 25, 2005

/clone (if $ACTIVE is a channel)
/clone #channel (#channel being a channel you are in)

ALIAS CLONE {
  IF ($0) {
    IF ($V1 == 2) {
      IF ($IALCHAN($+(*!*@,$1),$2,0) > 1) {
        VAR %CLONE_NUMBER $V1, %CLONE_OUT
        WHILE (%CLONE_NUMBER) {
          %CLONE_OUT = $ADDTOK(%CLONE_OUT,$IALCHAN($+(*!*@,$1),$2,$V1).NICK,44)
          DEC %CLONE_NUMBER
        }
        RETURN $+($CHR(40),*!*@,$1,$CHR(41)) %CLONE_OUT
      }
    }
    ELSE {
      IF ($1 ISCHAN) {
        HMAKE CLONE_TMP 1000
        VAR %CLONE_NICKS $NICK($1,0), %CLONE_TOTAL
        WHILE (%CLONE_NICKS) {
          IF ($IALCHAN($ADDRESS($NICK($1,%CLONE_NICKS),2),$1,0) > 1) { HADD CLONE_TMP $ADDRESS($NICK($1,%CLONE_NICKS),2) $ADDTOK($NICK($1,%CLONE_NICKS),$HGET(CLONE_TMP,$ADDRESS($NICK($1,%CLONE_NICKS),2)),44) }
          DEC %CLONE_NICKS
        }
        HSAVE -i CLONE_TMP CLONE_TMP.INI
        HFREE CLONE_TMP
        WINDOW -ahH @CLONE
        WRITE -dl1 CLONE_TMP.INI
        FILTER -cteufw 2 61 CLONE_TMP.INI @CLONE
        .REMOVE CLONE_TMP.INI
        VAR %PARSE.DATA 1
        WHILE ($LINE(@CLONE,%PARSE.DATA)) { TOKENIZE 61 $V1 | ECHO $ACTIVE CLONE: $+($CHR(40),$1,$CHR(41)) $2- | INC %PARSE.DATA }
        .CLOSE -@ @CLONE
      }
    }
  }
  ELSE {
    IF ($ACTIVE ISCHAN) {
      HMAKE CLONE_TMP 1000
      VAR %CLONE_NICKS $NICK($CHAN,0), %CLONE_TOTAL
      WHILE (%CLONE_NICKS) {
        IF ($IALCHAN($ADDRESS($NICK($ACTIVE,%CLONE_NICKS),2),$ACTIVE,0) > 1) { HADD CLONE_TMP $ADDRESS($NICK($ACTIVE,%CLONE_NICKS),2) $ADDTOK($NICK($ACTIVE,%CLONE_NICKS),$HGET(CLONE_TMP,$ADDRESS($NICK($ACTIVE,%CLONE_NICKS),2)),44) }
        DEC %CLONE_NICKS
      }
      HSAVE -i CLONE_TMP CLONE_TMP.INI
      HFREE CLONE_TMP
      WINDOW -ahH @CLONE
      WRITE -dl1 CLONE_TMP.INI
      FILTER -cteufw 2 61 CLONE_TMP.INI @CLONE
      .REMOVE CLONE_TMP.INI
      VAR %PARSE.DATA 1
      WHILE ($LINE(@CLONE,%PARSE.DATA)) { TOKENIZE 61 $V1 | ECHO $ACTIVE CLONE: $+($CHR(40),$1,$CHR(41)) $2- | INC %PARSE.DATA }
      .CLOSE -@ @CLONE
    }
  }
}
ON *:JOIN:#: {
  IF ($NICK != $ME) { IF ($CLONE($SITE,$CHAN)) { ECHO 4 $CHAN $V1 } }
  ELSE { .WHO $CHAN | .ENABLE #CLONE.CHK | SET %CLONE_CHAN $CHAN }
}
#CLONE.CHK OFF
raw 352:*: { HALT }
raw 315:*: { CLONE %CLONE_CHAN | UNSET %CLONE_CHAN | .DISABLE #CLONE.CHK | HALT }
#CLONE.CHK END 

Comments

Sign in to comment.
Eugenio   -  Mar 15, 2008

you are meant to paste it in the remotes tab then save as and give it a name you want then go to load from the file option and lod it up again just in case! you dont want to put anything you got from here in the aliases = this is directed to virak he sed:

Now i copy you to code and past in to mIRC --> Script Editor --> aliases tap. but it\'s does not show anything to me..
What should i do after i copy and past code in aliases tap?

 Respond  
virak   -  Mar 15, 2008

Now i copy you to code and past in to mIRC --> Script Editor --> aliases tap. but it\'s does not show anything to me..
What should i do after i copy and past code in aliases tap?

 Respond  
Caligula   -  Nov 21, 2007

This is the best Clone Scanner and the unic working. Thanks you much DarthReven, you are nice :)

 Respond  
Joshuaxiong1   -  Oct 07, 2007

Love it!!!

 Respond  
CtrlAltElite   -  Jun 28, 2007

Wat about BNC\'s? They have the same address after the @. Will they show up too?

 Respond  
DarthReven   -  Apr 03, 2007

The caps isn\'t a method to \'rip\' my scripts sides all codes posted on Hawkee.com are open source. The only way a script is truly ripped is if the code is copied and the \'original creator\' is not sited. At any rate I put everything in caps cause I like it that way not to prevent people from \"ripping\" my scripts

 Respond  
ZabuzaMomochi   -  Apr 03, 2007

are we teaching people how to rip darthrevens snippets..?

 Respond  
DarthReven   -  Apr 02, 2007

Only problem with that alias Solo you need to provide the file extension for $script([file]) to work. So a better way do it if you were going to do this is:

alias lowercase {
  if ($script($1)) {
    echo $color(info) -a *** Converting $1 now...
    %file.tmp = $+($gettok($1,1,46),-lc.,$gettok($1,2,46))
    if ($isfile(%file.tmp)) { write -c $v1 }
    filter -fk $1 convert
    unload -rs $1
    .remove $1
    filter -ff %file.tmp $1
    .remove %file.tmp
    load -rs $1
    echo $color(info) -a [End - Conversion]
    unset %file.*
  }
  else { beep 2 | echo $color(notify) -a *** Error - $1 was not valid }
}
alias -l convert { write %file.tmp $upper($1-) }
 Respond  
Solo   -  Mar 19, 2007

well a simple script could change it to lowercase. Something maybe like

alias lowercase {
if ($script($1)) {
echo -a Coverting file $1 from uppercase to lowercase
set -u %file.tmp $+($1,LowerCase,.txt)
write -c %file.tmp
filter -fk $1 convert
echo -a Coverted file made to text file %file.tmp and placed in mIRC directory
}
else echo -a Error: file $1 not found
}
alias -l convert { write %file.tmp $lower($1) }

usage /lowercase file ie lowercase drclone

But i highly doubt that the reason is to stop rippers

 Respond  
Solo   -  Mar 19, 2007

WHY IS It ALL IN CAPSLOCK.

 Respond  
DarthReven   -  Mar 11, 2007

Overhaul...

 Respond  
splatted   -  Feb 16, 2005

Other than that, script looks good

 Respond  
splatted   -  Feb 16, 2005

For some reason it freezes mirc freezes when I join a channel, like an endless loop which only stops when I hit control-break. these are the vars I\'m left with: %clone.s -397815, %clone.t 0, %clone.c. Also, the break is at line 34 and line 36 , both which have the goto scan.

 Respond  
DarthReven   -  Jan 27, 2005

Updated

 Respond  
DarthReven   -  Jan 27, 2005

there is a trigger and it runs when someone joins a room but if your $ial is off you you don\'t have all the $ials for a certain channel it won\'t give you a read out

 Respond  
ModeMan   -  Jan 27, 2005

I don\'t know how to make it work does it run by it self? or is there a trigger? I tried it on my clone did\'nt show anything

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.