menu nicklist {
XDCC Big Leech
.Big leech sur $$1 :{
/dialog -m BIG_LEECH BIG_LEECH
set %xdcc.name $$1
set %xdcc.chan $chan
}
.Annuler le Big Leech:{
unset %xdcc.commencement
unset %xdcc.fin
unset %xdcc.name
unset %xdcc.chan
}
}
ON *:FILERCVD:*.*:{
if (%xdcc.commencement >= %xdcc.fin) {
/echo -s Tout les télécharger sont terminés !
unset %xdcc.commencement
unset %xdcc.fin
unset %xdcc.name
unset %xdcc.chan
halt
}
/echo -s Télécharger Terminé du pack : %xdcc.commencement sur %xdcc.name !
set %xdcc.commencement $calc(%xdcc.commencement + 1)
/msg %xdcc.name xdcc send %xdcc.commencement
}
ON *:GETFAIL:*.*:{
if (%xdcc.name ison %xdcc.chan) {
.timer 1 5 /msg %xdcc.name xdcc send %xdcc.commencement
}
}
DIALOG BIG_LEECH {
title "XDCC Big Leech"
option dbu
size -1 -1 100 100
text "Commencer à leech à partir du pack :",10, 5 5 100 8
edit "",1, 5 17 30 10
text "Arrêter de leech à partir du pack :",11, 5 35 100 8
edit "",2, 5 47 30 10
text "Auteur : Grim`Jaw",12, 1 73 100 8, center
button "Valider",5, 5 60 90 10
button "Fermer",15, 5 85 90 10, ok
}
ON *:DIALOG:BIG_LEECH:SCLICK:5:{
if ($did(1) !isnum || $did(2) !isnum) {
$input(Les champs doivent être rempli avec des numéros.,oh,Erreur!)
halt
}
set %xdcc.commencement $did(1)
set %xdcc.fin $did(2)
if ($input(Récapitulatif : $crlf - Commencer au pack : $did(1) $+ . $crlf - Arret au pack : $did(2) $crlf $crlf Demande sur %xdcc.name,oi,Terminé)) {
/msg %xdcc.name xdcc send %xdcc.commencement
dialog -x $dname
return $true
}
}
ON *:JOIN:%xdcc.chan:{
if ($me) {
if (%xdcc.commencement != %xdcc.fin && %xdcc.name ison %xdcc.chan) {
/msg %xdcc.name xdcc send %xdcc.commencement
halt
}
}
if (%xdcc.name) {
if (%xdcc.commencement != %xdcc.fin) {
/msg %xdcc.name xdcc send %xdcc.commencement
halt
}
}
}
|