mIRC Home    About    Download    Register    News    Help

Print Thread
#64363 17/12/03 11:18 PM
Joined: Aug 2003
Posts: 3
O
orkin Offline OP
Self-satisified door
OP Offline
Self-satisified door
O
Joined: Aug 2003
Posts: 3
how do i make it so it says the time before the message only once every minute ie: instead of:
9:44 <km> li
9:44 <kj> spell
9:44 <hk> circle
9:45 <pi> triangle
i want
9:44 <km> li
<kj> spell
<hk> circle
9:45 <pi> triangle

help is very much appreciated in advance

#64364 18/12/03 03:12 AM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
you could have something like:
Code:
on ^*:text:*:#:{
  if (!$hget(timestamp,$+($cid,:,#)).item) { 
    echo -m # $timestamp &lt; $+ $nick $+ &gt; $1-
    hadd -mu60 timestamp $+($cid,:,#)
    halt
  }
  echo -m # &lt; $+ $nick $+ &gt; $1-
  halt
}

that would make a hash table and store the items, they will unset every 60 seconds, then next privmsg after that time is up you will have a timestamp, and it will re add the item to the table. but that will only work if you dont have another script to to modify the default text

#64365 18/12/03 03:19 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
Code:
 
on ^*:text:*:#:{
  if ( $eval($+(%,tstamp.,$cid,.,$chan),2) &lt; $mins($ctime) ) {
    set $+(%,tstamp.,$cid,.,$chan) $mins($ctime)
    timestamp on $chan
  }
  else {
    timestamp off $chan
  }
}

alias mins {
  return $int($calc($1/60))
}

on *:exit: unset %tstamp.*
 


Not tested... but it feels like a good idea...
We should also make one for input,join,part,quit,nick,etc...

Hitchhiker idea is good... but when some1 speaks @ 00:00:30 timestamp is shown after 60s so 00:01:30 is next time the timestamp is updated(to 00:01), so if some1 speaks @ 00:01:09 the timestamp doesn't show 00:01... but my script should solve this problem...


Code:
//if ( khaled isgod ) echo yes | else echo no
#64366 19/12/03 08:32 AM
Joined: Jul 2003
Posts: 14
R
Pikka bird
Offline
Pikka bird
R
Joined: Jul 2003
Posts: 14
i dont understand it theRAT, it shows timestamp is on for #blahs and off for #awda


Best regards,
Ken
#64367 19/12/03 03:53 PM
Joined: Nov 2003
Posts: 227
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 227
just put a dot in front of the timestamp command like:

.timestamp on
.timestamp off

the dot will make mirc not show * Timestamp not on, or what ever it says.


Link Copied to Clipboard