Petite boîte de dialogue qui enregistres les statistiques de se que se passe sous votre mIRC
-Alors il est pas génial c la première dialogue que j'ai faite (bah oui tout le monde apprend a scripter un jour ou l'autre lol ;) )
Source / Exemple :
dialog Stats {
title "Statistiques"
size -1 -1 180 197
option dbu
box "Ops/deops", 4, 4 3 89 72
text "Tu a été op", 5, 7 13 28 8
edit "", 6, 36 13 24 10, read
text "fois.", 7, 60 14 10 8
text "Tu a op", 8, 7 23 21 8
edit "", 9, 29 22 24 10, read
text "personnes.", 10, 53 23 26 8
box "", 11, 4 33 88 4
text "Tu a été deop", 12, 7 39 34 8
edit "", 13, 42 38 24 10, read
text "fois.", 14, 66 39 10 8
text "Tu a deop", 15, 8 48 25 8
edit "", 16, 33 47 24 10, read
text "personnes.", 17, 57 48 26 8
box "", 18, 4 58 88 4
button "Effacer les stats", 19, 7 64 82 8
box "Voices/devoices", 20, 4 76 89 72
text "Tu a été voice", 21, 7 88 35 8
edit "", 22, 42 87 24 10, read
text "fois.", 23, 66 88 10 8
text "Tu a voice", 24, 7 97 26 8,
edit "", 25, 33 96 24 10, read
text "personnes.", 26, 57 97 26 8
box "", 27, 4 107 89 4
text "Tu a été devoice", 28, 8 113 41 8
edit "", 29, 49 112 24 10, read
text "fois.", 30, 73 113 10 8
text "Tu a devoice", 31, 8 122 32 8
edit "", 32, 40 121 24 10, read
text "personnes.", 33, 64 122 26 8
box "", 34, 4 131 88 4
button "Effacer les stats", 35, 7 137 82 8
box "Kicks", 36, 4 151 89 45
text "Tu a été kick", 37, 7 160 32 8
edit "", 38, 39 159 24 10, read
text "fois.", 39, 63 160 10 8
text "Tu a kick", 40, 7 169 23 8
edit "", 41, 30 168 24 10, read
text "personnes.", 42, 54 169 26 8
box "", 43, 4 178 89 4
button "Effacer les stats", 44, 7 184 82 8
button "Afficher les stats", 45, 112 180 44 12
radio "Sur le salon en cour", 46, 102 161 59 10, group
radio "Sur", 47, 102 151 20 10
edit "#", 48, 123 151 50 10
radio "Sur tout les salons en cour", 49, 102 142 74 10
radio "En /ame", 50, 101 82 50 10, group
radio "En /amsg", 51, 101 92 50 10
box "Afficher les stats...", 52, 95 76 82 120
menu "Fichier", 2
item "Fermer", 3, 2, ok
}
on *:DIALOG:stats:*:*:{
if ( $devent == init ) {
/did -a stats 6 $ps.tuaeteop.fois
/did -a stats 9 $ps.tuaop.fois
/did -a stats 13 $ps.tuaetedeop.fois
/did -a stats 16 $ps.tuadeop.fois
/did -a stats 22 $ps.tuaetevoice.fois
/did -a stats 25 $ps.tuavoice.fois
/did -a stats 29 $ps.tuaetedevoice.fois
/did -a stats 32 $ps.tuadevoice.fois
/did -a stats 38 $ps.tuaetekick.fois
/did -a stats 41 $ps.tuakick.fois
if ( $ps.selsalon == on ) { /did -c stats 47 | /did -b stats 50 | /did -b stats 51 | if ( $ps.amsg == on ) { /did -c stats 51 } | else { /did -c stats 50 } }
elseif ( $ps.toutsalon == on ) { /did -c stats 49 | if ( $ps.amsg == on ) { /did -c stats 51 } | else { /did -c stats 50 } }
else { /did -c stats 46 | /did -b stats 50 | /did -b stats 51 | if ( $ps.amsg == on ) { /did -c stats 51 } | else { /did -c stats 50 } }
}
if ( $devent == sclick ) {
if ( $did == 19 ) {
/did -ra stats 6 0
/did -ra stats 9 0
/did -ra stats 13 0
/did -ra stats 16 0
alias ps.tuaeteop.fois return 0
alias ps.tuaop.fois return 0
alias ps.tuaetedeop.fois return 0
alias ps.tuadeop.fois return 0
}
if ( $did == 35 ) {
/did -ra stats 22 0
/did -ra stats 25 0
/did -ra stats 29 0
/did -ra stats 32 0
alias ps.tuaetevoice.fois return 0
alias ps.tuavoice.fois return 0
alias ps.tuaetedevoice.fois return 0
alias ps.tuadevoice.fois return 0
}
if ( $did == 44 ) {
/did -ra stats 38 0
/did -ra stats 41 0
alias ps.tuaetekick.fois return 0
alias ps.tuakick.fois return 0
}
if ( $did == 49 ) {
alias ps.toutsalon return on
alias ps.selsalon return off
alias ps.salonactif return off
/did -e stats 50
/did -e stats 51
}
if ( $did == 47 ) {
alias ps.toutsalon return off
alias ps.selsalon return on
alias ps.salonactif return off
/did -b stats 50
/did -b stats 51
}
if ( $did == 46 ) {
alias ps.toutsalon return off
alias ps.selsalon return off
alias ps.salonactif return on
/did -b stats 50
/did -b stats 51
}
if ( $did == 51 ) alias ps.amsg return on
if ( $did == 50 ) alias ps.amsg return off
if ( $did == 45 ) {
if ( $ps.toutsalon == on ) && ( $ps.amsg == on ) {
/amsg J'ai été 4(+@)op $ps.tuaeteop.fois $+ fois, j'ai été 4(-@)deop $ps.tuaetedeop.fois $+ fois, j'ai 7(+@)op $ps.tuaop.fois $+ personnes, j'ai 7(-@)deop $ps.tuadeop.fois $+ personnes, 9j'ai été (+v)voice $ps.tuaetevoice.fois $+ fois, j'ai été 9(-v)devoice $ps.tuaetedevoice.fois $+ fois, j'ai 9(+v)voice $ps.tuavoice.fois $+ personnes, j'ai 9(-v)devoice $ps.tuadevoice.fois $+ personnes, j'ai 5été kicker $ps.tuaetekick.fois $+ fois , j'ai 5kicker $ps.tuakick.fois $+ personnes. }
elseif ( $ps.toutsalon == on ) && ( $ps.amsg != on ) {
/ame a été 4(+@)op $ps.tuaeteop.fois $+ fois, a été 4(-@)deop $ps.tuaetedeop.fois $+ fois, j'ai 7(+@)op $ps.tuaop.fois $+ personnes, a 7(-@)deop $ps.tuadeop.fois $+ personnes, a été 9(+v)voice $ps.tuaetevoice.fois $+ fois, a été 9(-v)devoice $ps.tuaetedevoice.fois $+ fois, a 9(+v)voice $ps.tuavoice.fois $+ personnes, a 9(-v)devoice $ps.tuadevoice.fois $+ personnes, a 5été kicker $ps.tuaetekick.fois $+ fois , a 5kicker $ps.tuakick.fois $+ personnes. }
elseif ( $ps.selsalon == on ) { /msg $did(stats,48) J'ai été 4(+@)op $ps.tuaeteop.fois $+ fois, j'ai été 4(-@)deop $ps.tuaetedeop.fois $+ fois, j'ai 7(+@)op $ps.tuaop.fois $+ personnes, j'ai 7(-@)deop $ps.tuadeop.fois $+ personnes, 9j'ai été (+v)voice $ps.tuaetevoice.fois $+ fois, j'ai été 9(-v)devoice $ps.tuaetedevoice.fois $+ fois, j'ai 9(+v)voice $ps.tuavoice.fois $+ personnes, j'ai 9(-v)devoice $ps.tuadevoice.fois $+ personnes, j'ai 5été kicker $ps.tuaetekick.fois $+ fois , j'ai 5kicker $ps.tuakick.fois $+ personnes. }
else { /msg $active J'ai été 4(+@)op $ps.tuaeteop.fois $+ fois, j'ai été 4(-@)deop $ps.tuaetedeop.fois $+ fois, j'ai 7(+@)op $ps.tuaop.fois $+ personnes, j'ai 7(-@)deop $ps.tuadeop.fois $+ personnes, 9j'ai été (+v)voice $ps.tuaetevoice.fois $+ fois, j'ai été 9(-v)devoice $ps.tuaetedevoice.fois $+ fois, j'ai 9(+v)voice $ps.tuavoice.fois $+ personnes, j'ai 9(-v)devoice $ps.tuadevoice.fois $+ personnes, j'ai 5été kicker $ps.tuaetekick.fois $+ fois , j'ai 5kicker $ps.tuakick.fois $+ personnes. }
}
}
}
on *:op:*:{
if ( $opnick == $me ) { alias ps.tuaeteop.fois return $calc($ps.tuaeteop.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 6 $calc($did(stats,6) + 1) } }
if ( $nick == $me ) { alias ps.tuaop.fois return $calc($ps.tuaop.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 9 $calc($did(stats,9) + 1) } }
}
on *:deop:*:{
if ( $opnick == $me ) { alias ps.tuaetedeop.fois return $calc($ps.tuaeteop.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 13 $calc($did(stats,13) + 1) } }
if ( $nick == $me ) { alias ps.tuadeop.fois return $calc($ps.tuadeop.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 16 $calc($did(stats,16) + 1) } }
}
on *:voice:*:{
if ( $vnick == $me ) { alias ps.tuaetevoice.fois return $calc($ps.tuaetevoice.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 22 $calc($did(stats,22) + 1) } }
if ( $nick == $me ) { alias ps.tuavoice.fois return $calc($ps.tuavoice.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 25 $calc($did(stats,25) + 1) } }
}
on *:devoice:*:{
if ( $vnick == $me ) { alias ps.tuaetedevoice.fois return $calc($ps.tuaetedevoice.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 29 $calc($did(stats,29) + 1) } }
if ( $nick == $me ) { alias ps.tuadevoice.fois return $calc($ps.tuadevoice.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 32 $calc($did(stats,32) + 1) } }
}
on *:kick:*:{
if ( $knick == $me ) { alias ps.tuaetekick.fois return $calc($ps.tuaetekick.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 38 $calc($did(stats,38) + 1) } }
if ( $nick == $me ) { alias ps.tuakick.fois return $calc($ps.tuakick.fois + 1) | if ( $dialog(stats).title != $null ) { /did -ra stats 41 $calc($did(stats,41) + 1) } }
}
Conclusion :
En faite pour démarer la dialogue, il suffit de tapper /dialog -m stats stats .
Sinon vous pouvez faire une alias pour que sa sois plus rapide genre:
(Alias)
/Stats /dialog -m stats stats
Ou alors dans le menu déroulant:
(Remote)
Menu menubar { Statistiques mIRC:/dialog -m stats stats }
Si vous trouvez un bug> clad0@wanadoo.fr <
Sinon j'aimerais remercier JonJon de m'avoir appris a faie les dialogues
Bonne utilisation :)
Vous n'êtes pas encore membre ?
inscrivez-vous, c'est gratuit et ça prend moins d'une minute !
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.