Nicholas Posted March 1, 2010 Share Posted March 1, 2010 ive searched the forum but couldnt find it anywhere in the paid or free section. does anyone have this mod at all that i can buy or have? if you do please contact me on this post or thro a private message. thanks, nicholas. Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted March 1, 2010 Share Posted March 1, 2010 Well Find in header.php $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); Replace with if($ir['donatordays'] == 0) $enperc=(int) ($ir['energy']/$ir['maxenergy']*100);if($ir['donatordays'] > 0) $enperc=(int) ($ir['energy']/$ir['maxenergy']*150 Not tested... Dunno if it works.. lol Quote Link to comment Share on other sites More sharing options...
chicka Posted March 1, 2010 Share Posted March 1, 2010 in header.php // if user has a donator pack with days remaining then set 150 maxenergy $db->query('UPDATE `users` SET `maxenergy` = 150 WHERE `donatordays` > 0'); // if user has no days remaining then put back to 100 maxenergy $db->query('UPDATE `users` SET `maxenergy` = 100 WHERE `donatordays` = 0'); Hope this helps Quote Link to comment Share on other sites More sharing options...
Nicholas Posted March 1, 2010 Author Share Posted March 1, 2010 $db->query('UPDATE `users` SET `maxenergy` = 150 WHERE `donatordays` > 0'); that wouldnt work? as its not the maxenergy i want 150, its the energy bar its self. as it they got 150 max energy they could train REALLY! high in the gym. as say a level 1 buys a donator pack, there max energy jump from 12 to 150. if you know what i mean? Quote Link to comment Share on other sites More sharing options...
jds137 Posted March 1, 2010 Share Posted March 1, 2010 Heres a hint: /*----------------------------------------------------- -- A product of Isomerizer.com -- Copyright held 2007 - 2008 by Isomerizer © -- Buy Max Energy Mod -----------------------------------------------------*/ That was taken off the actual 150 energy bar mod. As for if its still for sale, or not, I am sure it still is. Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted March 3, 2010 Share Posted March 3, 2010 // if user has a donator pack with days remaining then set 150 maxenergy $db->query('UPDATE `users` SET `maxenergy` = 150 WHERE `donatordays` > 0'); // if user has no days remaining then put back to 100 maxenergy $db->query('UPDATE `users` SET `maxenergy` = 100 WHERE `donatordays` = 0'); if you don't see the problem there then your seriously thinking outside the box today... $max_energy = ( !empty($ir['donatordays']) ) ? $ir['maxenergy']+($ir['maxenergy']/2) : $ir['maxenergy'] ; $db->query('UPDATE `users` SET `maxenergy` = 150 WHERE `userid` = '.$userid); Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 3, 2010 Share Posted March 3, 2010 did you mean this Crim? ... $max_energy = ( !empty($ir['donatordays']) ) ? $ir['maxenergy']+($ir['maxenergy']/2) : $ir['maxenergy'] ; $db->query('UPDATE `users` SET `maxenergy` = '.$max_energy.' WHERE `userid` = '.$userid); that would not wotrk on each page visit ... BOOM max energy timesed by 1.5 next page happens again ... and again ... and so on try just putting this in ur header (no sql) $ir['maxenergy'] = ( !empty($ir['donatordays']) ) ? $ir['maxenergy']+($ir['maxenergy']/2) : $ir['maxenergy'] ; you will have to add that to the cron that updates energy but edit to $r['maxenergy'] or whatever it is ^^ Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted March 3, 2010 Share Posted March 3, 2010 Dayo, you're right i noticed a problem when i came back on the post and was scrolling down lol Weak moment :( Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 3, 2010 Share Posted March 3, 2010 *you should be ashamed of yourself boy :P *jks* we all make mistakes, has ne1 tryed this yet? Quote Link to comment Share on other sites More sharing options...
Nicholas Posted March 9, 2010 Author Share Posted March 9, 2010 $ir['maxenergy'] = ( !empty($ir['donatordays']) ) ? $ir['maxenergy']+($ir['maxenergy']/2) : $ir['maxenergy'] ; i dont think it worked mate. forgot to reply about it :/ if anyone could like make a test domain or whatever and try and get the 150% energy thing. to work that be great :) not so its like 100% but showing 150% its so like say you can attack for 30% energy which means you get attack 3 times every 100% (10% energy spare) but with 150% you can attack 5 times. if thats understandable. also with 150% energy you can train better in gyms? it might be a really annoying mod to make, so im willing to pay for it. NOTE: this mod is used on http://www.roguevampires.net/ Quote Link to comment Share on other sites More sharing options...
Dayo Posted March 9, 2010 Share Posted March 9, 2010 ahh for this you will have to edit gym and attack system to alow for the 50% increse so go throgh and look for the bit that checks energy and add an if/else statment Quote Link to comment Share on other sites More sharing options...
jds137 Posted March 11, 2010 Share Posted March 11, 2010 How do you add this. I made my max enegy 100 for non donators. But I want to make my max bar 150 for donators? Quote Link to comment Share on other sites More sharing options...
DeaTH_RideR Posted March 11, 2010 Share Posted March 11, 2010 if($ir['donatordays']) { $u = "<font color=silver>{$ir['gangPREF']}{$ir['username']}</font>";$d="[img=donator.gif]"; } mysql_query('UPDATE `users` SET `maxenergy` = 150 WHERE `donatordays` > 0'); mysql_query('UPDATE `users` SET `maxenergy` = 100 WHERE `donatordays` = 0'); then this for your attack. if($_SESSION['attacking']==0 && $ir['attacking'] == 0) { if ($youdata['energy'] >= $youdata['maxenergy']/3) { $youdata['energy']-= floor($youdata['maxenergy']/3); $me=floor($youdata['maxenergy']/3); $db->query("UPDATE users SET energy=energy- {$me}, enfull=0 WHERE userid=$userid"); $_SESSION['attacklog']=""; $_SESSION['attackdmg']=0; } else { print "You can only attack someone when you have 50% energy"; $h->endpage(); exit; i dont know if thats what your wanting but this is how i have mine works fine. no need to edit the gym for this, they get 10 trains for non donators and 15 for donators Quote Link to comment Share on other sites More sharing options...
jds137 Posted March 11, 2010 Share Posted March 11, 2010 Exactly what I needed. Do you have the sql for enfull=0 And thanks. Sorry I missed you on IM the other day Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted March 11, 2010 Share Posted March 11, 2010 Exactly what I needed. Do you have the sql for enfull=0 And thanks. Sorry I missed you on IM the other day What do you mean? Quote Link to comment Share on other sites More sharing options...
jds137 Posted March 14, 2010 Share Posted March 14, 2010 I dont have enfull, do I need it? I have this line: $db->query("UPDATE users SET energy=energy- {$me} WHERE userid=$userid"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.