mIRC Home    About    Download    Register    News    Help

Print Thread
#15656 16/03/03 06:48 PM
Joined: Dec 2002
Posts: 68
P
Babel fish
OP Offline
Babel fish
P
Joined: Dec 2002
Posts: 68
I have this script from Hammer:

Code:
alias _doupt { sockopen u.version fire.speedis.org 80 }
on *:START:{ _doupd }
on *:SOCKOPEN:u.version:{ sockwrite -n $sockname GET version.txt }
on *:SOCKREAD:u.version:{
  var %version
  sockread %version
  tokenize 32 %version
  if ($1 > %ud.version) { download do.upd $2 $mircdir }
  sockclose $sockname
}


%ud.version 2.0

Version.Txt
2.2 ]http://fire.speedis.org/rscape2.0.zip


The actual /download command works fine if I just use it myself. Please help.

#15657 16/03/03 09:14 PM
Joined: Dec 2002
Posts: 271
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
I Posted a Reply To A Similar Topic Not Long Ago, And Made An Example Script To Show How You can "Download" / "Update" A File, i suggest you read it, as your socket there has a few little problems....for example, your going to close the socket on the first read, no matter if you got what you wanted or not, thats just how you have it written, second, /download isnt a command, so for anyone to help you, we would need to know what /download does.... For now... here is the link to the example i posted a week ago or so, to knappen i beleive!!!

Click Here!!!


Link Copied to Clipboard