mIRC Home    About    Download    Register    News    Help

Print Thread
#60787 17/11/03 04:02 PM
Joined: Jul 2003
Posts: 5
L
loaf Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Jul 2003
Posts: 5
how easy (if even possible) would it be to script something that intercepted text going to the chat windows, and to make it so if someone says something twice in a row, instead of reprinting out their name, just appends the text as a newline below their current line

#60788 17/11/03 04:33 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on ^*:TEXT:*:#: {
if (%lastmsg. [ $+ [ $nick ] ] != $1-) {
/set -u5 %lastmsg. [ $+ [ $nick ] ] $1-
/echo -ti2 $chan $str($chr(160), 5) $1-
/haltdef
}
}

That will ammend it onto the line if the last thing they said matches the current thing..and they said the repeat within 5 seconds of the last msg. If another user, however,talks in between their repeats, you'll get something like:

Code:
<KingTomato> My repeated message!
<loaf> Hello
     My repeated message!


So "buyer beware". if you want more help, try /help Halting Default text

>:D


-KingTomato
#60789 17/11/03 11:37 PM
Joined: Jul 2003
Posts: 5
L
loaf Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Jul 2003
Posts: 5
awesome! thanks a lot man.

#60790 18/11/03 12:54 AM
Joined: Nov 2003
Posts: 1
M
Mostly harmless
Offline
Mostly harmless
M
Joined: Nov 2003
Posts: 1
Actually, my friend posted that question for me, as I was unaware of this board. What I told him to type, though, was slightly misleading. Here's what I want:

instead of:

<molesquirrel> how are you?
<loaf> i'm good
<loaf> just ate lunch
<molesquirrel> ah, good deal
<loaf> yup

I would want loaf's second message, and any others that follow his (until another user interrupts his 'message stream' to be displayed without the username, like this:

<molesquirrel> how are you?
<loaf> i'm good
just ate lunch
<molesquirrel> ah, good deal
<loaf> yup

Thanks in advance smile

#60791 18/11/03 01:29 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On ^*:text:*:#:{
;
; Change 1 to 2 if you're using timestamp
;
if $+(<,$nick,>) isin $gettok($line(#,$line(#,0)),1,32) {
echo -mti2 # $+($chr(3),$color(back),<,$nick,>,$chr(15)) $1-
haltdef
}
}


Link Copied to Clipboard