mIRC Home    About    Download    Register    News    Help

Print Thread
#128665 28/08/05 04:06 AM
A
AdamG
AdamG
A
Im looking for some help with another relay script, say somebody types "!search bla bla file" in a channel,

I want mirc to type "!search bla bla file" into another channel then the results that output "bla bla file" from a bot i want to echo back to the original channel so, im being used as a kind of gateway.

Also if the characters - and . could be filtered out that would be great smile

#128666 28/08/05 04:18 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
Im looking for some help with another relay script, say somebody types "!search bla bla file" in a channel,

I want mirc to type "!search bla bla file" into another channel then the results that output "bla bla file" from a bot i want to echo back to the original channel so, im being used as a kind of gateway.

Also if the characters - and . could be filtered out that would be great smile


dude you gotta stop with the relay's just read other post you ask the same question like twice so far , we are here to help but if you know how to do this scripting by now i suggest to use /help

this is no different then other help you been getting on other relays + by doing this it can result you getting banned in a channel for "spying"

as long on same channel...

Code:
on *:TEXT:*:#channel1: {
if ($1 == !search) { msg #channel2 !Search $2-
halt
}

#128667 28/08/05 05:42 AM
A
AdamG
AdamG
A
Thanks, Im a serious noob at scripting, Im not using it to spy at all, but it seems to have 1/2 worked,

it relayed the !search and then it come back with the following,

:: UPLOAD TiME :: | 28.08.05 05:59:49 | blabla.file | 1 hour 37 minutes 11 seconds [2F/151MB] |

and then never never echod it back, please help,

Thx in advance

#128668 28/08/05 05:57 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
Thanks, Im a serious noob at scripting, Im not using it to spy at all, but it seems to have 1/2 worked,

it relayed the !search and then it come back with the following,

:: UPLOAD TiME :: | 28.08.05 05:59:49 | blabla.file | 1 hour 37 minutes 11 seconds [2F/151MB] |

and then never never echod it back, please help,

Thx in advance


Thats not clear im not 100% what your asking more describe it a little bit more for further assistance.

#128669 28/08/05 02:19 PM
A
AdamG
AdamG
A
OK, 1st channel someone types say !search file.mp3, then I want mirc to redirect that to a channel which the script will do so far, then the results come back from a bot like this,

:: UPLOADTiME :: | 16.08.05 23:28:05 | file.mp3 | 1 week 4 days 16 hours 48 minutes 11 seconds |

I want that text to be redirected back to the original channel, if this can be done.

#128670 28/08/05 08:29 PM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Just change where the bot outputs the information.

eg: change .msg $chan to .msg #chan2

#128671 29/08/05 03:42 AM
A
AdamG
AdamG
A
Doesnt seem to fully work, it redirects the !search the appropriate channel but doesnt return the results back to the original channel,

Please help,

Regards

#128672 29/08/05 04:56 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Post the code that's displaying
Quote:
:: UPLOAD TiME :: | 28.08.05 05:59:49 | blabla.file | 1 hour 37 minutes 11 seconds [2F/151MB] |
and I'll edit it to give you an idea as to what you need to do.

#128673 29/08/05 05:03 AM
A
AdamG
AdamG
A
I dont controll the bot that searches for when the files where uploaded, but the code I was using was, as follows

on *:TEXT:*:#ORIGCHAN: {
if ($1 == !search) { msg #SEARCHCHAN !search $2-
halt
}

#128674 29/08/05 10:14 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Quote:
I dont controll the bot that searches for when the files where uploaded, but the code I was using was, as follows

on *:TEXT:*:#ORIGCHAN: {
if ($1 == !search) { msg #SEARCHCHAN !search $2-
halt
}


yeah leave that part and put another script for other channel

on *:TEXT:*:#SEARCHCAHN: {
if (Upload time isin $1-) { msg #ORIGCHAN $1- }
}

#128675 29/08/05 12:19 PM
A
AdamG
AdamG
A
There seems to be a problem with that if omeone else does a !search in the search channel it ends up sending that back to my channel as well,

Best Regards

#128676 29/08/05 03:33 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
How would we or mIRC know when a messages someone types is a reply to you or not? Ask the one giving those replies to you to include your nickname and search parameter in a specific place, then you can look for that in the reply and decide if it's for you or not.

#128677 29/08/05 10:29 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Please read the /help file included in mirc its your bible smile but working with variables for awhile by doing this will work! but often conflict if !search *.mp3 is returned from another user besides you.. just insert these 2 scripts in mirc

on *:TEXT:*:#ORIGCHAN: {
if ($1 == !search) { msg #SEARCHCHAN !search $2- | %upload.time = Upload time
}
on *:TEXT:*:#SEARCHCAHN: {
if (%upload.time isin $1-) { msg #ORIGCHAN $1- | unset %upload.time }
}

what this does is set a variable from a user from original chan types !search *.mp3

and then takes this variable and checks if the variable is in the text said on searchchan wihch most likely is still set because ORIGCHAN requested the !search not #searchchan so anyhoo... as soon has it gives u your results it will unset %upload.time therefore at this time if someone else in #searchchan types !search *.mp3 sure it returns blah blah upload time blah blah however since !search was not said in original chan theres no variables

Learn to touch and love variables dont be afraid to use em type /help variables
in mirc to learn more.


Link Copied to Clipboard