
jds137
Members-
Posts
402 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by jds137
-
[mccode2] 3 in one bank for people with multiple currencys
jds137 replied to MDK666's topic in Free Modifications
Re: [mccode2] 3 in one bank for people with multiple currencys Whats the cron for intrest? -
Re: Airplanes [V2] nope
-
Re: [MCCODES V2] User Holidays script Does this help? I could add the rest of it, but its forums, and we all need to work together. Besides some one will claim it as theirs, like always... Chuds... if($ir['holiday']){ print"<table class='textarea' width='555'><td align='center'>You are currently on holiday for another {$ir['holiday']} days. Click the link below to return from your holiday. [url='holiday.php?action=return'][b]Return from holiday[/b][/url]</td></table> "; } switch ($_GET['action']) { case 'return' : Global $ir,$h,$userid,$c; print"<table class='textarea' width='555'><td align='center'>You have returned from holiday. [url='index.php'][b]Home[/b][/url] </td></table>"; mysql_query("update users set holiday=0,holiwait=14 where userid=$userid",$c); break;
-
Re: [v2]User Competitions[v2] Parse error: syntax error, unexpected T_VARIABLE in /home/jds137/ml/public/createcomp.php on line 36
-
Re: So many of one? Lets not forget to mention all the games who took the source codes, changed a thing or 2 and are selling them as their own... *****cough**raven*****cough***** All this makes me wonder will we ever see anything new and exciting? I have stuff I could add, but then some smart ass would claim it as theirs , and hack my site. Lets remember lots of people are back stabbing ..... .
-
Re: Ravan Game Engine Modified, how can you call changing just a banner modifying it?
-
Re: [MCCODE V2] User Competitions Parse error: syntax error, unexpected T_VARIABLE in /home/jds137/ml/public/createcomp.php on line 34
-
Re: [MCCODE V2] User Competitions I also found the cron not working out.
-
Re: Airplanes [V2] Error! This script requires an action. is what I get in staff_travel.php
-
Re: Airplanes [V2] Your Destination: Showing all flights to that area.... QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was SELECT * FROM airplanes WHERE airplanes_loc=
-
Re: [mccode]Multi alert It also sends non stop events, reminds me of a virus. lol
-
Re: Simple register edit Lets not forget starter packs work well too.
-
Re: V2 Staff password with admin function Wouldn't this work just as well, less coding :P <?php session_start(); // Define your username and password $username = "xxxxx"; $password = "xxxxx"; $pass = ""; if(isset($_POST['txtPassword'])) { $pass = $_POST['txtPassword']; } if ($pass != $password) { ?> [img=title.jpg] <h1>Staff Password Protected Panel</h1> <body bgcolor="gray"> <BODY TEXT="black"> <style type="text/css"> body { text-align: center; } </style> <form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <label for="txtpassword">Password:</label> <input type="password" title="Enter your password" name="txtPassword" /></p> <input type="submit" name="Submit" value="Login" /></p> <form><input type="button" value=" <-- BACK " onClick="history.go(-1);return false;" /></form> </form> <?php } else { $_SESSION['staff'] = 1; ?> [img=title.jpg] <h1>Read this before using staff panel access!!!</h1> <body bgcolor="gray"> <BODY TEXT="black"> <style type="text/css"> body { text-align: center; } </style> <u>This is a protected page, for staff use only. We keep logs of everyone who comes in here, and if you do decide to try enter with out permission, an error log will be generated. Which will be sent to the owner who will prosecute you to the full extent of the law.<u> This game and all contents is protected by the laws of the State of Arizona. Copyright 2009 Psycho Killa Entertainment </p> [url="helper.php"]Player Helper Panel[/url] [url="ass.php"]Assistant Panel[/url] [url="secpanel.php"]Secretary Panel[/url] [url="admin.php"]Admin Panel[/url] [url="owner.php"]Owner Panel[/url] [url="staffpoints.php"]Staff Points[/url] [url="index.php"]Back to game[/url] <?php } ?> Your IP address is being logged! <?php echo "Your Ip Address is: " .getenv("REMOTE_ADDR"); echo " Todays Date is: " . date("m/d/y") ." " ; ?>
-
Re: gym exp I wasnt sure where to add it, here is my gym code... <?php $macropage="gym.php"; include "globals.php"; include "travellingglobals.php"; if($ir['gympass']== 0) { die("You do not have a gym club membership, [url='passesshop.php']Buy a Gym Pass[/url]"); } 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['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(1,3)/rand(8000,10000)*rand(8000,10000)*(($ir['will']+20)/150); $ir['will']-=rand(1,2); if($ir['will'] < 0) { $ir['will']=0; } } if($ir['prison']) { $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; } } $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['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']}, 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(); ?>
-
Re: Never Ending Story Dawson DeTowel a psychic could see that Robin Banks was up to no good, just by the way she looked drooling over Nynas picture. She contacted E. Nuff who in turn became very sad, that the woman he had a crush on, was so deeply in love with someone she never met.
-
Re: Time to Guess Nynas Age ;) Nyna is 29, I know that for a fact. Its because all women stop aging at 29...
-
Re: [mccodes v1] Referals Logs Its missing things. Are you sure Zeros Mod will work? lol
-
mccode-v2 Shops item stock - as requested (Not Tested)
jds137 replied to radio_active's topic in Free Modifications
Re: [MCcode v2] Shops item stock - as requested (Not Tested) We need to add the updated staff_shops.php as well <?php include "sglobals.php"; if($ir['user_level'] > 3) { die("403"); } //This contains shop stuffs switch($_GET['action']) { case 'newshop': new_shop_form(); break; case 'newshopsub': new_shop_submit(); break; case 'newstock': new_stock_form(); break; case 'newstocksub': new_stock_submit(); break; case 'delshop': delshop(); break; case 'deleteshopitem': delete_shopitem_form(); break; case 'deleteshopitem2': delete_shopitem2_form(); break; case 'deleteshopitem3': delete_shopitem3_form(); break; default: print "Error: This script requires an action."; break; } function new_shop_form() { global $db,$ir,$c,$h; print "<h3>Adding a New Shop</h3> <form action='staff_shops.php?action=newshopsub' method='post'> Shop Name: <input type='text' name='sn' value='' /> Shop Desc: <input type='text' name='sd' value='' /> Shop Location: ".location_dropdown($c,"sl")." <input type='submit' value='Create Shop' /></form>"; } function new_shop_submit() { global $db,$ir,$c,$h; if(!isset($_POST['sn']) || !isset($_POST['sd'])) { print "You missed a field, go back and try again. [url='staff_shops.php?action=newshop']> Back[/url]"; } else { $sn=$_POST['sn']; $sd=$_POST['sd']; $db->query("INSERT INTO shops VALUES('',{$_POST['sl']},'$sn','$sd',0)"); print "The $sn Shop was successfully added to the game."; stafflog_add("Added Shop $sn"); } } function new_stock_form() { global $db,$ir,$c,$h; print "<h3>Adding an item to a shop</h3> <form action='staff_shops.php?action=newstocksub' method='post'> Shop: ".shop_dropdown($c,"shop")." Item: ".item_dropdown($c,"item")." <input type='submit' value='Add Item To Shop' /></form>"; } function new_stock_submit() { global $db,$ir,$c,$h; $db->query("INSERT INTO shopitems VALUES('',{$_POST['shop']},{$_POST['item']},0)"); print "Item ID {$_POST['item']} was successfully added to shop ID {$_POST['shop']}"; stafflog_add("Added Item ID {$_POST['item']} to shop ID {$_POST['shop']}"); } function delshop() { global $db, $ir, $c, $h; if($_POST['shop']) { $sn=$db->fetch_single($db->query("SELECT shopNAME FROM shops WHERE shopID={$_POST['shop']}")); $db->query("DELETE FROM shops WHERE shopID={$_POST['shop']}"); $db->query("DELETE FROM shopitems WHERE sitemSHOP={$_POST['shop']}"); print "Shop {$sn} Deleted."; stafflog_add("Deleted Shop $sn"); } else { print "<h3>Delete Shop</h3><hr /> Deleting a shop will remove it from the game permanently. Be sure.<form action='staff_shops.php?action=delshop' method='post'> Shop: ".shop_dropdown($c, "shop")." <input type='submit' value='Delete Shop' /></form>"; } } function delete_shopitem_form() { global $ir, $c; $q = mysql_query("SELECT * FROM shops ORDER BY shopNAME DESC",$c); print "<h3>Remove Shop Item</h3> You can remove any item which has been added to a shop <form action='staff_shops.php?action=deleteshopitem2' method='post'> Shop Name : <select name='shop'>"; while($r=mysql_fetch_array($q)) { print "<option value='$r[shopID]'>$r[shopNAME]</option>"; } print "</select> <input type=submit value='-Select Shop-'></form> [url='http://smigs.net']Created by Psycho Killa Entertainment[/url] "; } function delete_shopitem2_form() { global $ir,$c; if(!$_POST['shop']) { print "I'm sorry but you failed to collect the data as required for completing this process [url='staff_shops.php?action=deleteshopitem']Back[/url] "; } else { $q=mysql_query("SELECT si.*,i.* FROM shopitems si LEFT JOIN items i ON si.sitemITEMID=i.itmid WHERE si.sitemSHOP='$_POST[shop]'"); print "<h3>Select Item To Delete</h3> Here you are going to select which item you want removed from the shop <form action='staff_shops.php?action=deleteshopitem3' method='post'> Shop Item : <select name='shopitem'>"; while($r=mysql_fetch_array($q)) { print "<option value='$r[itmid]'>$r[itmname]</option>"; } print "</select> <input type=hidden name='shop' value='$_POST[shop]'> <input type=submit value='-Select Item'></form>"; } } function delete_shopitem3_form() { global $c,$ir,$h; if(!$_POST['shop'] or !$_POST['shopitem']) { print "I'm sorry you failed to collect the data as required to complete this process [url='staff_shops.php?action=deleteshopitem']Back[/url] "; } else { mysql_query("DELETE FROM shopitems WHERE sitemSHOP='$_POST[shop]' AND sitemITEMID='$_POST[shopitem]'"); print "Congratulations, The shop item has successfully been removed [url='flower.php']Back[/url] "; } } $h->endpage(); ?> -
Re: [mccodes v2] Player Report It worked like a charm. How could we go about adding a date to this? I know it would be helpfull in making sure reports are current.
-
Re: [mccodes v2] Player Report Function clean, I dont have that. Would anyone be willing to explain what it is?
-
Re: Have any mod ideas post here! I have a good idea for a really cool travel Modd that is unique...
-
Re: [Mccodes Version 2] Player Report Fatal error: Call to undefined function clean() in /home/ml/public_html/preport.php on line 7 I added it, and did not get any events. Also I removed the word clean..
-
Re: [mccode v2] Gang Recruit I added it, and no events are being sent out? V2
-
Re: Help Re Doing Search an area Modd I fired em, after he presented me with that crap. lol
-
A former coder left this on my site, and after looking at I feel it has potential to be really great. It lets you search an area by using a set of arrow keys. I dont know how to add em, right now its all screwed up. Anyone wanna tackle making this better, then we can give it away to CE members? <?php include "globals.php"; if(!$_GET['searching']) { // Begin Static Display // Display header print "<h1> <center> [b] <font color=red> Welcome To Sir Smigs Castle Where You Can Go To Find Stuff. </font> [/b] </center> </h1> "; // Display 2 discreption of choices print "<h3> <center> [b] <font color=blue> You are standing in a room with several Directions you can go. Which way will you choose. </font> [/b] </center> </h3> "; // Directions print "<center>Directions To Walk</center> <center><table border='0' class='table' width='20%' bordercolor='#939393'><tr background='tablehgrad.png'> <td><center>[url='castle.php?searching=hope']left foward[/url]</td><td><center>[url='castle.php?searching=i']foward[/url]</td><td><center>[url='castle.php?searching=love']right foward[/url]</td></tr><tr> <td><center>[url='castle.php?searching=you']left[/url]</td><td><center>[url='castle.php?searching=but']up[/url]</td><td><center>[url='castle.php?searching=youve']right[/url]</td></tr><tr> <td><center>[url='castle.php?searching=hurt']left backword[/url]</td><td><center>[url='castle.php?searching=me']backword[/url]</td><td><center>[url='castle.php?searching=deeply']right backword[/url]</td></tr><tr> </table> "; // End Static Display } else { // Begin Dynamic Display // Hope if ($_GET['searching'] == 'hope') { if($ir['castle'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } // I if ($_GET['searching'] == 'i') { if($ir['walking'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } // Love if ($_GET['searching'] == 'love') { if($ir['walking'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } // You if ($_GET['searching'] == 'you') { if($ir['walking'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } // But if ($_GET['searching'] == 'but') { if($ir['walking'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } // Youve if ($_GET['searching'] == 'youve') { if($ir['walking'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } // Hurt if ($_GET['searching'] == 'hurt') { if($ir['walking'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } // Me if ($_GET['searching'] == 'me') { if($ir['walking'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } // Deeply if ($_GET['searching'] == 'deeply') { if($ir['walking'] ==0) { mysql_query("UPDATE users SET will=will-0,energy=energy-0,money=money-0 WHERE userid=$userid",$c); print "You Have no Steps Left you can try Again at new day. [url='index.php']back[/url]!"; } else $mel=rand(1,5); if ($mel==1) { print "You walk down the hall way and dont find anything. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } if ($mel==2) { print "You walk down the hall way and fall into a deep pit. When you come to your in the hospital. [url='index.php']Home[/url]"; $db->query("update users set castle=castle-1,hospital=60,hospreason='Fell into a deep pit in Sir Smigs Castle.',money=money-0 where userid=$userid"); } if ($mel==3) { print "You walk down the hall way and dont find your way out, but you find 3 tokens. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); $db->query("update users set tokens=tokens+3 where userid=$userid"); } if ($mel==4) { print "You walk down the hall way and dont find your way out, but you find some money. [url='castle.php']Continue Searching[/url]"; $db->query("update users set castle=castle-1,money=money+1234 where userid=$userid"); } if ($mel==5) { print "You walk down the hall way and you find nothing. [url='castle.php']Home[/url]"; $db->query("update users set castle=castle-1 where userid=$userid"); } } } $h->endpage(); ?> db part thats needed walking int 11 not null 50