Jump to content
MakeWebGames

Danny

Members
  • Posts

    302
  • Joined

  • Last visited

    Never

Everything posted by Danny

  1. Re: [FREE][CRYSTAL GYM] Their you go   <?php //Made By danny6 $macropage="gym.php"; include "globals.php"; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } $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['crystals']) { print("You do not have enough crystals to train that much.<hr />"); } else { $gain=0; for($i=0; $i<$_POST['amnt']; $i++) { $gain+=rand(1,3)/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']}, crystals = crystals - {$_POST['amnt']} WHERE `userid` = $userid"); $inc=$ir[$stat]+$gain; $inc2=$ir['crystals']-$_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} crystals 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} cystals 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} crystals 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} crystals left."; } print "<hr />"; $ir['energy']-=$_POST['amnt']; $ir[$stat]+=$gain; } } $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); print "Choose the stat you want to train and the times you want to train it. You can train up to {$ir['crystals']} times.<hr /> <form action='cgym.php' method='post'> Stat: <select type='dropdown' name='stat'> <option style='color:red;' value='Strength'>Strength (Have {$ir['strength']}, Ranked {$ir['strank']}) <option style='color:blue;' value='Agility'>Agility (Have {$ir['agility']}, Ranked {$ir['agirank']}) <option style='color:green;' value='Guard'>Guard (Have {$ir['guard']}, Ranked {$ir['guarank']}) <option style='color:brown;' value='Labour'>Labour (Have {$ir['labour']}, Ranked {$ir['labrank']}) </select> Times to train: <input type='text' name='amnt' value='{$ir['energy']}' /> <input type='submit' value='Train' /></form>"; $h->endpage(); ?>
  2. Re: [FREE][CRYSTAL GYM] he isnt on a free host thats why is domain is .net not gamename.sum%^&£$freehost.com
  3. Re: BANK cap V2 isnt it in the code some where u can edit
  4. Re: [mccode] Improved Estate Agents for v2.0   Use the other v2 one   <?php include "globals.php"; $mpq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $mp=$db->fetch_row($mpq); $_GET['property']=abs((int) $_GET['property']); if($_GET['property']) { $npq=$db->query("SELECT * FROM houses WHERE hID={$_GET['property']}"); $np=$db->fetch_row($npq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hrNAME']}."; } else { $db->query("UPDATE users SET money=money-{$np['hPRICE']},will=0,maxwill={$np['hWILL']} WHERE userid=$userid"); print "Congrats, you bought the {$np['hNAME']} for \${$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq=$db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $np=$db->fetch_row($npq); if($ir['maxwill'] == 100) { print "You already live in the lowest property!"; } else { $db->query("UPDATE users SET money=money+{$np['hPRICE']},will=0,maxwill=100 WHERE userid=$userid"); print "You sold your {$np['hNAME']} and went back to your shed."; } } else { print "<center>Your current property: <font color=blue>[b]{$mp['hNAME']}[/b]</font> The houses you can buy are listed below. Click a house to buy it. "; if($ir['willmax'] > 100) { print "[url='estate.php?sellhouse']Sell Your Property[/url] "; } $hq=$db->query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { print " <table cellspacing=1 class='table'><tr style='background:gray;'><th>House</th><th>House Price</th><th>House Will</th><th>Buy?</th></tr>"; $hq=$db->query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { print "<tr><td>{$r['hNAME']}</a></td><td>\$$t".money_formatter($r['hPRICE'],'')."</td><td>{$r['hWILL']}</td><td><a href='estate.php?property={$r['hID']}'>Buy</tr>"; } print "</table>"; } } $h->endpage(); ?>
  5. Re: [v1]Refill Users I would like this in v2 if posibble please any1
  6. Re: [Free v1 & v2] Gift cheers
  7. Re: [Free] [v1] Jail lol thats a bummer u pay 10k and volia their still in :mrgreen:
  8. Re: [LITE][FREE] Bank   In Phpmyadmin ill do it if u want add me on msn if u Hav [email protected] Cheers Danny
  9. Re: Free Carnival nice mod!
  10. Re: [mccode] Mining mod nice cheers!!
  11. Re: [v1]Refill Users Nice cheers!
  12. Re: [Free] [v1] Scuba Diving nice mod
  13. Re: [mccode] Close page system complicated but effective
  14. Re: FREE RAFFLE MOD nice i bort a copy of http://hatchet.trybalworld.net ages ago
  15. Re: FREE ADVANCED USERSONLINE MOD nice thanks im using this
  16. Re: [LITE][FREE] Bank thanks
  17. Re: [mccode] Proxy Deny Script cheers :-D
  18. Re: [mccode] Owner Panel - Simple tip either learn to code or get a coder to do it 4 a fee no 1 is gunna spend days/weeks doing it 4 nothing
  19. Re: HAS ANY1 GOT A BUILT IN FORUM MOD? i could have a go im busy with my game im making and its gunna be v2 ill makew u a v1 for £5
  20. Re: [mccode] PUB Alterd Version liam add me on msn [email protected]
  21. Re: [mccode] Putt Putt Golf Another Good Game A Reflex Tester!   <title>Your Name Game Here</title> <body> Test your Response time!</p> Click on "Start" first, and wait until the background color changes. As soon as it changes, hit "stop!" <script language="JavaScript"> <!-- //Reflext Tester- By Danny6 //http://criminal-revnege.awardspace.com // Free to use var startTime=new Date(); var endTime=new Date(); var startPressed=false; var bgChangeStarted=false; var maxWait=20; var timerID; var colors=new Array("tomato","chocolate","limegreen","crimson","darkslategray", "aliceblue","mediumslateblue","cornflowerblue","darkorchid","darkkhaki","coral", "darkolivegreen","cadetblue") if (document.all||document.getElementById) document.write('<div id="reflex" style="width:135px;height:135px;border:1px solid black" onClick="stopTest()"></div>') function startTest() { if (document.all) document.all.reflex.style.backgroundColor=colors[Math.floor(Math.random()*colors.length)]; else if (document.getElementById) document.getElementById("reflex").style.backgroundColor=colors[Math.floor(Math.random()*colors.length)]; else if (document.layers) document.reflexns.document.reflexns_sub.document.bgColor=colors[Math.floor(Math.random()*colors.length)]; bgChangeStarted=true; startTime=new Date(); } function remark(responseTime) { var responseString=""; if (responseTime < 0.10) responseString="Well done!"; if (responseTime >= 0.10 && responseTime < 0.20) responseString="Nice!"; if (responseTime >=0.20 && responseTime < 0.30) responseString="Could be better..."; if (responseTime >=0.30 && responseTime < 0.60) responseString="Keep practising!"; if (responseTime >=0.60 && responseTime < 1) responseString="Have you been drinking?"; if (responseTime >=1) responseString="Did you fall asleep?"; return responseString; } function stopTest() { if(bgChangeStarted) { endTime=new Date(); var responseTime=(endTime.getTime()-startTime.getTime())/1000; if (document.all) document.all.reflex.style.backgroundColor="white"; else if (document.getElementById) document.getElementById("reflex").style.backgroundColor="white"; else if (document.layers) document.reflexns.document.reflexns_sub.document.bgColor="white"; alert("Your response time is: " + responseTime + " seconds " + "\n" + remark(responseTime)); startPressed=false; bgChangeStarted=false; } else { if (!startPressed) { alert("press start first to start test"); } else { clearTimeout(timerID); startPressed=false; alert("cheater! you pressed too early!"); } } } var randMULTIPLIER=0x015a4e35; var randINCREMENT=1; var today=new Date(); var randSeed=today.getSeconds(); function randNumber() { randSeed = (randMULTIPLIER * randSeed + randINCREMENT) % (1 << 31); return((randSeed >> 15) & 0x7fff) / 32767; } function startit() { if(startPressed) { alert("Already started. Press stop to stop"); return; } else { startPressed=true; timerID=setTimeout('startTest()', 6000*randNumber()); } } // --> </script> <ilayer id="reflexns" width=135; height=135;><layer id="reflexns_sub" width=135; height=135; left=0 top=0 bgColor=yellow></layer></ilayer> <form name="response"> <input type="button" value=" start " onClick="startit()" style="font-weight:bold"> <input type="button" value=" stop " onClick="stopTest()" style="font-weight:bold"> </form> </body> </html>
  22. Re: [FREE]Music system yeah use any online radio stations url listren live link i think do you have msn add me on [email protected]
  23. Re: [mccode] Register Page Screenshots.php <?php <title> Your Name Game Here</tilte> [img=logo.png] </p> </p> </p> [b]Your Name Game Screen Shots[/b]</p> [img=screenshot1.jpg] Some description [img=screenshot2.jpg] Some description [img=screenshot3.jpg] Some description [img=screenshot4.jpg] Some description if you need more just copy and paste the Some description and instead of 4 add a diff number
  24. Re: [FREE][CRYSTAL GYM]   <?php /* Money gym modded by Danny */ 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=""; if ($ir['hospital'] || $ir['jail']) { print "You cannot use the gym while in Hospital or Jail,Please come back later."; exit; } $_GET['times']= abs((int) $_GET['times']); if(isset($_GET['train'])) { $tgain=0; for($i=1;$i<=$_GET['times'] && $ir['money'] > 0;$i++) { if ($ir['money'] > 0) { $gain=rand(1,3)/rand(200,800)*rand(200,800)*(($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,money=money-$100,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 money=money-$100,exp=exp+$egain,will=will-$wu WHERE userid=$userid",$c); } else { $ir['will']=0; mysql_query("UPDATE users SET money=money-$100,exp=exp+$egain,will=0 WHERE userid=$userid",$c); } $ir['money']-=$100; $ir['exp']+=$egain; } else { $out="You do not have enough cMoney 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['money']} money left. "; } else { $out="<h3>Money Gym:<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['money']} times. <form action='cgym.php' method='get'> <input type='text' name='times' value='1' /><select type='dropdown' name='train'> <option value='strength'>Strength</option> <option value='agility'>Speed</option> <option value='labour'>Work Skill</option> <option value='iq'>IQ</option> <option value='guard'>Defence</option></select> <input type='submit' value='Train!' /></form>"; $h->endpage(); ?>   I edited this so it is money instead of Cyrstals
  25. Re: [FREE][CRYSTAL GYM] you only added IQ Value any dim whit could of added it to the original Copy
×
×
  • Create New...