mIRC Home    About    Download    Register    News    Help

Print Thread
#62222 29/11/03 12:24 PM
Joined: Nov 2003
Posts: 2
K
Kronus Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
K
Joined: Nov 2003
Posts: 2
Hi there,

I'm quite new @ mIRC Scripting, so I would appreciate some help from the experts. By looking in some tutorials around the net (Including mirc.com :tongue:), I've managed to create a clone scan remote. Which actually works!! grin

The code is:
Code:
 on !@*:JOIN:#channel: {
  IF ($ialchan($wildsite,$chan,0) > 1) {
    echo -a ===================================================
    echo -a 0_ _ _ _ _ _ _ _ _1CLONE DETECTED0_ _ _ _ _ _ _ _ _
    echo -a ---------------------------------------------------
    echo -a   Nicks:
    var %tmp = 1
    var %totalclone = $ialchan($wildsite,$chan,0)
    : start
    IF (%tmp > $ialchan($wildsite,$chan,0)) { goto end }   
    echo -a  $ialchan($wildsite,$chan,%tmp).nick 
    inc %tmp
    goto start
    :end
    echo -a ---------------------------------------------------
    echo -a  Address: $wildsite
    echo -a  Total clones: %totalclone
    echo -a ---------------------------------------------------
    echo -a  [F10] - Warn user
    echo -a  [F11] - Kick/Ban clones
    echo -a =================================================== 
  }
}
 


and the result on the #channel window is sth like that:

===================================================
_ _ _ _ _ _ _ _ _CLONE DETECTED_ _ _ _ _ _ _ _ _
---------------------------------------------------
Nicks:
Nick1
Nick2
---------------------------------------------------
Address: *!*@a.cloning.host.mask.com
Total clones: 2
---------------------------------------------------
[F10] - Warn user
[F11] - Kick/Ban clones
===================================================

My problem is how to write the code for the warn and kick/ban events, pressing F10 or F11 accordingly... confused
Any ideas are much appreciated!

P.S.: I'm really sorry if there's a similar topic. I tried a couple of searches using any keywords I thought it could be useful but I couldn't find any related ones... If there is one, please excuse my post and mention it to me. Cheers!

Last edited by Kronus; 29/11/03 12:27 PM.
Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
ok.. First you haver to asign the F buttons..:

Code:
  
alias F10 { %f10 | unset %f10 } 
alias F11 { %f11 | unset %f11 } 


Then put this i n your code:

Code:
  
set %f10 /notice $wildsite <your msg here>
set %f11 /ban -k $chan $wildsite 2 <your msg here>

Joined: Nov 2003
Posts: 2
K
Kronus Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
K
Joined: Nov 2003
Posts: 2
It seems it's working!! laugh

Thank you very much!!

Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
np cool


Link Copied to Clipboard