Jump to content
MakeWebGames

Sethenor

Members
  • Posts

    177
  • Joined

  • Last visited

    Never

Everything posted by Sethenor

  1. Re: Guess the next poster Joel come do me proud
  2. Re: Things A Goverment Official Wont Say.... We have ran out of tax payers money
  3. Re: Guess the next poster Yubi next
  4. Re: Guess the next poster Kyle next
  5. Re: Guess the next poster Nope Danger Boy next
  6. Re: miniNEaB version 4.0 Man this game engine is soo sweet why do i have to be so poor :lol:
  7. Re: Guess the next poster Karlos next
  8. Re: Guess the next poster Joel next !
  9. Re: Guess the next poster I think karlos :P you best post next haha
  10. Re: Gym Help Yeah everybody has 100 energy didnt know it was a mod though i just did that via register and db
  11. Re: Gym Help   Yeah basicly
  12. Re: Gym Help There you go thanks for taking time to look radio   <?php /* MCCodes Lite gym.php Rev 1.0.0 Copyright (C) 2006 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $out=""; $_GET['times']= abs((int) $_GET['times']); if(isset($_GET['train'])) { if($_GET['train'] != "strength" && $_GET['train'] != "agility" && $_GET['train'] != "guard" && $_GET['train'] != "labour") { $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); die("Abusers aren't allowed."); } $tgain=0; for($i=1;$i<=$_GET['times'] && $ir['energy'] > 0;$i++) { if ($ir['energy'] > 0) { $gain=rand(1,3)/rand(800,1000)*rand(800,1000)*(($ir['will']+20)/150); $tgain+=$gain; if ($_GET['train']=="IQ") { $gain/=100; } $ir[$_GET['train']]+=$gain; $egain=$gain/10; $ts=$ir[$_GET['train']]; $st=$_GET['train']; mysql_query("UPDATE userstats SET $st=$st+".$gain." WHERE userid=$userid",$c) or die("UPDATE userstats SET $st=$st+$gain,energy=energy-1,exp=exp+$egain WHERE userid=$userid ".mysql_error()); $wu=(int) (rand(1,3)); if ($ir['will'] >= $wu) { $ir['will']-=$wu; mysql_query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=will-$wu WHERE userid=$userid",$c); } else { $ir['will']=0; mysql_query("UPDATE users SET energy=energy-1,exp=exp+$egain,will=0 WHERE userid=$userid",$c); } $ir['energy']-=1; $ir['exp']+=$egain; } else { $out="You do not have enough energy to train."; } } $stat=$ir[$st]; $i--; $out="You begin training your $st. You have gained $tgain $st by training it $i times. You now have $stat $st and {$ir['energy']} energy left. "; } else { $out="<h3>Gym: Main Lobby<h3>"; } $h->userdata($ir,$lv,$fm); $h->menuarea(); print $out; print "Enter the amount of times you wish to train and choose the stat to train. You can train up to {$ir['energy']} times. <form action='gym.php' method='get'> <input type='text' name='times' value='1' /><select type='dropdown' name='train'> <option value='strength'>Strength</option> <option value='agility'>Agility</option> <option value='labour'>Labour</option> <option value='guard'>Guard</option></select> <input type='submit' value='Train!' /></form>"; $h->endpage(); ?>
  13. Re: Gym Help Can no one tell me how to do it :(
  14. Re: Gym Help I have seen it done on a few sites but i just dont know how to do it :|
  15. Hello everyone just asking for a bit of help with mc lite gym. my current energy starts at 100 and i tried to change the gym so it takes 10 energy instead of 1 and i changed this line $ir['energy']-=10 but when i go train and i do it 10 times my energy goes into minus 2 then goes back up to 90 etc.. i dont know if i have changed the wrong bit or not can anyone help me out please?
  16. Re: [MCcode v2] Shops item stock - as requested (Not Tested) Good effort mate
  17. Re: [mccode v2] Preferences     Haha that was funny :-D
  18. Re: [mccode v2] Preferences Thats nice man but i wouldnt like to be up at 4am haha
  19. Re: [MCcode V2] Item Info revamp! Looks cool man nice one
  20. Re: [Request] PHP Gamer Think i have it :wink:
  21. Re: [mccode V2] Item Descryption. Nice one mate good effort
  22. Re: [mccodes V2] Advanced Credit Card Mod [$20.00] now that is cool weldone
  23. Re: [V2][sUPER] Battle Arena That looks pretty sweet
  24. Re: [mccode v2] Login and Register Pages thats a sweet login nice one
  25. Re: [V2] Robbery Sounds cool mate weldone
×
×
  • Create New...