mIRC Home    About    Download    Register    News    Help

Print Thread
#13928 03/03/03 07:55 AM
Joined: Mar 2003
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Mar 2003
Posts: 8
I am trying to download a large file (about 600mb) and I have only been able to find it at this one server on one channel on one Bot, and this bot constantly disconnects and reconnects. It stays on for about 1 min at a time. I've been able to get about 90 megs of the file just by typing in the command every thime that it signs back on(about 40 seconds after it signs off) I was wondering if it would be possible to set up mIRC so that when ever this Bot logged on it would auto send the "/msg XXXX xdcc send #1" and the I have it set up already to auto accept and auto resume. Any ideas anyone?
Thanks for your help in advance. grin

#13929 03/03/03 08:03 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Sounds like a choice that the bot owner would have to make. I am sure that this is scriptable.

#13930 03/03/03 08:05 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You can do something like:
Code:

On !*:join:[color:green]#channel[/color]:{
  if $nick == [color:green]botnick[/color] {
    msg $nick xdcc send #1
  }
}

Replace #channel with the serving channel name, and botnick with the nick of the bot.

#13931 03/03/03 08:07 AM
Joined: Mar 2003
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Mar 2003
Posts: 8
Ok well pretend that I have no Idea about mIRC blush... Where would I put that string? confused

Last edited by Holymegabyte; 03/03/03 08:08 AM.
#13932 03/03/03 08:09 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
In any remote file in your script. Just make sure that the file you put it in doesn't have the same kind of ON JOIN even though.

#13933 03/03/03 08:20 AM
Joined: Mar 2003
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Mar 2003
Posts: 8
Wouldn't that script

On !*:join:#channel:{ if $nick == botnick { msg $nick xdcc send #1 }}

be if I joined a channel and there was that on bot online, then I would send that request?
I am not sure but that's but I get from it.
I am on the channel the whole time and the bot is coming off and on...
I don't know much about programing but from the help file I got put together this, but it wasn't working, and I don't know why.
Code:
 DiS-0445:JOIN:#distribution:/msg DiS-0445 xdcc send #1 

Am I close there?

#13934 03/03/03 08:26 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It's always recommended to put the code in mIRC remote exactly as it's shown here, and not in one line, to avoid syntax errors.

As for the script itself, what I gave you messages the bot - $nick - only when it joins the channel - not when someone else does. the '*' stands for userlevel, which currently is none, so I use *.

type /help on JOIN for more info.

#13935 03/03/03 08:35 AM
Joined: Mar 2003
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Mar 2003
Posts: 8
I've entered the code in exactly as it was shown, and it doesn't seem to be working... is there something that I have to do to "enable" the script? I entered the code that you gave me in under the "remote" tab in the mIRC editor, is that the correct place?

#13936 03/03/03 09:01 AM
Joined: Mar 2003
Posts: 8
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Mar 2003
Posts: 8
smileYeahh smile
It works... I had a little bit of it wrong.

Thanks Online, You are the smartest person alive.


Link Copied to Clipboard