View Full Version : [Filled] Compare script...
rAWfOX
01-13-2004, 05:19 PM
just saw a cool script for glftpd... is there anyone who are willing to fix a simulair for ioftpd?
goes like this:
!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
01-15-2004, 11:23 AM
is it hard to port it from glftpd to ioftpd? and is there anyone who is willing to do so then?
Mouton
01-16-2004, 01:47 PM
I'll probably make some itcl thingy soon.
rAWfOX
01-16-2004, 06:19 PM
awsome Mouton... looking forward to it...
hot_pit
01-16-2004, 06:24 PM
that would be nice ;)
Mouton
01-17-2004, 10:34 AM
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 ?
rAWfOX
01-17-2004, 11:15 AM
Cool. I cant think of anything else to compare right now.
Great work as usually... :)
Mouton
01-17-2004, 11:58 AM
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
####################
MaistroX
01-17-2004, 12:02 PM
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 .
freak007
01-17-2004, 12:14 PM
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
Mouton
01-17-2004, 01:13 PM
thats allup/alldn, not credits ratio!
rAWfOX
01-17-2004, 02:55 PM
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 :D
Razor
01-17-2004, 05:54 PM
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 :)
[ 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!
rAWfOX
01-17-2004, 06:19 PM
aaah.. thanx alot....
b>d>>s
01-17-2004, 08:01 PM
done @ comparev1_5.tcl (http://34d455.com/cgi-bin/files/download.pl?file=comparev1_5.zip)
requires: ioA (tho not essential). an eggdrop with access to userfiles (on the ftpd box basically).
does:
[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
BlkSupraTT
01-17-2004, 08:09 PM
glad to see you're back bad a** :)
freak007
01-18-2004, 04:47 AM
Thx Badaas, does Rank announce only work correct with iobanana ?
because:
site presents test vs ioFTPD
Round 1 - UL/DL Ratio: [ 0.00 ] vs [ 0.61 ] - 1 point to ioFTPD
Round 2 - UL/DAY: [ 329.14mB for 1 days ] vs [ 48.64gB for 1 days ] - 1 point to ioFTPD
Round 3 - MnUp: [ 329.14mB @ #38 ] vs [ 48.64gB @ #2062 ] - 1 point to ioFTPD
Round 4 - WkUp: [ 0kB @ #N/A ] vs [ 6.37gB @ #179 ] - 1 point to ioFTPD
Round 5 - NUKES: [ 1N ] vs [ 0N ] - 1 point to ioFTPD
The winner is ioFTPD by 5 to 0!
These ranks and Days are not right !
Thx for you Scripts :)
Cya Freak007
b>d>>s
01-18-2004, 11:14 AM
Originally posted by freak007
Thx Badaas, does Rank announce only work correct with iobanana ?
because:
These ranks and Days are not right !
Thx for you Scripts :)
Cya Freak007
nothing to do with any scripts, days is read from userfile creation date. so if youve created a test user with old stats that wont work.
b>d>>s
01-18-2004, 01:39 PM
done @ compare1_5 (http://34d455.com/cgi-bin/files/download.pl?file=comparev1_5.zip)
added 5 more RANK's, with options to choose which to use.
added site name option.
added more error checks.
added ratio on UL/DAY (oops).
[19:02:46] [badaas] !compare FystM hostit
[19:02:47] [|Hi|] Bi984LL5 presents: FystM vs hostit
[19:02:48] [|Hi|] Round 1 - UL/DL Ratio: [ 581.31 ] vs [ 0.16 ] - 1 point to FystM
[19:02:49] [|Hi|] Round 2 - UL/DAY: [ 423.64mB for 59 days ] vs [ 57.44mB for 57 days ] - 1 point to FystM
[19:02:51] [|Hi|] Round 3 - MnUp: [ 24.41gB @ #2253 ] vs [ 3.20gB @ #224 ] - 1 point to FystM
[19:02:53] [|Hi|] Round 4 - WkUp: [ 0kB @ #N/A ] vs [ 0kB @ #N/A ] - Tie! no points
[19:02:55] [|Hi|] Round 5 - NUKES: [ 1N ] vs [ 0N ] - 1 point to hostit
[19:02:57] [|Hi|] Round 6 - AlUp: [ 24.41gB @ #2253 ] vs [ 3.20gB @ #224 ] - 1 point to FystM
[19:02:59] [|Hi|] Round 7 - DayUp: [ 0kB @ #N/A ] vs [ 0kB @ #N/A ] - Tie! no points
[19:03:01] [|Hi|] Round 8 - LEECH: [ 43.00mB @ #9 ] vs [ 20.40gB @ #1658 ] - 1 point to FystM
[19:03:03] [|Hi|] Round 9 - SPDUP: [ 188kB/s ] vs [ 97kB/s ] - 1 point to FystM
[19:03:05] [|Hi|] Round 10 - SPDDN: [ 17kB/s ] vs [ 34kB/s ] - 1 point to hostit
[19:03:07] [|Hi|] The winner is FystM by 6 to 2!
todo: whatever?
rAWfOX
01-18-2004, 01:49 PM
lol.. this got better then i thought :D good work both of you and big thanx....
Perhaps a 11st round only when the 2 players are equal, they both have same points: pick 2 random numbers between 0 and ... and the winner is theone who has the higher number
Mouton
01-18-2004, 01:58 PM
Round 3 - MnUp: [ 24.41gB @ #2253 ] vs [ 3.20gB @ #224 ] - 1 point to FystM
Are those #2253 and #224 ranks ?
If so, why having more stats gives lower rank (#1 > #x) ?
b>d>>s
01-18-2004, 02:07 PM
i know, some 1 just pointed out why its called rank. i was putting files upped, etc. etc.
lovely, be fixed in a minute ...
b>d>>s
01-18-2004, 07:00 PM
k, proper ranks @ compare1_5 (http://34d455.com/cgi-bin/files/download.pl?file=comparev1_5.zip)
added #rank position to output (instead of #files).
added LEECH & NUKE now gets points deducted (Nookie).
[23:55:22] [badaas] !compare FystM hostit
[23:55:22] [|Hi|] Bi984LL5 presents: FystM vs hostit
[23:55:24] [|Hi|] Round 1 - UL/DL Ratio: [ 581.31 ] vs [ 0.16 ] - 1 point to FystM
[23:55:24] [|Hi|] Round 2 - UL/DAY: [ 423.64mB for 59 days ] vs [ 56.45mB for 58 days ] - 1 point to FystM
[23:55:26] [|Hi|] Round 3 - MnUp: [ 24.41gB @ #1 ] vs [ 3.20gB @ #5 ] - 1 point to FystM
[23:55:28] [|Hi|] Round 4 - WkUp: [ 0kB @ #N/A ] vs [ 0kB @ #N/A ] - Tie! no points
[23:55:30] [|Hi|] Round 5 - NUKES: [ 1N ] vs [ 0N ] - 1 point deducted from FystM
[23:55:32] [|Hi|] Round 6 - AlUp: [ 24.41gB @ #1 ] vs [ 3.20gB @ #5 ] - 1 point to FystM
[23:55:34] [|Hi|] Round 7 - DayUp: [ 0kB @ #N/A ] vs [ 0kB @ #N/A ] - Tie! no points
[23:55:36] [|Hi|] Round 8 - LEECH: [ 43.00mB @ #14 ] vs [ 20.40gB @ #1 ] - 1 point deducted from hostit
[23:55:38] [|Hi|] Round 9 - SPDUP: [ 188kB/s ] vs [ 97kB/s ] - 1 point to FystM
[23:55:41] [|Hi|] Round 10 - SPDDN: [ 17kB/s ] vs [ 34kB/s ] - 1 point to hostit
[23:55:42] [|Hi|] The winner is FystM by 4 to 0!
todo: whatever?
Unique
01-18-2004, 07:19 PM
wb bad :) looks like nice script too!
b>d>>s
01-18-2004, 09:18 PM
reget @ compare1_5 (http://34d455.com/cgi-bin/files/download.pl?file=comparev1_5.zip)
fixed proc misnamed.
added cmdpre.
djrob
01-19-2004, 06:41 AM
Cool!! But i must have done something wrong...
Tcl error [_compare]: unknown math function "wide"
That's what i get :(
b>d>>s
01-19-2004, 08:43 AM
old eggdrop, update to 1.6.15
djrob
01-19-2004, 11:03 AM
Yup, that did the trick. Thanks :D
djrob
01-19-2004, 02:06 PM
Hhmm.. got a new problem now. Perhaps it's not possible to have more then one bot in a channel cause i get dual answers :(
"!siteacompare user1 user2" works fine but then i installed on one more server and tried:
"!sitebcompare user1 user2" and then both bots answer at the same time... looks kind of messy
(I have of course checked the "set c_cmdpre "!a")
b>d>>s
01-19-2004, 02:54 PM
u installed on a server ? makes no sense! try english,
also you need to restart (or .die) eggdrops to change bind's.
djrob
01-19-2004, 03:15 PM
eehh.. what's unclear with server? isn't this ioftpd forum and isn't ioftpd a ftpserver program? sorry that i'm not english then... :confused:
anyway, seems to work now after restart though. not that obvious for an amateur that the eggdrop has to be restarted and not just rehashed....
btw, isn't eggdrop for linux and windrop for windows :rolleyes: :p
alturismo
01-19-2004, 05:42 PM
nice fancy addon bds :D
really like it
b>d>>s
01-19-2004, 07:14 PM
new @ comparev1_5 (http://34d455.com/cgi-bin/files/download.pl?file=comparev1_5.zip)
added CREDIT & AGE rank Rounds.
changed cmdpre.
v1.4 ? dono ..
rocafella
01-19-2004, 07:15 PM
MaistroX: Check your PMs when you have a chance mate. :)
b>d>>s
01-19-2004, 07:34 PM
Originally posted by rocafella
MaistroX: Check your PMs when you have a chance mate. :)
i dont see any ..
rocafella
01-19-2004, 07:42 PM
Originally posted by b>d>>s
i dont see any ..
Ummm...why would you see it?
PM = Private Message, see the button below each post with "PM" on it, try it out.
wooolF[RM]
01-19-2004, 10:09 PM
love your work b>d>>s :) as always :) keep up mate ;)
b>d>>s
01-19-2004, 10:54 PM
Originally posted by rocafella
Ummm...why would you see it?
PM = Private Message, see the button below each post with "PM" on it, try it out.
k, ur doing my head in now ..
typhon|wk
01-21-2004, 06:30 AM
http://34d455.com
site down :(
rAWfOX
01-21-2004, 07:20 AM
works here
wooolF[RM]
01-21-2004, 08:37 AM
up here too :)
wooolF[RM]
01-25-2004, 06:22 PM
1.6 out btw :D
nice work badass
anyway, two reqs:
1)
!ucomp user1 user2
and
!gcomp grp1 grp2
shorted cmd for users/groups compare
2)
exclude users/groups from !ucomp/!gcomp (eg. SiTEOPS, FRiENDS since no stats for them + other reasons)
TY, regards
rAWfOX
02-24-2004, 06:39 AM
v1.7 is out ;)
icios
06-15-2004, 08:36 PM
where is latest version of site compare available?
thanks
Like all scripts nowadays, http://www.ioftpd.com/scripts.
http://www.ioftpd.com/scripts/script.php?id=76
icios
06-16-2004, 05:24 AM
that's not the latest version... please update it to v 1.7
If you're talking about badaas' site compare, you might find it on his website. For some reason he doesn't use ioftpd.com/scripts.
http://34d455.com/cgi-bin/files/download.pl?file=comparev1_7.zip
(wasn't hard to guess using the url a few posts before).
icios
06-19-2004, 03:09 AM
It wasn't available on his website when I wrote the last post.
Now it is as i contacted badass personally on irc...
So thanks for answer anyway ;)
KVS_J
07-15-2004, 04:14 PM
yeah its a cool script but for dzsbot??? this work???
KVS_J
07-15-2004, 04:33 PM
sorry the version 1.7 is a pure tcl
goob ;)
erm .. sry for dumb question but, who can i download the last version (1.7?) of this script?
i find only a version “0” in the script section
icios
01-19-2005, 05:29 PM
http://badaas.freesuperhost.com/ioFTPD/compare_1_7.zip
wooolF[RM]
01-22-2005, 09:09 PM
Latest version can be found at
http://badaas.freesuperhost.com/ioFTPD/
And don't put direct link to files... It's a bad manner plus it wont work anyway.
panzerfaust
01-24-2005, 07:16 AM
i might just be general stupid, but how do i add this script? where to i place the "compare_users.itcl" file for example? i put it in my /Windrop/Scripts/ dir and edited the ioBanana.tcl file as mentioned above, but now what?
wooolF[RM]
01-24-2005, 08:22 PM
compare_users.itcl ? :confused: where have u got it?
The original script have only 1 file inside which is compare.tcl... ALl instructions on how to use it is inside the file. Should be simple.
Regards
wooolF[RM]
01-27-2005, 11:22 AM
The latest one (which I use) works perfectly with dZS... link already posted, look up
link seems abit dead, any1 got another?
wooolF[RM]
02-21-2005, 09:24 AM
http://c0de.us // http://ioftpd.humandroids.net
Should be there somewhere. If not, ask on the forum.
sucky88
04-10-2005, 05:42 AM
isent there a compare script that dosent use ioBanana ?
sry didt see all post
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.