This is what I used :
on *:text:!ping:#: { ctcp $nick ping | set %pingchan $chan }
on *:ctcpreply:*ping*: {
if ($2 = $null) halt { set %pt = $ctime - $2
else if (%pt < 0) set %pt 0 | msg %pingchan 4 $+ $nick Your ping reply was: [12 $+ %pt $+ 4] I'm your Hero.
}
}
The %pt reply was 1sec or 2sec , notice there was no "s" in the 2sec. How to make it appear with an "s" and another thing I need some answers in my earlier post , thanks.