mIRC Home    About    Download    Register    News    Help

Print Thread
Need back up .. roger that ! xD #78894 11/04/04 03:35 PM
Joined: Jan 2003
Posts: 48
O
oSaYaP Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Jan 2003
Posts: 48
I need this:
on 1:text:*!pingme*:#: if ($nick isin %list_of_users) { ctcp $nick ping | notice $nick (And here i dont know how to tell him his ctcp ping reply)

Thanks smile


-= Porque pese a todo Dios .. an te tengo f =-
Re: Need back up .. roger that ! xD #78895 11/04/04 03:47 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Code:
on 1:text:*!pingme*:#: if ($nick isin %list_of_users) { ctcp $nick ping }

on *:CTCPREPLY:PING*: {
  var %pingreply = $calc($ctime - $2) 
  .notice $nick You are %pingreply second(s) away from $server :)
}


Hope that helps smile


"All we are saying is give peace a chance" -- John Lennon
Re: Need back up .. roger that ! xD #78896 11/04/04 03:52 PM
Joined: Jan 2003
Posts: 48
O
oSaYaP Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Jan 2003
Posts: 48
Yeah .. and a little more ..
is it possible to add this code miliseconds ?
eg:

This is the original message:
-|cLs|- You are 0 second(s) away from mercurio.irc.redhispana.org smile

Thats what i want:

-|cLs|- You are 0.573 second(s) away from mercurio.irc.redhispana.org smile


-= Porque pese a todo Dios .. an te tengo f =-
Re: Need back up .. roger that ! xD #78897 11/04/04 04:57 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Yes, probably there is, but im not familiar how to.. smirk


"All we are saying is give peace a chance" -- John Lennon
Re: Need back up .. roger that ! xD #78898 12/04/04 01:41 AM
Joined: Dec 2002
Posts: 102
M
MIMP Offline
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 102
To do miliseconds you can use $ticks, you need to manually record the value when you send the ping and then manually check the value when their client replies and compare the two. The accuracy of these things will vary based on how fast your PC actually processes the commands though, which defeats the purpose of trying to obtain such accuracy.


-
MIMP