mIRC Home    About    Download    Register    News    Help

Print Thread
Announce to another #channel #160052 22/09/06 02:31 AM
Joined: Sep 2006
Posts: 3
B
blicod Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Sep 2006
Posts: 3
Is it possible to announce/post another <user>TEXT to another #channel (almost like copy/paste)

exaple
I have a bot with nickname newsbot that announce news in #news
I want a script to announce all the text newsbot announce to another channel #test

I have read something similar in this forum, regarding releases I think, but there it only announce certain word?


please someone help me with this.

Re: Announce to another #channel #160053 22/09/06 02:57 AM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Use the search page and search for +relay

Re: Announce to another #channel #160054 22/09/06 03:00 AM
Joined: Mar 2004
Posts: 210
F
FNar Offline
Fjord artisan
Offline
Fjord artisan
F
Joined: Mar 2004
Posts: 210
Just use

msg #news blah blah | msg #test blah blah

Re: Announce to another #channel #160055 22/09/06 03:51 AM
Joined: Sep 2003
Posts: 261
S
Scorpwanna Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
amsg is fun too.

Howerver, maybe like

Say your news announcing bot is Jim and the other bot is bubba.

Bubba needs this:
on 1:text:*:#: {
if ($nick == Jim) { msg #channel $1- }
}

Re: Announce to another #channel #160056 22/09/06 01:07 PM
Joined: Sep 2006
Posts: 3
B
blicod Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Sep 2006
Posts: 3
Thank you all;D

#On this code

on 1:text:*:#: {
if ($nick == Jim) { msg #channel $1- }
}

Will this work as a normal user-script in mIRC or are we talking about a sitebot here.

I donīt want a second sitebot, and I am not allowed to edit the first one:(

Will this work like lets say. I am (user/nickname Jim) and sit in 2 channels. The channels are
#NEWS (where the news are announced, under username botuser )
#TEST (where I wanīt the announcment copied to)

I thought it was possible to run a script in mIRC that copy all the text "botuser" announce and ad it in a new channel
Just like copy/paste


Thanks again

Re: Announce to another #channel #160057 22/09/06 03:39 PM
Joined: Sep 2003
Posts: 261
S
Scorpwanna Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Normal user script is exactly what this is. If you are Bubba you would need the "on text" in your remote scripts of mirc
Code:
on 1:text:*:#: {
  if ($nick == Newsbot) { msg #channel $1- }
} 


Which means: on level1"text" "anything that's said" "on #channel1" {
if the "nickname saying the text" "is" "Newsbot", "message #channel2 exactly what Newsbot said in #channel1"
}

Example of how it would go:

#channel1
<Newsbot> This is an example to show how this would work

That on text event would see it and then would make you message #channel2:

#channel2
<yournick> This is an example to show how this would work

smile?


We don't just write the scripts, we put them to the test! (ScriptBusters)
Re: Announce to another #channel #160058 22/09/06 11:10 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Just to make it easier for him...

Code:
on 1:text:*:#news: {
  if ($nick == Newsbot) { msg #test $1- }
} 


(just replaced the # and #channel with what he needs)

Keep in mind, that this relay of information will be sent to #test by YOU and not be Newsbot and it will only relay the text from Newsbot. If you want, you can change msg #test $1- to something like msg #test NEWS: $1- so it's clear that it's relaying the information.


Invision Support
#Invision on irc.irchighway.net
Re: Announce to another #channel #160059 23/09/06 01:42 AM
Joined: Sep 2006
Posts: 3
B
blicod Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Sep 2006
Posts: 3
Thanks to all of ya!

Works Perfectly! laugh