mIRC Home    About    Download    Register    News    Help

Print Thread
#165565 27/11/06 09:35 PM
Joined: Nov 2006
Posts: 5
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Nov 2006
Posts: 5
First off I feel that I should say that I am completely new to using scripts.

Ok, what I would like to have done is simply echo the text from one channel to another. I am currently in a PRE channel and would like to echo the releases to another channel. I had one script, but it would echo everything being said, even from the users using commands such as !pre and !dupe.

Here is an example of what the announce looks like:
Quote:

<BOTNAME> \\hV-PRE// - ||The Last Days Of The Nazis Part 1 WS PDTV XviD hV|| - \\TV//
<BOTNAME> \\RiVER-PRE// - ||Fifth Gear S10E10 WS PDTV XviD RiVER|| - \\TV//
<BOTNAME> \\Scratch-PRE// - ||AMC Lost Souls MENADL84 WEB 2006 Scratch|| - \\MP3//
<BOTNAME> \\hV-PRE// - ||The Last Days Of The Nazis Part 2 WS PDTV XviD hV|| - \\TV//


And an example of what some nukes/unnukes look like:
Quote:

<BOTNAME> \\NUKED// - ||Erotic.Blue.GERMAN.2006.COMPLETE.DOCU.PAL.DVDR-ZZG|| - \\Reason: late.pretime_no.race//
<BOTNAME> \\UNNUKED// - ||Erotic.Blue.GERMAN.2006.COMPLETE.DOCU.PAL.DVDR-ZZG|| - \\Reason: merry.x.mas//
<BOTNAME> \\NUKED// - ||Erotic.Blue.GERMAN.2006.COMPLETE.DOCU.PAL.DVDR-ZZG|| - \\Reason: 0day.rules.say.the.grace.period.is.3.days_v4.0.only.came.out.today_mu.CzW.2006-06-11//


Basically I want to echo whatever "BOTNAME" says in the original channel, to another channel. However, some users in the original channel may use !dupe/!pre commands which makes the BOTNAME announce things that I don't want announced. How can I exclude what the bot says to only the releases/nukes - not anything that is a response to what a user said in the original channel.

Any help would be very much appreciated smile

Joined: Apr 2004
Posts: 218
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
I believe this can be scripted easily with the "on TEXT" event.


From what I have been show, when a user uses !pre or !dupe, the messages start out with "pre" in the first word in the sentence.
We can use this to our advantage to filter the messages.

-------------
Example:
Code:
on *:TEXT:*:#Channel:{
 if ($nick == BOTNAME) &amp;&amp; (*pre* !iswm $1) {
  echo #OtherChan $+(&lt;,$nick,&gt;) $1-
 }
}

--------------

If you want to use messages from multiple bots instead of one specific bot, most bots have a preffix. Ex:
"if (PREFIX* iswm $nick)" instead of the "if ($nick == BOTNAME)"


Live to Dream & Dream for Life
Joined: Aug 2023
Posts: 6
O
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
O
Joined: Aug 2023
Posts: 6
hello, i want same thing but echo to another channel on another netowrk...


Link Copied to Clipboard