begin process at 2012 02 08 18:58:34
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

AddOns

 > STATISTIQUE D'UN CHANNEL EN DIALOG

STATISTIQUE D'UN CHANNEL EN DIALOG


 Information sur la source

Note :
4,5 / 10 - par 2 personnes
4,50 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :AddOns Niveau :Initié Date de création :09/08/2003 Date de mise à jour :09/08/2003 19:55:53 Vu :3 825

Auteur : lemec

Ecrire un message privé
Commentaire sur cette source (4)
Ajouter un commentaire et/ou une note

 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

NICKCOMPLETOR
SYSTEME AWAY
PSEUDO RAPIDE
Source avec Zip LECTEUR MP3 (NEW)
Source avec Zip Source avec une capture MP3 PLAYER

 Sources de la même categorie

PACMAN MULTI-JOUEUR EN LIGNE par wims
PROXY&SOCKS SCANNER+LEECHER par independentt
GESTIONNAIRE DE HIGHLIGHT AVANCÉ AVEC IGNORE SALON OU PSEUDO par doob666
AUTOJOIN HTABLE MULTISERVER par doob666
TCL - AJOUT SUPPRESSION DE LOGS par Atok

Commentaires et avis

Commentaire de doodah le 10/08/2003 22:15:49

pk ya pas els admis ?

Commentaire de abdoulax le 11/08/2003 17:16:23

ouai , bof

Commentaire de M4tthi3u le 05/06/2004 20:57:20

bien ... 6/10

Commentaire de Philou150456 le 15/07/2004 11:41:17

bof faut en rajouter plus que ca

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 6,209 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales