Accueil > > > UN PING REPLY AVEC BARRE COLORE EN FONCTION DU PING
UN PING REPLY AVEC BARRE COLORE EN FONCTION DU PING
Information sur la source
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
Sources de la même categorie
Commentaires et avis
|
Derniers Blogs
TECHDAYS PARIS 2010 : SHAREPOINT 2010 POUR LES DéVELOPPEURSTECHDAYS PARIS 2010 : SHAREPOINT 2010 POUR LES DéVELOPPEURS par ROMELARD Fabrice
Animé par: Laurent Cotton Le développement dans SharePoint 2010 passe par plusieurs axes qui seront évoqués dans cette session, mais plus particulièrement les développements simples lié au besoin Business Business Connectivity Services Ce BCS es...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice TECHDAYS PARIS 2010 : PLEINIèRE DERNIER JOURTECHDAYS PARIS 2010 : PLEINIèRE DERNIER JOUR par ROMELARD Fabrice
Cette session est la dernière pleinière de ces 3 jours de TechDays Paris 2010. Généralement, cette troisième journée est plus axée sur l'avenir vu par Microsoft. Après un retour sur l'avenir vu par la Science Fiction ou par ...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice 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
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
Comparez les prix

HTC Magic
Entre 429€ et 429€
|