Simple lag checker

By shideezhi on Apr 27, 2008

just a simple lag checker . Is my first post so be kind hehe :)
copy and paste into new remote

alias lagcheck {
  if (%hilag == $null) { set %hilag -1 }
  if (%lolag == $null) { set %lolag 999 }
  .enable #lagcheck 
  .raw $ticks 
}
menu channel { 
  Check lag:lagcheck 
}
#lagcheck off
raw 421:*: {
  var %lag = $calc(($ticks - $2) / 1000)
  if (%lag > %hilag) { set %hilag %lag }
  if (%lag < %lolag) { set %lolag %lag }
  echo $active 15My lag on $server is %lag seconds. $& 12{woot} High: %hilag $+ s; Low: %lolag $+ s.
  .disable #lagcheck 
  haltdef
}
#lagcheck end

Comments

Sign in to comment.
^Neptune   -  May 02, 2008

Instead of

if (%variable == $null) {

Try using

if (!%variable) {

Otherwise good first post

 Respond  
napa182   -  May 02, 2008

nice lag check works good. nice work for ur first post =)

 Respond  
shideezhi   -  May 02, 2008

ok made changes so hope its all good now :) ty for u help an comments :)

 Respond  
TheWhistler   -  Apr 27, 2008

nice but i get 2 error\'s
Error: invalid command: 2857539
Error: invalid command: high:

 Respond  
shideezhi   -  Apr 27, 2008

ty guys :)

 Respond  
EL   -  Apr 27, 2008

YA forgot to //echo $active for the high low jenneh other then that it well done.`-.-

 Respond  
TheGioMan   -  Apr 27, 2008

Good job,hun.I give it a 4 which is awesome for a first posted script.;P

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.