• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#7 - 08/01/06 12:57 AM Wyldtime Script
usrbingeek Offline

WyldRyde Staff

Registered: 07/31/06
Posts: 646
Loc: Burlington, VT
Originally posted by Helio:

This was originally designed to be part of a script to optimize network access and find delays, without annoying ctcp pings. Unfortunately, the time command is not precise enough for that purpose. Maybe later I'll add a ping/pong version, and find a workaround to give accurate lag times.

Now, it is merely a better way to view the time info on all /mappable servers on ANY network (not just WyldRyde)

Code:
alias wyldtime {
  .set %time_get on
  .map
}
raw 391:*:{
  ; Display time info in "pretty" form
  ; :P
  ; all numbers in this secton that are alone, like the 2 2 2 2 2, are meant 
  ; to be proceeded by the <CTRL-K> code (phpbb does not like that 
  ; character, apparently )
  echo -s 3 * Time for $+ 4 $+($2,:) 
  echo -s 99 99 ---- 2 $+ $remove($3,:) $4 $5 $6 
  echo -s 99 99 ---- 2 $+ Time: 2 2 2 2 2 2 2 2 2 2 2 2 $8
  echo -s 99 99 ---- 2 $+ CET (GMT -1): 2 2 2 $9 
  .haltdef 
}
raw 006:*:{
  if (%time_get == on) {
     ; Checked time mode, now load to hash table

     ;
    .set %server $remove($remove($remove($remove($2,:),|),`),-)
    .set %users $remove($remove($3,$chr(40)),$chr(41))
    .set %numeric $4
    .hadd -m server %server users $+ : $+ %numeric
    haltdef
  }
}
raw 007:*:{ 
  if (%time_get == on) {
     ; Checked time mode, now volley time commands
     ;
    /TIME_THROW
    haltdef
  }
}
alias TIME_THROW {
  .set %counter 1
  echo 3 -s Timestamp info for 4 $+ $network $+ :
  .while (%counter <= $hget(server, 0).item) {
    .quote time $hget(server, %counter).item
    inc %counter
  }
  unset %time_get
  hfree server
}


If this script doesn't work, please reply and let me know. I've tested it as a regular user on 3 nets, and it seems to work fine.

note: the "CET" line is what I believe what GMT -1 is called, but I may be mistaken

Script requires mIRC 6.14 or later (Nothing I know of really prevents it from working on 6.*, but I haven't tested it on those vers)

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top


Moderator:  Jeff, mandy, usrbingeek