mIRC Home    About    Download    Register    News    Help

Print Thread
Lagging Script for Titlebar #136368 27/11/05 12:52 AM
Joined: Dec 2004
Posts: 33
W
WildCard Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
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

Re: Lagging Script for Titlebar #136369 27/11/05 02:38 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Re: Lagging Script for Titlebar #136370 28/11/05 04:56 AM
Joined: Dec 2004
Posts: 33
W
WildCard Offline OP
Ameglian cow
OP Offline
Ameglian cow
W
Joined: Dec 2004
Posts: 33
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

Re: Lagging Script for Titlebar #136371 28/11/05 07:06 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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

Last edited by genius_at_work; 28/11/05 07:17 AM.