mIRC Home    About    Download    Register    News    Help

Print Thread
#52266 02/10/03 10:57 AM
Joined: Sep 2003
Posts: 29
S
sopia Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 29
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.


Keep learning everyday, you'll be a genius.
#52267 02/10/03 01:04 PM
Joined: Jan 2003
Posts: 148
K
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
Code:
  

on *:text:!ping:#:{ ctcp $nick ping | set %pingchan $chan }

on *:ctcpreply:*ping*:{
if ($2 == $null) { halt }
 var %pt = $ctime - $2
if (%pt &lt; 0) { %pt = 0 }
msg %pingchan 4 $+ $nick Your ping reply was: [12 $+ %pt $+ 4] I'm your Hero.
}

#52268 02/10/03 02:43 PM
Joined: Sep 2003
Posts: 29
S
sopia Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 29
it dint work.


Keep learning everyday, you'll be a genius.
#52269 02/10/03 08:08 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
The %pt reply was 1sec or 2sec
I don't see any "sec" in the code at all smile
However...
[12 $+ $duration(%pt) $+ 4]

#52270 03/10/03 06:49 AM
Joined: Sep 2003
Posts: 29
S
sopia Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Sep 2003
Posts: 29
Thank Iori, it works and thank all for the help..:)


Keep learning everyday, you'll be a genius.

Link Copied to Clipboard