Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   Freeleech with multiplier (http://www.bvlist.com/showthread.php?t=183)

sharky 23rd February 2008 19:20

Freeleech with multiplier
 
YOU MUST HAVE THE FREELEECH MOD INSTALLED IN ORDER TO USE THIS MOD :)

this mod makes your uploadx2 or x4 on freeleech torrents, of course, if the freeleech and the multiplier are set "true"

so, basically..add this in announce .php , beneath the first
Code:


add

Code:

$free = false; //set free on off(generally)
$double = false; //set 2x multiplier
$four = false; //set 4x multiplier

//WARNING:DO NOT SET BOTH MULTIPLIERS TRUE, ONLY ONE

then, replace this
Code:

else
{
    $upthis = max(0, $uploaded - $self["uploaded"]);
    $downthis = max(0, $downloaded - $self["downloaded"]);

    if ($upthis > 0 || $downthis > 0)
        mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");
}
}

with
Code:

else
{
    $upthis = max(0, $uploaded - $self["uploaded"]);
    $downthis = max(0, $downloaded - $self["downloaded"]);
    if ($free)
        $downthis = 0;
    if ($double)
        $upthis *= 2;
 if ($four)
        $upthis *= 4;

    if ($upthis > 0 || $downthis > 0)
        mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");
}

that's it. tested and works

wMan 7th March 2008 19:51

Re: Freeleech with multiplier
 
cheers sharky :dance:

sharky 10th March 2008 16:01

Re: Freeleech with multiplier
 
anytime mate

snakebite 30th April 2008 22:33

Re: Freeleech with multiplier
 
thnx just what i needed :D

wMan 4th May 2008 18:03

Re: Freeleech with multiplier
 
this is mine so would the freeleech ive added still work?


else
Code:

{
        $upthis = max(0, $uploaded - $self["uploaded"]);
        $downthis = max(0, $downloaded - $self["downloaded"]);
    // Get the last uploaded amount from user account for reference and store it in $last_up
    $rst = mysql_query("SELECT class, uploaded FROM users WHERE id = $userid") or err("Tracker error 5");
    $art = mysql_fetch_array($rst);
    $last_up = $art["uploaded"];
    $class = $art["class"];

        if ($upthis > 0 || $downthis > 0)
 mysql_query("UPDATE users SET uploaded = uploaded + $upthis". ($torrent['free']=='no'?", downloaded = downloaded + $downthis ":' '). "WHERE id=$userid") or err("Tracker error 3");


Tarix22 17th May 2008 06:07

Re: Freeleech with multiplier
 
PLease screeennnnn

sharky 21st May 2008 19:22

Re: Freeleech with multiplier
 
What Screen? It's just a mod that doubles/multiplies your upload when freeleech is on. Jeez :blink:

Tarix22 22nd May 2008 08:11

Re: Freeleech with multiplier
 
screeenn please

snakebite 22nd May 2008 14:40

Re: Freeleech with multiplier
 
are you "stupid" tarix22? no offence..
how can he make a screen of double seed or freeleech?
think man..!

djlee 25th May 2008 12:30

Re: Freeleech with multiplier
 
anymore silly screen plz posts from you and i will have you warned if not banned from the site.. yu did this on TBDEV and now your doing it here .. grow a few brain cells before posting would ya


All times are GMT +2. The time now is 13:50.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.