Bravo List
Register
Go Back   > Bravo List > Sourcecode > TBDev > Mods & Themes
Reply
  #1  
Old 23-02-08, 19:20
sharky's Avatar
sharky sharky is offline
Member
 
Join Date: Jan 2008
Posts: 12
Default 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
Reply With Quote
The Following User Says Thank You to sharky For This Useful Post:
al-jodtv (28-02-10)
  #2  
Old 07-03-08, 19:51
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default Re: Freeleech with multiplier
cheers sharky
Reply With Quote
  #3  
Old 10-03-08, 16:01
sharky's Avatar
sharky sharky is offline
Member
 
Join Date: Jan 2008
Posts: 12
Default Re: Freeleech with multiplier
anytime mate
Reply With Quote
  #4  
Old 30-04-08, 22:33
snakebite's Avatar
snakebite snakebite is offline
Senior Member
 
Join Date: Apr 2008
Default
Posts: 47
Default Re: Freeleech with multiplier
thnx just what i needed :D
__________________
Go here! ----> "HERE"
Reply With Quote
  #5  
Old 04-05-08, 18:03
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default 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");
Reply With Quote
  #6  
Old 17-05-08, 06:07
Tarix22's Avatar
Tarix22 Tarix22 is offline
Member
 
Join Date: Feb 2008
Posts: 9
Default Re: Freeleech with multiplier
PLease screeennnnn
Reply With Quote
  #7  
Old 21-05-08, 19:22
sharky's Avatar
sharky sharky is offline
Member
 
Join Date: Jan 2008
Posts: 12
Default Re: Freeleech with multiplier
What Screen? It's just a mod that doubles/multiplies your upload when freeleech is on. Jeez :blink:
Reply With Quote
  #8  
Old 22-05-08, 08:11
Tarix22's Avatar
Tarix22 Tarix22 is offline
Member
 
Join Date: Feb 2008
Posts: 9
Default Re: Freeleech with multiplier
screeenn please
Reply With Quote
  #9  
Old 22-05-08, 14:40
snakebite's Avatar
snakebite snakebite is offline
Senior Member
 
Join Date: Apr 2008
Default
Posts: 47
Default Re: Freeleech with multiplier
are you "stupid" tarix22? no offence..
how can he make a screen of double seed or freeleech?
think man..!
__________________
Go here! ----> "HERE"
Reply With Quote
  #10  
Old 25-05-08, 12:30
djlee's Avatar
djlee djlee is offline
Senior Member
 
Join Date: Mar 2008
Posts: 183
Default 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
Reply With Quote
Reply

Tags
freeleech , multiplier

Thread Tools

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TBDEv Freeleech mod ? poiuy6789 TBDev 6 11-06-13 03:39
freeleech.eu tbdev final 2009 djblackout Community Cafe 0 23-03-10 04:42
tbdev.net (netmaniack's edition) 1.5 freeleech.php tunad Community Cafe 0 28-12-08 14:44
Freeleech tunad Torrent Strike 2 18-11-08 13:42
FreeLeech vertex YSE 9 07-09-08 21:38



All times are GMT +2. The time now is 14:11. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2017, vBulletin Solutions Inc.