Sponsored Links




Topic Options
Rate This Topic
#7 - 08/01/06 12:57 AM Wyldtime Script
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 470
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


Recent Posts
Rules for Voiced (+v) users in #Chris
by Axlin
11/20/08 05:36 PM
WyldRyde Channel Management Script **BETA**
by usrbingeek
11/19/08 12:35 AM
Saying Hello
by cirian75
11/18/08 02:13 PM
Multiple Network question
by usrbingeek
11/16/08 10:00 PM
Recruiting new ops and half ops in #iPhone
by techman224
11/14/08 07:09 PM
Common Commands Script
by burace17
11/14/08 02:55 PM
Rules for Voiced Users being Enforced More
by abcd
11/14/08 08:33 AM
New bot policy
by Freekie
11/11/08 10:11 PM
my favorite channels on WR
by sbushfan11
11/10/08 05:42 AM
Volunteer Half-Op Positions Available In My New Ch
by mikem
11/08/08 03:16 PM
Script Bots. Need One?
by Samuel
11/07/08 10:10 PM
Services Help Version 2.4
by Jerry
11/06/08 09:41 PM
Recent Pics
mIRC on Linux???
Computer Spam o_O
My Windows Desktop
Who's Online
3 registered (Alicia, Jeff, thejetset), 9 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 470
Kat 266
iPhone 108
Phil 91
Freekie 85
techman224 75
CCMike 73
Justin 70
tengrrl 55
wirelesspacket 52
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.