mIRC Home    About    Download    Register    News    Help

Topic Options
#90215 - 12/07/04 03:54 PM Join synced in "" secs
rdiij Offline
Nutrimatic drinks dispenser

Registered: 12/07/04
Posts: 6
Hi

In working on a script here, but i cant seem to find out how you can do a: "Join synced i 1,54 secs" Like u have in irssi

Can somebody help me ?

Top
#90216 - 12/07/04 05:35 PM Re: Join synced in "" secs
Marantz Offline
Vogon poet

Registered: 27/03/03
Posts: 160
Loc: Bournemouth, England
Well this is how i do mine..

Code:
raw *:*: {
  if $numeric == 366 {
    .set %sync $readini data.ini joinsync $2
    joinsync $2
    halt
  }
} 


then somewhere else..
Code:
alias  joinsync  {
  echo $1 --- join  to $1 was synched in  $calc(($ticks - %sync) / 1000) secs!! 
  remini data.ini joinsync $1
}  

Top
#90217 - 12/07/04 05:54 PM Re: Join synced in "" secs
rdiij Offline
Nutrimatic drinks dispenser

Registered: 12/07/04
Posts: 6
thanks for the reply, but the output is this:

18:50:23 --- to #testtstt was synched in 13739.64 secs!!

I think thats just to many secs, dont u ? smile

Top
#90218 - 12/07/04 06:05 PM Re: Join synced in "" secs
Marantz Offline
Vogon poet

Registered: 27/03/03
Posts: 160
Loc: Bournemouth, England
Do excuse me, i'm having a bad day, i forgot to add this bit of code in blush
Code:
on ^1:join:#:{
  if ($nick = $me) {
    set %sync $readini data.ini joinsync #
    if (%sync == $null) { writeini data.ini joinsync # $ticks }
  }
}  


Edited by Marantz (12/07/04 06:07 PM)

Top
#90219 - 12/07/04 06:08 PM Re: Join synced in "" secs
rdiij Offline
Nutrimatic drinks dispenser

Registered: 12/07/04
Posts: 6
well, I have no data.ini in my mirc folder, what does ure include ?

Top
#90220 - 12/07/04 06:09 PM Re: Join synced in "" secs
Coolkill Offline
Hoopy frood

Registered: 09/12/02
Posts: 788
Loc: Wales, United Kingdom.
On me:*:Join:#:{ set $+(%,sync.,$chan) $ticks }

raw 366:*:{
echo 4 $2 * Sync in: $round($calc(($ticks - $eval($+(%,sync.,$2))) / 1000),2) seconds.
unset $+(%,sync.,$2)
}

Might be a little easier, add to remotes and thats it.

Eamonn.

Top
#90221 - 12/07/04 06:14 PM Re: Join synced in "" secs
rdiij Offline
Nutrimatic drinks dispenser

Registered: 12/07/04
Posts: 6
Thanks everybody, both works very well

Top
#90222 - 12/07/04 06:14 PM Re: Join synced in "" secs
Marantz Offline
Vogon poet

Registered: 27/03/03
Posts: 160
Loc: Bournemouth, England
Your code won't work Coolkill, you're %sync has no information
if he adds that last bit of code in my post, it will work.

well it will work, but i mean, it's not a correct syncof the channel.


Edited by Marantz (12/07/04 06:17 PM)

Top
#90223 - 12/07/04 06:16 PM Re: Join synced in "" secs
Coolkill Offline
Hoopy frood

Registered: 09/12/02
Posts: 788
Loc: Wales, United Kingdom.
Quote:

Your code won't work Coolkill, you're %sync has no information


There is no %sync, only %sync.#Channel which is set on join and unset after echoing sync time.

Eamonn.

Top
#90224 - 12/07/04 06:18 PM Re: Join synced in "" secs
Marantz Offline
Vogon poet

Registered: 27/03/03
Posts: 160
Loc: Bournemouth, England
yours * Sync in: 0 seconds.
mine --- Join to #sdagdfs was synched in 0.063 secs!!
The Sync is supposed to come after all the names have been listed
That's how bitchx and irssi work.

Top
#90225 - 12/07/04 06:20 PM Re: Join synced in "" secs
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
His: * Sync in: 0.03 seconds.
_________________________
New username: hixxy

Top
#90226 - 12/07/04 06:23 PM Re: Join synced in "" secs
Coolkill Offline
Hoopy frood

Registered: 09/12/02
Posts: 788
Loc: Wales, United Kingdom.
ty good to know i wasnt dreaming wink

Eamonn.

Top
#90227 - 12/07/04 06:23 PM Re: Join synced in "" secs
rdiij Offline
Nutrimatic drinks dispenser

Registered: 12/07/04
Posts: 6
I get 0 secs with his :-o

Top
#90228 - 12/07/04 07:53 PM Re: Join synced in "" secs
Adrenalin Offline
Fjord artisan

Registered: 18/04/03
Posts: 414
Loc: Moldova
* Sync in: 0.04 seconds. On Small channel
* Sync in: 7.1 seconds. Big Channel
mIRC 6.15, maybe you have a very fast connection? ;o)
_________________________
mIRC Chm Help 6.16.0.3 Full Anchored!

Top
#90229 - 12/07/04 07:56 PM Re: Join synced in "" secs
Marantz Offline
Vogon poet

Registered: 27/03/03
Posts: 160
Loc: Bournemouth, England
I get sync's of about a second in a channel containing roughly 300 users, i only have 1mbit dsl, it's the same if i use bitchx or a similar client. :tongue:

Top