Jump to content
MakeWebGames

firecamp

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by firecamp

  1. Re: Allows you to create items that make you go up a level V2 some people will like it some people wont thats fair enough :-)
  2. A small addon option for items go to staff_items.php add to each effect   <option value='experience'>Experience</option>   then under $stats=array( add this "exp" => "experience",   remember to use values to increase your level not percentages enjoy!
  3. Re: Donator Gym V2 btw does anyone have a gangwars.php code that shows how much respect has been taken and how much has been gained between gangs that are warring each other?
  4. Re: Donator Gym V2 yeh sorry about tryin to sell i realise now how silly that was :lol:
  5. Just ask if you need help i am still quite new but i will do my best! either add a post on here or add me on msn [email protected]
  6. This edit will give donaters 3 times the amount of stat gains which should increase the amount of donators you get enjoy! create a file called donatorsgym.php <?php $macropage="gym.php"; include "globals.php"; if($ir['donatordays'] == 0) { die("This feature is for donators only."); } if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } if($ir['gymp'] == '0') { } $statnames=array( 'Strength' => 'strength', 'Agility' => 'agility', 'Guard' => 'guard', 'Labour' => 'labour'); $_POST['amnt']=abs((int) $_POST['amnt']); if(!$ir['jail']) { print "<h3>Gym</h3><hr />"; } else { print "<h3>Jail Gym</h3><hr />"; } if($_POST['stat'] && $_POST['amnt']) { $stat=$statnames[$_POST['stat']]; if(!$stat) { die("This stat cannot be trained."); } if($_POST['amnt'] > $ir['energy']) { print("You do not have enough energy to train that much.<hr />"); } else { $gain=0; for($i=0; $i<$_POST['amnt']; $i++) { $gain+=rand(3,9)/rand(800,1000)*rand(800,1000)*(($ir['will']+20)/150); $ir['will']-=rand(1,3); if($ir['will'] < 0) { $ir['will']=0; } } if($ir['jail']) { $gain/=2; } $db->query("UPDATE `userstats` SET `{$stat}` = `{$stat}` + $gain WHERE `userid` = $userid"); $db->query("UPDATE `users` SET `will` = {$ir['will']}, energy = energy - {$_POST['amnt']} WHERE `userid` = $userid"); $inc=$ir[$stat]+$gain; $inc2=$ir['energy']-$_POST['amnt']; if($stat=="strength") { print "You begin lifting some weights. You have gained {$gain} strength by doing {$_POST['amnt']} sets of weights. You now have {$inc} strength and {$inc2} energy left."; } elseif($stat=="agility") { print "You begin running on a treadmill. You have gained {$gain} agility by doing {$_POST['amnt']} minutes of running. You now have {$inc} agility and {$inc2} energy left."; } elseif($stat=="guard") { print "You jump into the pool and begin swimming. You have gained {$gain} guard by doing {$_POST['amnt']} minutes of swimming. You now have {$inc} guard and {$inc2} energy left."; } elseif($stat=="labour") { print "You walk over to some boxes filled with gym equipment and start moving them. You have gained {$gain} labour by moving {$_POST['amnt']} boxes. You now have {$inc} labour and {$inc2} energy left."; } print "<hr />"; $ir['energy']-=$_POST['amnt']; $ir[$stat]+=$gain; } } print "Choose the stat you want to train and the times you want to train it. You can train up to {$ir['energy']} times.<hr /> <form action='gym.php' method='post'> Stat: <select type='dropdown' name='stat'> <option style='color:red;' value='Strength'>Strength (Have {$ir['strength']} <option style='color:yellow;' value='Agility'>Agility (Have {$ir['agility']} <option style='color:green;' value='Guard'>Guard (Have {$ir['guard']} <option style='color:brown;' value='Labour'>Labour (Have {$ir['labour']} </select> Times to train: <input type='text' name='amnt' value='{$ir['energy']}' /> <input type='submit' value='Train' /></form>"; $h->endpage(); ?> and dont forget to add this in mainmenu.php a href='donatorsgym.php'><font color ='orange'>Gym (Donators Only)
  7. Re: Donators Gym $2 ok fair enough i will go add it in the free section
  8. This is an edit of the normal gym which will let you gain up to 3 times the amount of stats from training compared to the normal gain if you are a donator. This puppy should boost the amount of donators you get quickly msn: [email protected] Paypal:fire-camp@hotmail enjoy!
  9. Re: cron_day.php hi can someone post the docrime.php for v2 pls?
  10. Re: [mccode] donator day market for v2 nice mod +1 :-)
  11. Re: [mccodes v2] Find random items while playing the game...     how did you manage to do that?
  12. Re: just restarted my game fresh and wondering rip off! i already have the files on another game for v2! lmfao you can stick that $200 up your ass :lol:
  13. Re: just restarted my game fresh and wondering oh so i got a useless game now then
  14. Re: just restarted my game fresh and wondering add me on msn pls it will be easier [email protected] thanks
  15. Re: just restarted my game fresh and wondering yes it is
  16. Re: cron_day.php no cos someone else got the codes for me
  17. Re: just restarted my game fresh and wondering it still says this Warning: require(class/class_db_.php) [function.require]: failed to open stream: No such file or directory in /home/twisteds/public_html/authenticate.php on line 12 Warning: require(class/class_db_.php) [function.require]: failed to open stream: No such file or directory in /home/twisteds/public_html/authenticate.php on line 12 Fatal error: require() [function.require]: Failed opening required 'class/class_db_.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/twisteds/public_html/authenticate.php on line 12
  18. Re: just restarted my game fresh and wondering :? sorry i dont understand what to put
  19. require "class/class_db_{$_CONFIG['driver']}.php";   when i try and login it comes up with this   Warning: require(class/class_db_.php) [function.require]: failed to open stream: No such file or directory in /home/twisteds/public_html/authenticate.php on line 12 Warning: require(class/class_db_.php) [function.require]: failed to open stream: No such file or directory in /home/twisteds/public_html/authenticate.php on line 12 Fatal error: require() [function.require]: Failed opening required 'class/class_db_.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/twisteds/public_html/authenticate.php on line 12   and that line at the top is the problem so which part do i edit? and what do i put instead?
  20. Re: cron_day.php its working now thanks! also does anyone know where to get all your config.php and mysql.php information back from? cos i deleted all my file to start again
  21. Re: cron_day.php yeh that is blank but i know they dont work cos u cant vote daily any more :?
  22. Re: cron_day.php yes
  23. Re: cron_day.php :?
  24. Re: cron_day.php tried that now it says Cron Not Ran :?
  25. Re: cron_day.php nope that didnt work   Parse error: syntax error, unexpected '}' in /home/thedestr/public_html/cron_day.php on line 76
×
×
  • Create New...