mIRC Home    About    Download    Register    News    Help

Print Thread
#90215 12/07/04 02:54 PM
Joined: Jul 2004
Posts: 6
R
rdiij Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2004
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 ?

#90216 12/07/04 04:35 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
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
}  

#90217 12/07/04 04:54 PM
Joined: Jul 2004
Posts: 6
R
rdiij Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2004
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

#90218 12/07/04 05:05 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
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 }
  }
}  

Last edited by Marantz; 12/07/04 05:07 PM.
#90219 12/07/04 05:08 PM
Joined: Jul 2004
Posts: 6
R
rdiij Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2004
Posts: 6
well, I have no data.ini in my mirc folder, what does ure include ?

#90220 12/07/04 05:09 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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.

#90221 12/07/04 05:14 PM
Joined: Jul 2004
Posts: 6
R
rdiij Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2004
Posts: 6
Thanks everybody, both works very well

#90222 12/07/04 05:14 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
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.

Last edited by Marantz; 12/07/04 05:17 PM.
#90223 12/07/04 05:16 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
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.

#90224 12/07/04 05:18 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
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.

#90225 12/07/04 05:20 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
His: * Sync in: 0.03 seconds.


New username: hixxy
#90226 12/07/04 05:23 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
ty good to know i wasnt dreaming wink

Eamonn.

#90227 12/07/04 05:23 PM
Joined: Jul 2004
Posts: 6
R
rdiij Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2004
Posts: 6
I get 0 secs with his :-o

#90228 12/07/04 06:53 PM
Joined: Apr 2003
Posts: 414
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
* 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!
#90229 12/07/04 06:56 PM
Joined: Mar 2003
Posts: 160
Vogon poet
Offline
Vogon poet
Joined: Mar 2003
Posts: 160
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:


Link Copied to Clipboard