Accueil > > > STATISTIQUE D'UN CHANNEL EN DIALOG
STATISTIQUE D'UN CHANNEL EN DIALOG
Information sur la source
Description
C'est un dialog qui vous montre le nombre d'op (le %) le nombre de voice et de regulier sur un channel , possibiliter de le dire sur le channel , dans les remotes
Source
- dialog stats {
- title "Statistiques"
- size -1 -1 187 143
- option dbu
- list 1, 68 3 116 138, size
- button "Actualiser", 2, 9 58 50 10, flat
- button "Dire sur le chan", 3, 9 68 50 11, flat
- button "Ok", 4, 9 79 50 10, cancel, flat
- text "Cronic Script : Statistiques D'un Channel", 5, 4 5 50 23
- box "Action", 6, 3 36 62 72
- }
- on *:dialog:stats:init:*: {
- /set %statschan $active
- /did -a stats 1 Statistique de ---=-> Canal $active
- /did -a stats 1
- /did -a stats 1 Nombre de personne: $nick($active,0)
- /did -a stats 1
- /did -a stats 1 Nombre d'Operateur: $nick($active,0,o)
- /did -a stats 1 - Pourcentage d'opereteur: ( $+ $calc( $nick($active,0,o) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1 Nombre de Voice : $nick($active,0,v)
- /did -a stats 1 - Pourcentage De Voice( $+ $calc( $nick($active,0,v) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1 Nombre de Regulier : $nick($active,0,r)
- /did -a stats 1 - Pourcentage de Regulier ( $+ $calc( $nick($active,0,r) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1
- /did -a stats 1 Stats des Operateurs :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,o) == 0 ) { goto voice }
- else {
- /set %totalostats $nick($active,0,o)
- /set %ostats 0
- :odebut
- inc %ostats
- /did -a stats 1 - $nick($active,%ostats,o) Est Operateur sur $active
- if ( %ostats == %totalostats ) { goto voice }
- else { goto odebut }
- }
- :voice
- /did -a stats 1
- /did -a stats 1 Stats des Voices :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,v) == 0 ) { goto regul }
- else {
- /set %totalvstats $nick($active,0,v)
- /set %vstats 0
- :vdebut
- inc %vstats
- /did -a stats 1 - $nick($active,%vstats,v) Est Voice sur $active
- if ( %vstats == %totalvstats ) { goto regul }
- else { goto vdebut }
- }
- :regul
- /did -a stats 1
- /did -a stats 1 Stats de Reguliers :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,r) == 0 ) { goto fin }
- else {
- /set %totalrstats $nick($active,0,r)
- /set %rstats 0
- :rdebut
- inc %rstats
- /did -a stats 1 - $nick($active,%rstats,r) Est Regulier sur $active
- if ( %rstats == %totalrstats ) { goto fin }
- else { goto rdebut }
- }
- :fin
- halt
- }
- on *:dialog:stats:sclick:2: {
- /did -a stats 1 Statistique de ---=-> Canal $active
- /did -a stats 1
- /did -a stats 1 Nombre de personne: $nick($active,0)
- /did -a stats 1
- /did -a stats 1 Nombre d'Operateur: $nick($active,0,o)
- /did -a stats 1 - Pourcentage d'opereteur: ( $+ $calc( $nick($active,0,o) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1 Nombre de Voice : $nick($active,0,v)
- /did -a stats 1 - Pourcentage De Voice( $+ $calc( $nick($active,0,v) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1 Nombre de Regulier : $nick($active,0,r)
- /did -a stats 1 - Pourcentage de Regulier ( $+ $calc( $nick($active,0,r) / $nick($active,0) * 100) $+ % $+ )
- /did -a stats 1
- /did -a stats 1 Stats des Operateurs :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,o) == 0 ) { goto voice }
- else {
- /set %totalostats $nick($active,0,o)
- /set %ostats 0
- :odebut
- inc %ostats
- /did -a stats 1 - $nick($active,%ostats,o) Est Operateur sur $active
- if ( %ostats == %totalostats ) { goto voice }
- else { goto odebut }
- }
- :voice
- /did -a stats 1
- /did -a stats 1 Stats des Voices :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,v) == 0 ) { goto regul }
- else {
- /set %totalvstats $nick($active,0,v)
- /set %vstats 0
- :vdebut
- inc %vstats
- /did -a stats 1 - $nick($active,%vstats,v) Est Voice sur $active
- if ( %vstats == %totalvstats ) { goto regul }
- else { goto vdebut }
- }
- :regul
- /did -a stats 1
- /did -a stats 1 Stats de Reguliers :
- /did -a stats 1 ----------------------------------------------=->
- if ( $nick($active,0,r) == 0 ) { goto fin }
- else {
- /set %totalrstats $nick($active,0,r)
- /set %rstats 0
- :rdebut
- inc %rstats
- /did -a stats 1 - $nick($active,%rstats,r) Est Regulier sur $active
- if ( %rstats == %totalrstats ) { goto fin }
- else { goto rdebut }
- }
- :fin
- halt
- }
-
-
- on *:dialog:stats:sclick:3: {
- /msg $active 7Statistique de -------=-> Canal $active |>
- /msg $active 7Nombre d'utilisateur total:7 $nick(%statschan,0)
- /msg $active 7Nombre d'OP(s):7 $nick(%statschan,0,o)
- /msg $active 7Nombre de Voice(s) :7 $nick(%statschan,0,v)
- /msg $active 7Nombre de Regulier :7 $nick(%statschan,0,r)
- /msg $active 7Statistique de -------=-> Canal $active |>
- }
dialog stats {
title "Statistiques"
size -1 -1 187 143
option dbu
list 1, 68 3 116 138, size
button "Actualiser", 2, 9 58 50 10, flat
button "Dire sur le chan", 3, 9 68 50 11, flat
button "Ok", 4, 9 79 50 10, cancel, flat
text "Cronic Script : Statistiques D'un Channel", 5, 4 5 50 23
box "Action", 6, 3 36 62 72
}
on *:dialog:stats:init:*: {
/set %statschan $active
/did -a stats 1 Statistique de ---=-> Canal $active
/did -a stats 1
/did -a stats 1 Nombre de personne: $nick($active,0)
/did -a stats 1
/did -a stats 1 Nombre d'Operateur: $nick($active,0,o)
/did -a stats 1 - Pourcentage d'opereteur: ( $+ $calc( $nick($active,0,o) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1 Nombre de Voice : $nick($active,0,v)
/did -a stats 1 - Pourcentage De Voice( $+ $calc( $nick($active,0,v) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1 Nombre de Regulier : $nick($active,0,r)
/did -a stats 1 - Pourcentage de Regulier ( $+ $calc( $nick($active,0,r) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1
/did -a stats 1 Stats des Operateurs :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,o) == 0 ) { goto voice }
else {
/set %totalostats $nick($active,0,o)
/set %ostats 0
:odebut
inc %ostats
/did -a stats 1 - $nick($active,%ostats,o) Est Operateur sur $active
if ( %ostats == %totalostats ) { goto voice }
else { goto odebut }
}
:voice
/did -a stats 1
/did -a stats 1 Stats des Voices :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,v) == 0 ) { goto regul }
else {
/set %totalvstats $nick($active,0,v)
/set %vstats 0
:vdebut
inc %vstats
/did -a stats 1 - $nick($active,%vstats,v) Est Voice sur $active
if ( %vstats == %totalvstats ) { goto regul }
else { goto vdebut }
}
:regul
/did -a stats 1
/did -a stats 1 Stats de Reguliers :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,r) == 0 ) { goto fin }
else {
/set %totalrstats $nick($active,0,r)
/set %rstats 0
:rdebut
inc %rstats
/did -a stats 1 - $nick($active,%rstats,r) Est Regulier sur $active
if ( %rstats == %totalrstats ) { goto fin }
else { goto rdebut }
}
:fin
halt
}
on *:dialog:stats:sclick:2: {
/did -a stats 1 Statistique de ---=-> Canal $active
/did -a stats 1
/did -a stats 1 Nombre de personne: $nick($active,0)
/did -a stats 1
/did -a stats 1 Nombre d'Operateur: $nick($active,0,o)
/did -a stats 1 - Pourcentage d'opereteur: ( $+ $calc( $nick($active,0,o) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1 Nombre de Voice : $nick($active,0,v)
/did -a stats 1 - Pourcentage De Voice( $+ $calc( $nick($active,0,v) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1 Nombre de Regulier : $nick($active,0,r)
/did -a stats 1 - Pourcentage de Regulier ( $+ $calc( $nick($active,0,r) / $nick($active,0) * 100) $+ % $+ )
/did -a stats 1
/did -a stats 1 Stats des Operateurs :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,o) == 0 ) { goto voice }
else {
/set %totalostats $nick($active,0,o)
/set %ostats 0
:odebut
inc %ostats
/did -a stats 1 - $nick($active,%ostats,o) Est Operateur sur $active
if ( %ostats == %totalostats ) { goto voice }
else { goto odebut }
}
:voice
/did -a stats 1
/did -a stats 1 Stats des Voices :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,v) == 0 ) { goto regul }
else {
/set %totalvstats $nick($active,0,v)
/set %vstats 0
:vdebut
inc %vstats
/did -a stats 1 - $nick($active,%vstats,v) Est Voice sur $active
if ( %vstats == %totalvstats ) { goto regul }
else { goto vdebut }
}
:regul
/did -a stats 1
/did -a stats 1 Stats de Reguliers :
/did -a stats 1 ----------------------------------------------=->
if ( $nick($active,0,r) == 0 ) { goto fin }
else {
/set %totalrstats $nick($active,0,r)
/set %rstats 0
:rdebut
inc %rstats
/did -a stats 1 - $nick($active,%rstats,r) Est Regulier sur $active
if ( %rstats == %totalrstats ) { goto fin }
else { goto rdebut }
}
:fin
halt
}
on *:dialog:stats:sclick:3: {
/msg $active 7Statistique de -------=-> Canal $active |>
/msg $active 7Nombre d'utilisateur total:7 $nick(%statschan,0)
/msg $active 7Nombre d'OP(s):7 $nick(%statschan,0,o)
/msg $active 7Nombre de Voice(s) :7 $nick(%statschan,0,v)
/msg $active 7Nombre de Regulier :7 $nick(%statschan,0,r)
/msg $active 7Statistique de -------=-> Canal $active |>
}
Conclusion
Il y a juste un tout petit bug au niveau de la touche actualiser , je trouver le moyen de le modifier et je vous file le code ;p ++
Sources du même auteur
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
UNE JOLIE-HORLOGE ET PAS QU'UN PEU !UNE JOLIE-HORLOGE ET PAS QU'UN PEU ! par neodante
Pour les possesseurs d'iPhone, ça y est Bijin Tokei - qui se traduit littéralement en Français par " Jolie Horloge " - est arrivé et GRATUITEMENT s'il vous plaît ! Après la version Tokyo, Hokkaido, night club, racing, Gal, "pour les mademoiselles'", . voi...
Cliquez pour lire la suite de l'article par neodante TECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICESTECHDAYS PARIS 2010 : CONNECTEZ VOS DONNéES à SHAREPOINT 2010 AVEC LES BUSINESS CONNECTIVITY SERVICES par ROMELARD Fabrice
Animé par: Gaetan Bouveret et Julien Chomarat Business Connectivity Services (BCS) est dans SharePoint 2010 la version 2 de Business Data Catalog (BDC dans SharePoint 2007). Il s'agit de la solution permettant de visualiser des données provenan...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice [DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE[DIVERS] SUIVRE VOS SéRIES PRéFéRéS SUR LA TOILE par orion
Comme de nombreux geek, je suis un grand amateur de série TV et je rate régulièrement des épisodes de mes séries préférés. Une solution s'offre à vous avec ce merveilleux site : Tv Gorge - www.tvgorge.com Moteur de recherche à l'appui, vous pouvez ...
Cliquez pour lire la suite de l'article par orion TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010TECHDAYS PARIS 2010 : LA BI DANS SHAREPOINT 2010 par ROMELARD Fabrice
Animé par: Vincent Bellet et Baptiste Giraudier La BI dans SharePoint 2010, Les nouveaux services d'application dans SP2010 et SQL Server Reporting services 2008 R2. La BI dans SharePoint est généralisée pour tous afin de permettre à tous les coll...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Forum
RE : ON RAWMODERE : ON RAWMODE par WorldDMT
Cliquez pour lire la suite par WorldDMT AVERTISSMENT ET KIKKAVERTISSMENT ET KIKK par mouhcine951990
Cliquez pour lire la suite par mouhcine951990
Logiciels
DB-MAIN (9.1.0)DB-MAIN (9.1.0)DB-MAIN is a data-modeling and data-architecture tool. It is designed to help developers and anal... Cliquez pour télécharger DB-MAIN Xilisoft DPG Convertisseur (5.1.37.0120)XILISOFT DPG CONVERTISSEUR (5.1.37.0120)Xilisoft DPG Convertisseur offre aux fans de Nintendo DS une bonne solution leur permettant de dé... Cliquez pour télécharger Xilisoft DPG Convertisseur GraphicsGale (2.01.01)GRAPHICSGALE (2.01.01)GraphicsGale est un logiciel de PixelArt avec de nombreuse fonctionnalités permettant de réalisé ... Cliquez pour télécharger GraphicsGale Architecte 3D (Platinum 2010)ARCHITECTE 3D (PLATINUM 2010)Architecte 3D Platinium vous permet de concevoir facilement les plans votre future maison, de l'é... Cliquez pour télécharger Architecte 3D TeamViewer 5 (TeamViewer 5)TEAMVIEWER 5 (TEAMVIEWER 5)Dépanner un ami,expliquer une manipulation devient un jeu d'enfant.
Prise en main d'un autre ord... Cliquez pour télécharger TeamViewer 5
|