![]() |
|
Clone Scanner - Printable Version +- LibraIRC.net Forums (https://librairc.net/forums) +-- Forum: Public Forums (https://librairc.net/forums/forum-47.html) +--- Forum: IRC Discussions (https://librairc.net/forums/forum-57.html) +---- Forum: mIRC (https://librairc.net/forums/forum-64.html) +---- Thread: Clone Scanner (/thread-65.html) |
Clone Scanner - Omar - 07-11-2011
Example Quote: How to load the addon on your mIRC script (choose either 1 or 2)
Code Code: alias clonescan {
var %d = linesep $iif($active == Status Window,-s,$active)
if ((!$chan) && (!$1)) {
%d | echo -ca ctcp * Error: specify a channel to scan for clones! | %d
return
}
if (($1) && ($1 !ischan)) {
%d | echo -ca ctcp * Error: you are not on the channel you specified | %d
return
}
set %do_clonescan $iif($1,$1,$chan)
set %ds_clonescan $iif($active == Status Window,status,$active)
who %do_clonescan
}
alias -l clonescan2 {
var %i = 1,%a
var %tc = 0,%th = 0
var %chan = $1
linesep %chan
clonescan.echo -c ctcp %ds_clonescan 1-----------------4 %chan Clones Scan1 ----------------
while (%i <= $nick(%chan,0)) {
if ($ialchan($address($nick(%chan,%i),2),%chan,0) > 1) {
if ($istok(%a,$remove($address($nick(%chan,%i),2),*!*@),32)) {
inc %i
continue
}
inc %th
%a = $addtok(%a,$remove($address($nick(%chan,%i),2),*!*@),32)
var %b = 1
clonescan.echo -c info %ds_clonescan 1- Clones from4 $remove($address($nick(%chan,%i),2),*!*@) $+
while (%b <= $ialchan($address($nick(%chan,%i),2),%chan,0)) {
clonescan.echo -c info %ds_clonescan 1-1 %b $+ . $ialchan($address($nick(%chan,%i),2),%chan,%b).nick ( $+ $ialchan($address($nick(%chan,%i),2),%chan,%b).user $+ )
inc %b
inc %tc
}
}
inc %i
}
if (%tc > 0) dec %tc
clonescan.echo -c ctcp %ds_clonescan 1-4 Finished scanning for clones, %tc clone $+ $iif(%tc != 1,s) from %th host $+ $iif(%th != 1,s) found
echo -a -------------------- 4End Of Scan1 --------------------
unset %ds_clonescan
}
alias -l clonescan.echo {
if ($3 == status) echo $1 $+ s $2 $4-
else echo $1-
}
raw 315:*: {
if (%do_clonescan == $2) {
unset %do_clonescan
clonescan2 $2
halt
}
}
raw 352:*: if (%do_clonescan) haltHow to use:
Re: Clone Scanner - Nex - 07-11-2011 nice one...but what about a " . " before "who %do_clonescan"? so the /who #chan cmd isn't posted in the active window, but the scanner works as well and posts its results... ... set %do_clonescan $iif($1,$1,$chan) set %ds_clonescan $iif($active == Status Window,status,$active) .who %do_clonescan ... Re: Clone Scanner - Omar - 07-11-2011 well the /who #chan working fine and come on the status without adding the " . " if that what u mean or you mean u dont want the clones come on the active window explain again what u meant sry ![]()
Re: Clone Scanner - Nex - 07-11-2011 sry for my english ![]() ...well if i use ".who %do_clonescan" , the /who #chan isnt shown in the status window .. or maybe in the active window ( NNscript posts it in the active window) in that case there is no big difference for u... but for NNscript-User like me, there's a big difference... if i want to scan #teens for example, the hole /who #teens echo is posted in my ACTIVE window (usually the channel u want to scan) before the important echo from ur little script appears .who #chan prevents the echo from /who #chan , so only the echo from that clonescanner appears Re: Clone Scanner - Omar - 07-11-2011 aha .. i got it.. you are right sometime its conflict with other script well thats why im using mIRC based to make my own addons ![]() for me its still appear on the statuswell thanks for sharing and if u would like any other addons u can ask for it here np and i will try to get it if i dont have them thanks <3 Re: Clone Scanner - Nex - 07-11-2011 nice that we got this problem solved ![]() ..yeah i have little experience in changing addons so they work for me...NNscript isnt that easy and there are many many conflicts with scripts u want to add by urself... and thx for ur offer ![]()
Re: Clone Scanner - Omar - 07-11-2011 yea i checked it nice work ![]() ... and yes you are welcome ![]()
Re: Clone Scanner - Miss_uhuh - 18-01-2012 mind, ![]() as always, you paste a lot of useful things here D: and i enjoy downloading all xD u are superrrrrrrrrrrrrrr
|