Lag Meter

By NoFx on May 07, 2006

This is a simple lag meter, that checks you lag, every 5 seconds.. that's configurable.. and you can see how much lag you have.. :) .. and also.. it works alone, you don't have to do nothing , just copy and paste this in remotes of mIRC, in a new sheet :) .... Enjoy!

on *:connect:{
.timerLag 0 5 lagmeter
}
alias lagmeter {
.ctcpreply $me meter $ticks
}
on *:ctcpreply:meter &: {
set %lag $calc(($ticks -$2) / 1000),-3) s
echo -s (Lag Meter) Your lag is : %lag
halt
}

Comments

Sign in to comment.
Jared   -  May 09, 2006

I didn\'t vote your snippet, and you know it.

 Respond  
Jared   -  May 09, 2006

;Medidor de Lag
;Instinct Script
;Jared

alias barlag { .ctcpreply $me mylag $ticks | halt }

on *:ctcpreply:mylag &: {
set %mylag $calc(($ticks -$2) / 1000),-3)

alias lag { me Lag actual: %mylag segundo(s) }
drawpic -c @tools 762 0 Visual\cover.bmp
drawtext -or @tools $rgb(235,235,235) Tahoma 9 786 11 Lag: %mylag segundos
drawpic -c @bar 824 0 Visual\cover2.bmp
drawtext -or @bar $rgb(235,235,235) Tahoma 8 852 13 $time
if (%mylag > 5) { echo -s 1 0,4 Lag !14,0 %mylag segundos | echo - }
halt
}

Instinct Script es Cigo Abierto. No se restringe su copia, distribuci o modificaci. El autor no se hace responsable por los resultados de tales acciones, y queda a criterio y buena fdel usuario no plagiar el contenido original de este material.

 Respond  
QuickStep   -  May 08, 2006

No, the variable actually makes the script slower (not noticable though, but still good programming practice to not use excessive variables).

 Respond  
NoFx   -  May 07, 2006

The variable gives more flexibility to the script.. and it also makes it faster.. ch1zra thanks for your comment.. i will make another when i have time :)

See you !

 Respond  
QuickStep   -  May 07, 2006

The ,-3) is a mistake, probably an identifier you removed later. Also setting the variable is unnessecary.

 Respond  
ch1zra   -  May 07, 2006

this is just perfect.
it\'s great for further development, but it also works great just the way it is...
nofx, great job man :)

 Respond  
Jared   -  May 07, 2006

Excellent :)

 Respond  
NoFx   -  May 07, 2006

yes..

 Respond  
psp4me   -  May 07, 2006

Oh i see.. mine when its using the ctcp option is like

ctcp :Lag.:?: { if ($nick == $me) && ($LagRead(Check.Methods,Ctcp) == On) { lag.reply $gettok($1,2,46) | .haltdef } }

then the alias was..
alias Lag.check {
if ($LagRead(Check.Methods,Ctcp) == On) {
.ctcp $me Lag. [ $+ [ $ticks ] ]
.halt
}
}
but there was loads of other stuff in between which i didnt put in because it would be too long >_<

 Respond  
NoFx   -  May 07, 2006

And i cannot put the evento on *:ctcp if i put that.. :)

 Respond  
NoFx   -  May 07, 2006

no, because with .ctcp , mIRC takes it\'s like another user, instead with, ctcpreply, it takes it from me, and i can adjust de meter ..

See you.

 Respond  
psp4me   -  May 07, 2006

Shouldn\'t:
alias lagmeter {
.ctcpreply $me meter $ticks
}
be:
alias lagmeter {
.ctcp $me Meter $ticks
}
?

 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.