| benjaminbih | 2007-03-18 14:09:00 |
![]() Posts: 72 Topics participated: 28 Topics started: 5 First post: 2007-01-08 00:58:00 Last post: 2008-10-26 16:06:00 |
WHERE uploaded<((downloaded/100)*60) OK you helped me much thank you. But i have an other question to, i have installed too, and what i need to set if i dont want that users get warnings for golden torrents ? regards |
![]() |
Fully Automatic Hit & Run Warning Script
| cddvdheaven | 2007-03-18 15:00:00 |
![]() Posts: 408 Topics participated: 178 Topics started: 57 First post: 2006-04-06 11:35:00 Last post: 2009-01-02 13:45:00 |
I dont run the Golden Torrent script and no longer run any Ratio boosting scripts. We as staff got fed up with users asking why they were getting a warning for leeching a torrent when there ratio was ok ? We want users to seed near on every torrent to the highest possabl;e ratio as close to 1:1. Ratio boosting scripts (IRC Idle,Seeding Bonus,Donor Add ons)just distorts the overall ratio untill such time a staff are no longer able to tell how good a user is. How ever without looking at the script's i would think it's a simple matter of adding a sql query to get the torrent type Normal or Golden and use a simple If Not A Golden Torrent Run the H&R script !!!! Hit & Run Script Find This Section In Cleanup.php //HIT & RUN Send a request to reseed if ratio less then 1:1 on torrent and stopped seeding// Find $sd2=mysql_query("SELECT leechers FROM torrents WHERE id =$torrentidnum"); Change To $sd2=mysql_query("SELECT leechers, free FROM torrents WHERE id =$torrentidnum"); Find $leechers = $fetched_result2['leechers']; Add After $free = $fetched_result2['free'];//is it free yes/no? Find IF ($donor =="yes" or $class>='5') Change To IF ($donor =="yes" or $class>='5' or $free=='yes') Can not say if it will work or what as like i say i dont run the Golden Torrent script and i see there are more then one version of the free leech script so you may have to change the Free in the SQL query to what ever your version has ? |
![]() |
| benjaminbih | 2007-03-19 03:30:00 |
![]() Posts: 72 Topics participated: 28 Topics started: 5 First post: 2007-01-08 00:58:00 Last post: 2008-10-26 16:06:00 |
ok thank you, i gonna try it so |
![]() |
| MelvinMeow | 2007-03-22 19:18:00 |
![]() Posts: 112 Topics participated: 68 Topics started: 0 First post: 2006-03-21 18:16:00 Last post: 2008-12-29 14:43:00 |
You could just add a check before running this mod. If torrent = notfree run the script. Else ignore it. |
![]() |
| cddvdheaven | 2007-03-22 21:06:00 |
![]() Posts: 408 Topics participated: 178 Topics started: 57 First post: 2006-04-06 11:35:00 Last post: 2009-01-02 13:45:00 |
The postion of the IF Free is in the correct place. As it has to check each and every torrent finished in that time from the last cleanup. You cant have it at the very start of the H&R as the it has a lot of compleated torrent data to look through. |
![]() |
| Stageline | 2007-03-27 20:22:00 |
![]() Posts: 82 Topics participated: 39 Topics started: 4 First post: 2006-09-25 05:46:00 Last post: 2008-09-03 18:33:00 |
////Get H&R Total //// $hit_run_total=mysql_query("SELECT hit_run_total FROM users WHERE id=$id"); //print("debug $id"); $fetched_result = mysql_fetch_array($hit_run_total); $hit_run_total = $fetched_result['hit_run_total']; Here is my code. I use XTB source. This work my |
![]() |
| optilaque | 2007-03-30 11:48:00 |
![]() Posts: 169 Topics participated: 44 Topics started: 7 First post: 2006-11-25 01:48:00 Last post: 2008-01-08 13:10:00 |
the only thing missing on this is a seed time check ie if they have seeded for a certain amount of time (2-3days for example) then it doesn't warn them. just a thought. |
![]() |
| cddvdheaven | 2007-03-30 23:43:00 |
![]() Posts: 408 Topics participated: 178 Topics started: 57 First post: 2006-04-06 11:35:00 Last post: 2009-01-02 13:45:00 |
Adding a seeding time could be added as the snatch list has the data needed for this. I wrote it so that users had to seed to it's max possable ratio while there were downloaders there to seed to. Seeding to a time limit is ok but some users may well play the system as they already do and seed at a very low speed knowing after say 3 days they are given the all clear. There is a lot that can be done with the data in the snatch script i may well look at the time functions to see if i can add it even if i dont use it myself. |
![]() |
| optilaque | 2007-04-25 12:12:00 |
![]() Posts: 169 Topics participated: 44 Topics started: 7 First post: 2006-11-25 01:48:00 Last post: 2008-01-08 13:10:00 |
I'm probably not even close to right with this but no sleep and to much coffee gave me this $sddays = 3; $sddt = sqlesc(get_date_time(gmtime() - ($sddays * 86400))); $tays = 3; $tdt = sqlesc(get_date_time(gmtime() + ($tays * 86400))); $res = mysql_query("SELECT userid, torrentid, torrent_name, snatched.completedat, last_action, uploaded, downloaded, hit_run FROM snatched WHERE uploaded { while ($arr = mysql_fetch_assoc($res)) { $torrentname=$arr[torrent_name]; $username=$arr[userid]; $torrentidnum=$arr[torrentid]; $last=$arr[last_action]; $hit_run=$arr[hit_run]; $up=$arr[uploaded]; $down=$arr[downloaded]; $ratio=(10/$down)*$up; $compl=$arr[snatched.completedat]; $sd2=mysql_query("SELECT leechers FROM torrents WHERE id =$torrentidnum"); $fetched_result2 = mysql_fetch_array($sd2); $leechers = $fetched_result2['leechers']; $sd=mysql_query("SELECT donor,class,hit_run_total FROM users WHERE id =$username"); $fetched_result = mysql_fetch_array($sd); $donor = $fetched_result['donor']; $class = $fetched_result['class']; $rescheck = mysql_query("SELECT * FROM peers WHERE seeder='yes' AND userid = $username AND torrent=$torrentidnum") or sqlerr(__FILE__, __LINE__); if (mysql_num_rows($rescheck) < 1) { IF ($donor =="yes" or $class>='' or $compl + $last >= $sddt ) |
![]() |
| Ronny | 2007-06-18 14:03:00 |
![]() Posts: 408 Topics participated: 196 Topics started: 62 First post: 2007-02-09 20:22:00 Last post: 2008-12-05 15:57:00 |
optilaque and chance of you posting your 3 day seed time working script as you did before please.... thanks |
![]() |
Similar threads
| Topic | Posts | Last post |
|---|---|---|
| hit and run warning mod | 26 | 2006-09-26 13:52:00 |
| hit and run | 3 | 2008-07-07 14:20:00 |
| Hit and run report in Snatchlist | 43 | 2008-12-05 17:43:00 |
| Trouble with Hit n run mod | 1 | 2008-02-11 09:45:00 |
| Hit And Run System for [Recreate] - Complex Snatchlist | 12 | 2008-07-07 15:23:00 |
Statistics
| Today's active topics · | |
|---|---|
| User(s) active in the past 30 minutes | |
| 60 Guests, 12 Members DarkWarrior, netmumus, Pappy, Menacie, Dorin, Zeleni, BlackPhantom, KinGSiZe, chupy, FlySkyHigh22, delivery, Nekroido szkolenia pozycjonowanie , darmowe gry , Reklama , opisy do gg , Airport chicago limousine serwis hondy manchester airport parking opony zimowe Papier fotograficzny wiersze walentynkowe | |
| Often viewed topics | |
| · AJAX shoutbox · banner · help · Nice UserCp · Status Bar On Logo · Complete anonym... · AJAX shoutbox · my mates new look · Announcement sc... · browse · do u think 15 y... · Balloon Tooltips · Custom Table Bo... · why is that? · Write color · nedd a site ski... · yet another ima... · Casino 3 in 1 · 0 seed 0 lech help · wrong time in l... | |
| Forthcoming Calendar Events within the next 5 days | |
| There are no forthcoming calendar events | |






