Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-18-2004, 11:23 AM   #1
freak007
Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 69
Default [Filled] Stats Script

does somebody could be able to script something like that for irc:
[/QUOTE]
Quote:
[STATS] - freak007 started 9 races @ from this 9 races he have won 6 races

or something like that (if someone has a pretimedb) :

[STATS] - freak007 started 9 races @ average 25mins 23secs after pre
[STATS] - within limits: 8 @ average 20mins 29secs after pre, backfills: 1 @ average 4mins 37secs over limits
Thx for help

Cya Freak007
freak007 is offline   Reply With Quote
Old 01-18-2004, 05:37 PM   #2
phoenixfr
Senior Member
 
Join Date: Nov 2001
Posts: 149
Default

i bet only harm could do this with iobanana
cause it is the only pretime script around
phoenixfr is offline   Reply With Quote
Old 01-18-2004, 06:15 PM   #3
freak007
Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 69
Default

and maybe without pretime script ?

only started races and won races stats script ?

Cya Freak007
freak007 is offline   Reply With Quote
Old 01-19-2004, 01:31 PM   #4
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

[13:24:55] [L] 200-someguy started 0 race(s) - raced 2 release(s) - avg. position: #2 - 1 races won
[13:24:55] [L] 200-me started 1 race(s) - raced 2 release(s) - avg. position: #3 - 1 races won
[13:24:55] [L] 200-you started 0 races
[13:24:55] [L] 200-girly started 3 race(s) - raced 25 release(s) - avg. position: #2 - 7 races won
[13:24:55] [L] 200-MrCat started 0 race(s) - raced 1 release(s) - avg. position: #5 - 0 races won

Getting there...
Mouton is offline   Reply With Quote
Old 01-19-2004, 01:51 PM   #5
freak007
Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 69
Default

Yeah Mouton something like that do you allready code that ?

Would be cool if you do so !!!

Thx Freak007
freak007 is offline   Reply With Quote
Old 01-19-2004, 10:51 PM   #6
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Done. ioSFV (hey _tuff! ) v1
Need ioBanana as zipscript to work.
Little mod would be needed to handle other zipscripts, but i won't do it
Feel free to and post result.

Code:
[22:50:02] [L] site ustats someguy
[22:50:04] [L] 200-== [someguy] Races Stats ==========================
[22:50:04] [L] 200-Started:        11 races
[22:50:04] [L] 200-Pretime:        0 hours 7 mins after pre (avg.)
[22:50:04] [L] 200-Completed:      43 races
[22:50:04] [L] 200-Racer Position: #3 (avg.)
[22:50:04] [L] 200-Races Won:      10
[22:50:04] [L] 200-==================================================
[22:50:04] [L] 200 Command successful.
SITE USTATS all
will give all stats for all users on site
Takes about 5 secs to parse a 7MB ioFTPD.log file i tested on.

http://www.ioftpd.com/scripts/script.php?id=46
Mouton is offline   Reply With Quote
Old 01-20-2004, 09:25 AM   #7
Razor
Member
 
Join Date: Mar 2003
Posts: 75
Default

any chance the archived / splitted logs by ioBanana can get convered back to 1 big?



else this script wont work

or maybe let the script search trough all the ioftpd.logs :P

Razor is offline   Reply With Quote
Old 01-20-2004, 09:52 AM   #8
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Works well enough for me.
You're free to make any modifications to it u might want so it works well for u too.
Mouton is offline   Reply With Quote
Old 01-20-2004, 12:43 PM   #9
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

anyone who knows what to add in iobanana.tcl to get this to announce in channel?
rAWfOX is offline   Reply With Quote
Old 01-21-2004, 11:08 AM   #10
Razor
Member
 
Join Date: Mar 2003
Posts: 75
Default

add this to iobanana.tcl
Code:
bind pub - [set ioss(cmdpre)]ustats ustatsalias

proc comparealias {nick uhost hand chan args} { ioBanana $nick $chan "ustats [lindex $args 0]" }

works for me..
Razor is offline   Reply With Quote
Old 01-21-2004, 11:26 AM   #11
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

Quote:
Originally posted by Razor
add this to iobanana.tcl
Code:
bind pub - [set ioss(cmdpre)]ustats ustatsalias

proc comparealias {nick uhost hand chan args} { ioBanana $nick $chan "ustats [lindex $args 0]" }

works for me..
Code:
bind pub - [set ioss(cmdpre)]ustats ustatsalias

proc ustatsalias {nick uhost hand chan args} { ioBanana $nick $chan "ustats [lindex $args 0]" }

works better
rAWfOX is offline   Reply With Quote
Old 01-21-2004, 01:18 PM   #12
freak007
Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 69
Default

is someone able to modify moutons script to work with newdir and iozs !

Thx for help

Greets freak007
freak007 is offline   Reply With Quote
Old 01-21-2004, 04:30 PM   #13
Razor
Member
 
Join Date: Mar 2003
Posts: 75
Default

ah sorry rAWfOX

indeed :P

freak007: Not That Hard, just look what ioZs logs in ioFTPD.log.. and compare with what ioB logs. Then change it in the .itcl :-)
Razor is offline   Reply With Quote
Old 04-06-2004, 03:41 PM   #14
peterchen
Member
 
Join Date: Mar 2004
Posts: 33
Default

really nice thing but i allways get an error message:

site ustats all
550 Command failed.

o_O


i added ustats = TCL ..\scripts\ioSFV.itcl into ioFTPD.ini and put this file into the scripts dir but it doesnt work ;(

please help
mfg
peterchen is offline   Reply With Quote
Old 04-06-2004, 04:53 PM   #15
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

(haha.. each time i see my file name, i find it funny!)

see ioFTPD\logs\SystemError.log
Mouton is offline   Reply With Quote
Reply

Tags
average, freak007, limits, races, [stats]

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:50 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)