mIRC Homepage
Posted By: MTec89 lag - 07/08/03 03:26 PM
Code:
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
Posted By: LocutusofBorg Re: lag - 07/08/03 05:28 PM
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.
Posted By: MTec89 Re: lag - 07/08/03 05:58 PM
well, i just dont get lagged, thats just it, so i really cant test it
Posted By: KingTomato Re: lag - 07/08/03 08:01 PM
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.
Posted By: MTec89 Re: lag - 07/08/03 08:05 PM
im always below .2xx lag, so i just say i dont lag....point blank
Posted By: root Re: lag - 08/08/03 01:32 PM
.2xx is not 0, thats all they are trying to get through to you..
Posted By: LocutusofBorg Re: lag - 08/08/03 02:05 PM
And as I said - it's pure luck and has NOTHING to do with your cable connection.
Posted By: MTec89 Re: lag - 08/08/03 02:56 PM
ok but why are you people worring about this, i just need a code tested, i dont need corrected about everything i say
Posted By: LocutusofBorg Re: lag - 08/08/03 05:51 PM
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.
Posted By: MTec89 Re: lag - 08/08/03 06:04 PM
a] my lag isnt big enough to test it and b] i dont need corrected, just my code
Posted By: Watchdog Re: lag - 08/08/03 07:28 PM
It is big enough, just add three decimal places to your code and you'll see it more precisely.
Posted By: MTec89 Re: lag - 08/08/03 07:45 PM
where do i add them at?
Posted By: root Re: lag - 08/08/03 10:54 PM
Would you like the code put into a .mrc file, zipped and emailed to you to?
Posted By: MTec89 Re: lag - 08/08/03 11:02 PM
if you want, but all i need is to know where i put that decimal
Posted By: root Re: lag - 08/08/03 11:08 PM
In mIRC's help file, type /help /sarcasm
Posted By: MTec89 Re: lag - 08/08/03 11:10 PM
couldnt find it, can you explain it?
Posted By: root Re: lag - 08/08/03 11:11 PM
* root slaps MTec89 with a large trout
Posted By: MTec89 Re: lag - 08/08/03 11:13 PM
comon man, if u know where it goes just tell me!!
Posted By: codemastr Re: lag - 08/08/03 11:24 PM
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?'
Posted By: root Re: lag - 08/08/03 11:27 PM
Codemastr;Haha, alright then. (unreal owns?)
MTec89; Moaning, nudging, pushing and whining will -not- get you what you want.
Posted By: MTec89 Re: lag - 08/08/03 11:31 PM
im just trying to get the last thing in my script done, and i cant seem to figure out why its not working

root; we dont use unreal... ;p
© mIRC Discussion Forums