mIRC Home    About    Download    Register    News    Help

Print Thread
#94729 19/08/04 09:22 AM
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
Hi all.
Is it possible to send a score.txt to my website for lets say each hour.
The score.txt contains de score wich is created by playing a trivia game in my room.
This way it should be possible for te players to see who has the first 10 highest score at that moment.

Thanks in advange

Greetz
Aaron


Deridio fatum
#94730 19/08/04 10:09 AM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
i dont think its possible to send a score from irc but you could make a batch file to run it for you
using /run blabla.bat
you could write the batch file as:
copy the following to notepad and save as .bat
@echo off
ftp -n -i -s:trivia_upload.txt
pause

__________________________________________________________________
now Write A Separate File:

trivia_upload.txt
open ip.ip.ip.here
user userhere
conper62
bin
mput "triviascores.txt"
bye

__________________________________________________________
triviascores.txt would be the score file you want to upload
you will have to change the trivia_upload.txt to what you want to upload too
____________________________________________________________

menu menubar {
trivia update
.on { .timer390 1 3600 /run blabla.bat }
.off { .timer390 off }
}

___________________________________________________________
That Should Do it

#94731 19/08/04 07:35 PM
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
Hi whatsthedillio.

i did what you suggested and it works awesome.

Thanxs for the quick reply

Greetz
Aaron


Deridio fatum
#94732 19/08/04 10:52 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Just a little tip on naming timers.
If you use a number as the name, you can no longer use $timer(<name>) to refer to it, for that reason its better to always use at least one non-numeric character in the name or just leave it for mIRC to number if a name isn't needed for later reference.
e.g. .timer.390 1 1 !


Link Copied to Clipboard