mIRC Home    About    Download    Register    News    Help

Print Thread
#184120 25/08/07 04:34 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
[16:07] <carabs> !lag
[16:07] <boot> My lag is at 5.2145secs smile

anyone have the script to do this kind of thing? i think its something to do with ping times or whatever

Joined: Aug 2007
Posts: 72
P
Babel fish
Offline
Babel fish
P
Joined: Aug 2007
Posts: 72
Code:
on 1:PONG:{
  if ($2 == %lagcheck) {
  echo -a lag $calc($calc($ticks - %lagcheck) / 1000) seconds
  if (%lagcheck.chan) msg %lagcheck.chan My lag is at $calc($calc($ticks - %lagcheck) / 1000) seconds
  unset %lagcheck
  return
  }
}

alias lagcheck {
  set %lagcheck $ticks
  set %lagcheck.chan $1
  .raw ping %lagcheck
}

on *:text:!lag:*:{ lagcheck $chan }


something like that...
i'm sure there's a better way

Last edited by PhireCoder; 25/08/07 04:53 PM.

mIRC Scripting: So easy a caveman could do it.
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Code:
on *:text:!lag:#:set -e %lagcheck # | .raw ping & $+ $ticks
on ^*:pong:{
  if &?* iswm $2 {
    if $me ison %lagcheck { msg $v2 My lag: $calc(($ticks - $mid($2,2))/1000) $+ s }
    halt
  }
}


Link Copied to Clipboard