mIRC Home    About    Download    Register    News    Help

Print Thread
help with lag meter #13708 01/03/03 08:14 PM
Joined: Jan 2003
Posts: 237
X
xrn0id Offline OP
Fjord artisan
OP Offline
Fjord artisan
X
Joined: Jan 2003
Posts: 237
I snaged this code from the form a while back:

Code:
alias serverping {
  set -u60 %serverping. $+ $$1 $ticks
  .raw time $1
}
raw 391:*:if %serverping. [ $+ [ $nick ] ] {
  echo -a * ServerPing from $nick $+ : $calc(($ticks - $ifmatch)*.001) seconds
  unset %serverping. $+ $nick
  halt
}


On my old script, this worked. What i had it do was put the results into a cell I made on a status bar. But now, it dosnt seem to work. Anything look wrong?



;Check for Life

if (%life == $null) {
goto getlife
}
Re: help with lag meter #13709 02/03/03 07:24 AM
Joined: Feb 2003
Posts: 83
L
LO_KEY Offline
Babel fish
Offline
Babel fish
L
Joined: Feb 2003
Posts: 83
I don't find anything wrong with it...

I pasted it into my script and it worked fine, if im usin it right...
I dunno what ur old results looked like, nor what ur new one's thats not working right for you...

Using your code...
Code:
alias serverping {  
  set -u60 %serverping. $+ $$1 $ticks  
  .raw time $1
}
raw 391:*: {
  if %serverping. [ $+ [ $nick ] ] {  
    echo -a * ServerPing from $nick $+ : $calc(($ticks - $ifmatch)*.001) seconds  
    unset %serverping. $+ $nick 
    halt
  }
}

and typeing
//serverping $server in my status window, returned this for me....


* ServerPing from irc.vrfx.com: 0.03 seconds
* ServerPing from irc.vrfx.com: 0.1 seconds
* ServerPing from irc.vrfx.com: 0.03 seconds
* ServerPing from irc.vrfx.com: 0.041 seconds


Of course i typed it four times to get the four results...

btw, script is using 6.03


any help would make me happy