begin process at 2012 02 08 20:20:33
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

AddOns

 > UN PING REPLY AVEC BARRE COLORE EN FONCTION DU PING

UN PING REPLY AVEC BARRE COLORE EN FONCTION DU PING


 Information sur la source

Note :
Aucune note
Catégorie :AddOns Niveau :Débutant Date de création :05/06/2002 Date de mise à jour :05/06/2002 01:58:58 Vu :6 557

Auteur : IsHnOuG

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

 Description

voila ceci est un script qui n'est pas de moi, je ne me rappel plus de qui il est mais je le remerci.

ce script permet d'envoyer un reply a une personne qui demande a etre pinger avec a cote une barre de couleur en fonction du ping qu'il a.
plus le ping est bas plus la barre est verte, plus le ping est haut plus elle est rouge ( avec degrade )

Source

  • on *:text:!pingme:#: {
  • .ctcp $nick ping
  • set %pingchan $chan
  • set %pingnick $nick
  • }
  • on *:text:!ping*:#: {
  • if ($2 == $null) || ($2 = me) {
  • .ctcp $nick ping
  • set %pingchan $chan
  • set %pingnick $nick
  • }
  • if ($2 != $null) {
  • ctcp $2 ping
  • set %pingchan $chan
  • set %pingnick $2
  • }
  • }
  • on *:ctcpreply:*ping*: {
  • set %pingy $calc($ctime - $2)
  • if (%pingy == 0) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1 000 Seconds  15 }
  • if (%pingy == 1) { /notice %pingnick Ping Reply 0,1 %pingnick 9,115,1 001 Second  15 }
  • if (%pingy == 2) { /notice %pingnick Ping Reply 0,1 %pingnick 9,115,1 002 Seconds  15 }
  • if (%pingy == 3) { /notice %pingnick Ping Reply 0,1 %pingnick 9,115,1 003 Seconds  15 }
  • if (%pingy == 4) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1815,1 004 Seconds  15 }
  • if (%pingy == 5) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1815,1 005 Seconds  15 }
  • if (%pingy == 6) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1815,1 006 Seconds  15 }
  • if (%pingy == 7) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1815,1 007 Seconds  15 }
  • if (%pingy == 8) { /notice %pingnick Ping Reply 0,1 %pingnick 9,18715,1 008 Seconds  15 }
  • if (%pingy == 9) { /notice %pingnick Ping Reply 0,1 %pingnick 9,18715,1 009 Seconds  15 }
  • if (%pingy == 10) { /notice %pingnick Ping Reply 0,1 %pingnick 9,18715,1 0010 Seconds  15 }
  • if (%pingy == 11) { /notice %pingnick Ping Reply 0,1 %pingnick 9,18715,1 0011 Seconds  15 }
  • if (%pingy == 12) { /notice %pingnick Ping Reply 0,1 %pingnick 9,187415,1 0012 Seconds  15 }
  • if (%pingy == 13) { /notice %pingnick Ping Reply 0,1 %pingnick 9,187415,1 0013 Seconds  15 }
  • if (%pingy == 14) { /notice %pingnick Ping Reply 0,1 %pingnick 9,187415,1 0014 Seconds  15 }
  • if (%pingy == 15) { /notice %pingnick Ping Reply 0,1 %pingnick 9,187415,1 0015 Seconds  15 }
  • if (%pingy > 15) { /notice %pingnick Ping Reply 0,1 %pingnick 4,1 00Over 15 Seconds  15 }
  • }
on *:text:!pingme:#: {
  .ctcp $nick ping
  set %pingchan $chan
  set %pingnick $nick
}

on *:text:!ping*:#: {
  if ($2 == $null) || ($2 = me) {
    .ctcp $nick ping
    set %pingchan $chan
    set %pingnick $nick
  }
  if ($2 != $null) {
    ctcp $2 ping
    set %pingchan $chan
    set %pingnick $2
  }
}
on *:ctcpreply:*ping*: {
  set %pingy $calc($ctime - $2)
  if (%pingy == 0) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1 000 Seconds  15 }
  if (%pingy == 1) { /notice %pingnick Ping Reply 0,1 %pingnick 9,115,1 001 Second  15 }
  if (%pingy == 2) { /notice %pingnick Ping Reply 0,1 %pingnick 9,115,1 002 Seconds  15 }
  if (%pingy == 3) { /notice %pingnick Ping Reply 0,1 %pingnick 9,115,1 003 Seconds  15 }
  if (%pingy == 4) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1815,1 004 Seconds  15 }
  if (%pingy == 5) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1815,1 005 Seconds  15 }
  if (%pingy == 6) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1815,1 006 Seconds  15 }
  if (%pingy == 7) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1815,1 007 Seconds  15 }
  if (%pingy == 8) { /notice %pingnick Ping Reply 0,1 %pingnick 9,18715,1 008 Seconds  15 }
  if (%pingy == 9) { /notice %pingnick Ping Reply 0,1 %pingnick 9,18715,1 009 Seconds  15 }
  if (%pingy == 10) { /notice %pingnick Ping Reply 0,1 %pingnick 9,18715,1 0010 Seconds  15 }
  if (%pingy == 11) { /notice %pingnick Ping Reply 0,1 %pingnick 9,18715,1 0011 Seconds  15 }
  if (%pingy == 12) { /notice %pingnick Ping Reply 0,1 %pingnick 9,187415,1 0012 Seconds  15 }
  if (%pingy == 13) { /notice %pingnick Ping Reply 0,1 %pingnick 9,187415,1 0013 Seconds  15 }
  if (%pingy == 14) { /notice %pingnick Ping Reply 0,1 %pingnick 9,187415,1 0014 Seconds  15 }
  if (%pingy == 15) { /notice %pingnick Ping Reply 0,1 %pingnick 9,187415,1 0015 Seconds  15 }
  if (%pingy > 15) { /notice %pingnick Ping Reply 0,1 %pingnick 4,1 00Over 15 Seconds  15 }

}

 Conclusion

%pingchan = au nom du canal ou la personne a taper !ping
%pingnick =  le nom de la personne qui a demande a etre pinger
juste que la tout va bien :p

set %pingy $calc($ctime - $2) ceci calcul le ping de la personne qui a demande le ping

et le if (%pingy == 0) { /notice %pingnick Ping Reply 0,1 %pingnick 9,1 000 Seconds  15 }

test la variable %pingypour savoir si elle est == a 0 ( autrement dit si le ping est de 0 ) il envois le message  /notice %pingnick Ping Reply 0,1 %pingnick a la personne et les  sont la barre et les couleur a y mettre selon le ping de la personne ...

ainsi de suite


 Sources du même auteur

COMPTEUR D'AFFLUENCE SUR VOTRE CANAL AVEC RECORD.
CHOISIR SA MUSIQUE DE DEMARAGE ( DIALOG )
Source avec Zip Source avec une capture AGENT SOUS MIRC PARLANT
AUTO RE-OP SUR UN DEOP
UN COMPTEUR D'ENTREE SUR VOTE CANAL

 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 stevnet le 20/11/2002 21:27:11

c marrant et utile

Commentaire de Exagone le 20/08/2007 09:04:31

Alors les / apres les { c'est inutille !!  ^^
sinon bien

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
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 : 0,936 sec (3)

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