mIRC Homepage
Posted By: oSaYaP Need back up .. roger that ! xD - 11/04/04 03:35 PM
I need this:
on 1:text:*!pingme*:#: if ($nick isin %list_of_users) { ctcp $nick ping | notice $nick (And here i don´t know how to tell him his ctcp ping reply)

Thanks smile
Posted By: Zyzzyx26 Re: Need back up .. roger that ! xD - 11/04/04 03:47 PM
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
Posted By: oSaYaP Re: Need back up .. roger that ! xD - 11/04/04 03:52 PM
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

That´s what i want:

-|cLs|- You are 0.573 second(s) away from mercurio.irc.redhispana.org smile
Posted By: Zyzzyx26 Re: Need back up .. roger that ! xD - 11/04/04 04:57 PM
Yes, probably there is, but im not familiar how to.. smirk
Posted By: MIMP Re: Need back up .. roger that ! xD - 12/04/04 01:41 AM
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.
© mIRC Discussion Forums