mIRC Homepage
Posted By: codeseven Help With an Echo Script - 27/11/06 09:35 PM
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
Posted By: PhantasyX Re: Help With an Echo Script - 30/11/06 03:27 AM
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)"
Posted By: ontext Re: Help With an Echo Script - 11/01/24 05:11 PM
hello, i want same thing but echo to another channel on another netowrk...
© mIRC Discussion Forums