mIRC Homepage
Posted By: WildCard Lagging Script for Titlebar - 27/11/05 12:52 AM
k. i know the titlebar command. but thats it. id like to know my lag. its helpful when im talking on a channel. instead of keep pinging people i just look at the titlebar and tel them im lagged. any help? thankyou for your time
Posted By: genius_at_work Re: Lagging Script for Titlebar - 27/11/05 02:38 AM
This command will calculate the lag from your mIRC to the server and back.

Code:
 on *:CONNECT:$+(timer.,$cid) 0 5 .msg $me LAG- $!ticks
on me:^*:TEXT:LAG- &:?:{ titlebar LAG: $calc(($ticks - $2) / 1000) $+ s | haltdef }
on *:DISCONNECT:$+(timer.,$cid) off 


-genius_at_work
Posted By: WildCard Re: Lagging Script for Titlebar - 28/11/05 04:56 AM
it works with 2 minor problems.... it keeps opening a quiery on me and if i change nicks it keeps saying (mynick) no such nickname or channel. i know its cause how its written. just looking for a better one. i still use this one though. thank you for your time
Posted By: genius_at_work Re: Lagging Script for Titlebar - 28/11/05 07:06 AM
Sorry for the errors, try this one instead:

Code:
 on *:CONNECT:{ titlebar | $+(.timer.lag.,$cid) 1 10 § $!+ $!ticks | $+(timer.lag.,$cid) -e }
on *:DISCONNECT:$+(.timer.lag.,$cid) off
on me:*:NICK:$+(timer.lag.,$cid) 1 10 § $!+ $!ticks
raw 421:& §*:{ titlebar LAG: $calc(($ticks - $right($2,-1)) / 1000) $+ s | $+(.timer.lag.,$cid) 1 10 § $!+ $!ticks | halt } 

(The onNICK event restarts the timer in case the server sends the raw to the wrong nick when you change)

-genius_at_work
© mIRC Discussion Forums