|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
alias lag {
if (%si.lag == 1) {
if ($status == connected) {
if ($dialog(si)) {
if (!$hget(lag)) { .hmake lag 1000 | if ($isfile(lag.hsh)) { .hload lag lag.hsh } }
if (!$1) { hadd lag ta $active | hadd lag ti $ticks | hadd lag se $server | $iif(!$hget(lag,$server),hadd lag $server 1 1) | .raw -q ping $server }
elseif ($1 == free) && ($hget(lag)) { hfree lag | .hsave -o lag lag.hsh }
}
}
}
else { halt }
}
on ^*:PONG:{
var %s = $hget(lag,se),%l = $round($calc(($ticks - $hget(lag,ti)) / 1000),3),%i = $hget(lag,%s)
if (%i == 1 1) { hadd lag %s %l %l }
elseif ($gettok(%i,1,32) > %l) { hadd lag %s %l $gettok(%i,2,32) }
elseif ($gettok(%i,2,32) < %l) { hadd lag %s $gettok(%i,1,32) %l }
did -ra si 15 %l
haltdef
}
im using a mdx progress bar here, and i was wondering if anyone can get it to work, because im on cable, and i dont lag, and i only know cable people, so if someone on dialup could test this code (because on my computer nothing at all is on the progress bar) i would be greatfull, i know all codes for mdx are set up right because i can manually add to the progress bar
Last edited by MTec89; 07/08/03 03:27 PM.
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
Perhaps you need to read up on the meaning of lag. It has nothing to do with your connection type. Someone on cable can be lagged all the way to hell and back at the same time someone on a 28k8 is only lagging 1 second. Lag is the time needed for a signal you send out to arrive on the other end. It depends on your ISP, the condition of the server you are connected to and other things beyond your control. You can very much test it yourself.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
well, i just dont get lagged, thats just it, so i really cant test it
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
EVERYONE lags.. point-blank. There are no ifs, ands, or buts. as LocutusofBorg said, its the time it takes for a signal to go down andback. Yes, your delay maybe be minimal (very fer milliseconds) but it will NEVER..and i mean NEVER reach 0. Even for example you host a game on your computer, and you connect to the game with the same computer, your ping will never be 0. never.
-KingTomato
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
im always below .2xx lag, so i just say i dont lag....point blank
|
|
|
|
Joined: Jul 2003
Posts: 35
Ameglian cow
|
Ameglian cow
Joined: Jul 2003
Posts: 35 |
.2xx is not 0, thats all they are trying to get through to you..
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
And as I said - it's pure luck and has NOTHING to do with your cable connection.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
ok but why are you people worring about this, i just need a code tested, i dont need corrected about everything i say
Last edited by MTec89; 08/08/03 02:57 PM.
|
|
|
|
Joined: Mar 2003
Posts: 1,271
Hoopy frood
|
Hoopy frood
Joined: Mar 2003
Posts: 1,271 |
Because a] you can test it yourself, and b] if you are writing a script starting off on a wrong assumption, you'll never get it fixed, therefor we correct the original wrong assumption.
DALnet #Helpdesk I hear and I forget. I see and I remember. I do and I understand. -Confucius
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
a] my lag isnt big enough to test it and b] i dont need corrected, just my code
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
It is big enough, just add three decimal places to your code and you'll see it more precisely.
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
|
|
|
|
Joined: Jul 2003
Posts: 35
Ameglian cow
|
Ameglian cow
Joined: Jul 2003
Posts: 35 |
Would you like the code put into a .mrc file, zipped and emailed to you to?
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
if you want, but all i need is to know where i put that decimal
|
|
|
|
Joined: Jul 2003
Posts: 35
Ameglian cow
|
Ameglian cow
Joined: Jul 2003
Posts: 35 |
In mIRC's help file, type /help /sarcasm
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
couldnt find it, can you explain it?
|
|
|
|
Joined: Jul 2003
Posts: 35
Ameglian cow
|
Ameglian cow
Joined: Jul 2003
Posts: 35 |
* root slaps MTec89 with a large trout
|
|
|
|
Joined: Jul 2003
Posts: 742
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 742 |
comon man, if u know where it goes just tell me!!
|
|
|
|
Joined: Dec 2002
Posts: 2,809
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,809 |
Don't try sarcasm with him, keep in mind he is the guy who when I told him he was an example of "the blind leading the blind" his response was 'if I were blind, how could I be using a computer?'
|
|
|
|
Joined: Jul 2003
Posts: 35
Ameglian cow
|
Ameglian cow
Joined: Jul 2003
Posts: 35 |
Codemastr;Haha, alright then. (unreal owns?) MTec89; Moaning, nudging, pushing and whining will -not- get you what you want.
|
|
|
|
|