mIRC Home    About    Download    Register    News    Help

Print Thread
#131475 30/09/05 02:40 AM
Joined: Aug 2005
Posts: 25
E
enotsoc Offline OP
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Aug 2005
Posts: 25
how would i go about echo text from a specific name, that is posted across 4 or 5 lines and have it echo to a specific channel as 1 solid sline?
<nick1> hello
<nick1> every
<nick1> body

<echo1> hello every body

#131476 30/09/05 03:17 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
on *:text:*:#channel.1:{
if ($nick == thenickyouaredoingthisto) {

if (%theysaid == $null) {
set %they.said $+(<,thenickyouaredoingthisto,>)
}

inc %textcount

set %they.said %they.said $1-

if (%textcount > 4) {
msg #channel.2 %they.said
set %they.said $+(<,thenickyouaredoingthisto,>)
set %text.count 0
}
}
}
replace #channel.1 and #channel.2 with the actual channel names
replace thenickyouaredoingthisto with the actual nickname

#131477 30/09/05 01:15 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You have %theysaid and %they.said, and %textcount and %text.count (I'm sure those are just typos smile).

How about:

Code:
on *:text:*:[color:red]#yourchannel[/color]:{
  if ($nick == [color:red]thenickyouwant[/color]) {
    set %mergetext %mergetext $1-
  }
  elseif (%mergetext != $null) {
    echo [color:red]#yourotherchannel[/color] &lt;[color:red]thenickyouwant[/color]&gt; %mergetext
    unset %mergetext
  }
}


This will echo all the text from this one person that happens between anyone else's text onto one line.

Example:

<othernick> hi
<trackingnick> hello
<trackingnick> how
<trackingnick> are
<trackingnick> you
<othernick> don't flood
<trackingnick> doing?
<trackingnick> ok.
<othernick> I'm fine

This would echo the following to your other channel:
<trackingnick> hello how are you
<trackingnick> doing? ok.

Note that it will only echo the text once someone else speaks. If you need it to echo sooner, we could set up a timer as a backup. If the channel is fairly active, that won't be needed.

The reason this splits the text whenever someone else speaks is so that you capture lines together for the most part. If you didn't use that as a way to break it up, it would be harder to determine when to echo the text. Usually, if someone is saying a lot all at once (usually from pasting many lines), others end up not speaking in the middle of it. We could use a timer and have it just echo all lines currently said every X seconds, but that's more likely to split lines.

Note that if you meant you want it to MSG the other channel rather than ECHO to it, just replace echo with msg.

Any questions?


Invision Support
#Invision on irc.irchighway.net
#131478 30/09/05 03:32 PM
Joined: Aug 2005
Posts: 25
E
enotsoc Offline OP
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Aug 2005
Posts: 25
ok i tried mikechat's and it worked, but it didnt merge the text, so i then tried , riamus's and i couldnt get it to work at all

and thanks for this help guys

ok ive gotten it, thanx so much
one more thing, is it possible to get it to post to a specific network

Last edited by enotsoc; 30/09/05 04:24 PM.
#131479 30/09/05 05:09 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
sheesh, well it was late.. I did not test it either

#131480 30/09/05 05:12 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yeah, I figured it was just a typo. smile

As for mine not working, it should work just fine... What was it that didn't work?


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard