X-Username finder 1.0 — File Browser
X-Usernamefinder1.0v1.0 / X-Usernamefinder1.0v1.0 / X-Username_finder_10 / x-username.mrc
x-username.mrc — 3.28 KB — Download this file
dialog userx {
title "X-Username finder 1.0 (by Slash)"
size 177 106 158 176
option dbu
icon $scriptdiruserx2.ico
box "" 1, 2 2 154 23
combo 2, 5 9 86 178, drop size
button "Scan users" 3, 94 9 59 11
box "" 4, 2 21 154 132
text "" 13, 8 28 138 8
list 5, 5 36 148 113, size
icon 6, 4 157 16 16,$scriptdiruserx.ico
link "http://www.mirscripts.org" 7, 35 167 70 8
button "&Close" 12, 122 157 33 15,ok
}
on 1:dialog:userx:*:*:{
if ($devent == init) {
if ($server) && (undernet.org !isin $server) { dialog -x userx userx | var %userx.msg = $input(prompt,o,"Erreur","This addon could only be used on the Undernet network") | halt }
mdx SetMircVersion $version | mdx MarkDialog $dname
mdx SetControlMDX $dname 5 listview showsel labeltip nosortheader headerdrag report flatsb rowselect > [ $scriptdirviews.mdx ]
did -i $dname 5 1 headerdims 115:1 165:2 | did -i $dname 5 1 headertext Nickname: $chr(9) Username with X:
var %userx.chan = 1 | while (%userx.chan <= $chan(0)) { did -a $dname 2 $chan(%userx.chan) | if ($chan(%userx.chan) == $active) { var %userx.chan.active = %userx.chan } | inc %userx.chan }
did -c $dname 2 %userx.chan.active | did $iif($did(userx,2).sel,-e,-b) userx 3
if ($did(userx,2).sel) { set %userx.state $true | who $did(userx,2).seltext }
}
if ($devent == sclick) && ($did == 2) { did $iif($did(userx,2).sel,-e,-b) userx 3 | .who $did(userx,2).seltext }
if ($devent == sclick) && ($did == 3) { userx.load }
if ($devent == sclick) && ($did == 7) { run http://www.mircscripts.org }
if ($devent == sclick) && ($did == 5) {
if ($gettok($did(userx,5,1),1,32) == rclick) {
dll $scriptdirpopups.dll New fileoptions 16 16
dll $scriptdirpopups.dll LoadImg fileoptions icon small $mircdirSystem\Images\Icones\whois.ico
dll $scriptdirpopups.dll AddItem fileoptions end + 1 1 &Whois... $cr whois $$gettok($$did(userx,5).seltext,6,32)
dll $scriptdirpopups.dll AddItem fileoptions end + 0 0 &Query... $cr query $$gettok($$did(userx,5).seltext,6,32)
var %result = $dll($scriptdirpopups.dll,Popup,fileoptions +R [ $mouse.dx ] [ $mouse.dy ] )
if ($gettok(%result,1,32) == OK) && ($gettok(%result,4,32)) { $gettok(%result,4-,32) }
}
}
}
alias userx.load {
did -r userx 5 | var %userx.nickload = 1
while (%userx.nickload <= $ialchan(*!*@*.users.undernet.org,$did(userx,2).seltext,0)) {
var %nickload.tmp = $ialchan(*!*@*.users.undernet.org,$did(userx,2).seltext,%userx.nickload)
did -a userx 5 0 0 $gettok(%nickload.tmp,1,33) $chr(9) $gettok($gettok(%nickload.tmp,2,64),1,46)
inc %userx.nickload
}
did -ra userx 13 $ialchan(*!*@*.users.undernet.org,$did(userx,2).seltext,0) usagers identifiés à X sur un total de $nick($did(userx,2).seltext,0) ( $+ $round($calc($ialchan(*!*@*.users.undernet.org,$did(userx,2).seltext,0)/$nick($did(userx,2).seltext,0)*100),2) $+ $chr(37) $+ )
}
alias -l mdx { return $dll($scriptdirmdx.dll,$1,$2-) }
alias userx { dialog -m userx userx }
raw 315:*:{ if (%userx.state) { userx.load | unset %userx.state | halt } }
raw 352:*:{ haltdef }
on 1:load:{ var %userx.msg = $input(X-Username finder 1.0 has been succesfully added to your mIRC,o) }
menu channel {
$iif(!$server || undernet.org !isin $server,$style(2)) X-Username finder: userx
}