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-13-2004, 05:19 PM   #1
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default [REQ] Compare script...

just saw a cool script for glftpd... is there anyone who are willing to fix a simulair for ioftpd?

goes like this:

Code:
!compare user1 user2
[COMPARE] site presents: user1 vs user2!
[COMPARE] Round 1 - UL/DL Ratio: [ 0.19 ] vs [ 0.40 ] - 1 point to user2
[COMPARE] Round 2 - UL/DAY: [ 259.67MB for 378 days ] vs [ 127.59MB for 235 days ] - 1 point to user1
[COMPARE] Round 3 - MnUp: [ 0MB @ #N/A ] vs [ 364MB @ #67 ] - 1 point to user2
[COMPARE] Round 4 - WkUp: [ 0MB @ #N/A ] vs [ 299MB @ #31 ] - 1 point to user2
[COMPARE] Round 5 - NUKES: [ 26N ] vs [ 11N ] - 1 point to user2
[COMPARE] The winner is user2 by 4 to 1!
rAWfOX is offline   Reply With Quote
Old 01-15-2004, 11:23 AM   #2
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

is it hard to port it from glftpd to ioftpd? and is there anyone who is willing to do so then?
rAWfOX is offline   Reply With Quote
Old 01-16-2004, 01:47 PM   #3
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

I'll probably make some itcl thingy soon.
Mouton is offline   Reply With Quote
Old 01-16-2004, 06:19 PM   #4
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

awsome Mouton... looking forward to it...
rAWfOX is offline   Reply With Quote
Old 01-16-2004, 06:24 PM   #5
hot_pit
Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 78
Default

that would be nice
hot_pit is offline   Reply With Quote
Old 01-17-2004, 10:34 AM   #6
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

site compare Mouton racer
200-TestGB presents: Mouton vs racer!
200-Round 1 - UL/DL Ratio: [ 1.55 ] vs [ 418.0 ] - 1 point to racer
200-Round 2 - AllUp: [ 3.06GB @ #34 ] vs [ 35.00GB @ #2 ] - 1 point to racer
200-Round 3 - MonthUp: [ 1.00MB @ #1 ] vs [ 0.00MB ] - 1 point to Mouton
200-Round 4 - WkUp: [ 0.00MB ] vs [ 0.00MB ] - tie: no point
200-The winner is racer by 2 to 1!

nukes and user age aren't really that easy to fetch...
especially with multiple scripts avail...
ranks are computed using ioBanana.exe, u can disable that if u want, or just get ioB for that. no need to really install it.

any suggestions on what else i might compare ?
Mouton is offline   Reply With Quote
Old 01-17-2004, 11:15 AM   #7
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

Cool. I cant think of anything else to compare right now.
Great work as usually...
rAWfOX is offline   Reply With Quote
Old 01-17-2004, 11:58 AM   #8
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

there.

# version 0 (untested)
# Syntax: site compare user1 user2

## Config

set sitename "TestGB" ;# Site name
set sections "0 4" ;# Space-separated list of all section numbers you want to check
set check_ranks true ;# true or false
set ioBanana "d:/ioFTPD/scripts/ioBanana.exe" ;# Leave empty if u disable check_ranks

### config ends here
####################
Mouton is offline   Reply With Quote
Old 01-17-2004, 12:02 PM   #9
MaistroX
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Jul 2002
Posts: 221
Question

Thi is a "dayly" output for an announce on a "place", looks REALLY cool to me, anything that can be impletemted to that or made seperatly ?


->

ex:
"
At the end of this Wednesday here at "Da Place", we had:
928 Logins. Of those, 706 logged out and 222 timed out.
5 users were nuked and 4 dirs were deleted.
MaistroX LOVES the *****! Got nuked 3 times.
Total New dirs: 134 - 0DAYS: 125 <-> PDA: 1 <-> SVCD: 2 <-> DIVX: 0 <-> VCD: 0 <-> ISO-UTILS: 4 <-> XBOX: 0
Most Prees were made by "Da Best" with 8 fine releases.
Total Pred : 16 - 0DAYS: 3 <-> SVCD: 8 <-> DIVX: 5 <-> UTILS: 0
Best uploaders were:
01 MaistroX 143F 1927MB 267KBs
02 he 86F 1164MB 688KBs
03 She 59F 841MB 605KBs
04 Who 58F 818MB 258KBs
05 You 300F 680MB 284KBs
Sadly, we also had some leechers:
01 Them 180F 7872MB 402KBs
02 US 1,811F 6066MB 305KBs
03 School 283F 3925MB 316KBs
04 Scooby_Doo 278F 3707MB 388KBs
05 A_Cold_Pizza 231F 3091MB 419KBs
"

cool, thats what I think


Ps. "maby" not what was asked but anyway .
MaistroX is offline   Reply With Quote
Old 01-17-2004, 12:14 PM   #10
freak007
Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 69
Default

Thx Mouton !!!


But seems it does not get Ratio correct:

200-Round 1 - UL/DL Ratio: [ 0.00421 ] vs [ 0.614 ]


Both users have leech

Could you fix it ?

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

thats allup/alldn, not credits ratio!
Mouton is offline   Reply With Quote
Old 01-17-2004, 02:55 PM   #12
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

how do i get it to work with !site compare user1 user2 in #channel?

tried to fix it by my self but i need to learn more of scripting
rAWfOX is offline   Reply With Quote
Old 01-17-2004, 05:54 PM   #13
Razor
Member
 
Join Date: Mar 2003
Posts: 75
Default

add these 2 lines in iobanana.tcl



bind pub - [set ioss(cmdpre)]compare comparealias

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


make sure you put them in the right place, the bind up line with all the other bind pubs, and the proc line with all the other lines (halfway the file +/-) which look exactly like it..

cmd in chan will be -> !compare <user1> <user2>

enjoy

Code:
[ 23:48:17 ] _[ @Razor- ] !compare Razor test
[ 23:48:18 ] _[ @|**| ] Lost Empire presents: Razor vs test!
[ 23:48:18 ] _[ @|**| ] Round 1 - UL/DL Ratio: [ iNF ] vs [ 0.597 ] - 1 point to Razor
[ 23:48:18 ] _[ @|**| ] Round 2 - AllUp: [ 3.1GB @ #1 ] vs [ 1010.0MB @ #5 ] - 1 point to Razor
[ 23:48:18 ] _[ @|**| ] Round 3 - MonthUp: [ 3.1GB @ #1 ] vs [ 1010.0MB @ #5 ] - 1 point to Razor
[ 23:48:19 ] _[ @|**| ] Round 4 - WkUp: [ 3.1GB @ #1 ] vs [ 1010.0MB @ #5 ] - 1 point to Razor
[ 23:48:21 ] _[ @|**| ] The winner is Razor by 4 to 0!
Razor is offline   Reply With Quote
Old 01-17-2004, 06:19 PM   #14
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

aaah.. thanx alot....
rAWfOX is offline   Reply With Quote
Old 01-17-2004, 08:01 PM   #15
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

done @ comparev1_5.tcl

requires: ioA (tho not essential). an eggdrop with access to userfiles (on the ftpd box basically).

does:
Code:
[00:25:46] [badaas] !compare user01 FystM
[00:25:46] [|Hi-F|] site presents user01 vs FystM
[00:25:47] [|Hi-F|] Round 1 - UL/DL Ratio: [ 68.67 ] vs [ 581.01 ] - 1 point to FystM
[00:25:48] [|Hi-F|] Round 2 - UL/DAY: [ 15.87gB for 61 days ] vs [ 24.41gB for 58 days ] - 1 point to FystM
[00:25:49] [|Hi-F|] Round 3 - MnUp: [ 15.87gB @ #2781 ] vs [ 24.41gB @ #2253 ] - 1 point to FystM
[00:25:51] [|Hi-F|] Round 4 - WkUp: [ 127kB @ #8 ] vs [ 0kB @ #N/A ] - 1 point to user01
[00:25:53] [|Hi-F|] Round 5 - NUKES: [ 0N ] vs [ 1N ] - 1 point to user01
[00:25:55] [|Hi-F|] The winner is FystM by 3 to 2!
todo: done
b>d>>s is offline   Reply With Quote
Reply

Tags
point, round, user1, user2, [compare]

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
support mhdrw_00 General Discussion 1 02-11-2005 05:33 PM
Mybe a major bug Romad20 Bug Reports 1 01-29-2003 01:10 AM


All times are GMT -5. The time now is 10:00 PM.

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