mIRC Home    About    Download    Register    News    Help

Print Thread
XDCC auto resume? #7532 20/01/03 03:52 PM
Joined: Jan 2003
Posts: 3
M
mazza2002 Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Jan 2003
Posts: 3
Hi all

I need a script to auto resume a started download.
I work away for 2 or more weeks at a time and usualy que up a load of downloads for the next time i am back.

As you can imagine most of the biggish ones fail. This is annoying as half the time I cannot find the same file again etc.

Does a script exist to enable me to auto resume?
if my download fails before completion the script pops me back into the cue with the same bot to resume the download.

This would realy make my day, thanks all.

Re: XDCC auto resume? #7533 20/01/03 04:12 PM
Joined: Dec 2002
Posts: 395
M
MonoSex Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Quote:
This is annoying as half the time I cannot find the same file again etc.


Ofcourse it is, it's becouse mIRC is a CHAT client, not file sharing tool wink
You can go to this page and search for scripts.
Or better, use p2p program such as Kazaa wink

Re: XDCC auto resume? #7534 20/01/03 04:17 PM
Joined: Jan 2003
Posts: 3
M
mazza2002 Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Jan 2003
Posts: 3
Thanks for your reply

Mirc is primarily a chat proggy but you can not find the wealth of files that reside on mirc fileshares and xdcc bots on Kazza.

I have been looking at some script pages but the descriptions are vague for most. Was wondering if anyone knew if this was possible and if so knew the name/location of a script for the job.

any takers?

Re: XDCC auto resume? #7535 20/01/03 05:03 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Since mIRC allows file transferring, and the rest is under the user's responsibility, and since I know the answer as one asked me for such a script in the past, I think it wouldn't be so bad to post it.

To make a XDCC request, you send:

/msg botnick XDCC Send #N

Now, all we need to do is creating a custom /msg alias, which stores the requests, and if a download stops, we'll know which pack number has to be requested again.

Note that it wouldn't work if you have a few files queued. It saves only the last request.

Code:
alias msg {
  msg $1-
  if $2-3 == XDCC Send {
    ;
    ; The hash table 'xdcc' will look like:
    ;
    ; Item     value
    ; <nick>   <pack>
    ;
    hadd -m xdcc $1 $4
  }
}

On *:getfail:*:{
  if $hget(xdcc,$nick) {
    !msg $nick xdcc send $ifmatch
  }
}

This script will send request every time the send stops. if you want to retry only 1 time, add hdel xdcc $nick under the msg $nick xdcc send $ifmatch line.

Re: XDCC auto resume? #7536 20/01/03 05:54 PM
Joined: Dec 2002
Posts: 77
B
BlackAle Offline
Babel fish
Offline
Babel fish
B
Joined: Dec 2002
Posts: 77
You might like to try my script dccAssist it handles resumes and local queueing for xdcc packs, together with a pack catcher and many other facilities.

Thanks Guys! #7537 21/01/03 09:21 AM
Joined: Jan 2003
Posts: 3
M
mazza2002 Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Jan 2003
Posts: 3
Thanks guys

anyone recommend me a good resource for learning how to script for mirc myself? Could do with a basic overview of what is possible then a syntax guide. Im a programmer by profession so it should not be to difficult to pick up the basics.

Thanks again.
Mazza

Re: Thanks Guys! #7538 21/01/03 03:03 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
I'd recommend you to start with pairc.com, but unfortunately it's been down... too bad.

Helpdesk's website has a few well-explained tutorials, which covers most of the scripting aspects, plus links to other guides.

After you get the basics, check mircscripts.org's tutorial archive.

Good luck