-
Posts
2,667 -
Joined
-
Last visited
-
Days Won
75
Content Type
Profiles
Forums
Events
Everything posted by Uridium
-
Blow members minds with the ULTIMATE explore page
Uridium replied to Uridium's topic in General Discussion
Re: Blow members minds with the ULTIMATE explore page The image can be anything you want you can create your own with layout numbers or section then plot graph the URLS to various sections.. The image we used is for demonstration purposes. -
I was so fed up with text on the explore page i decided to go one step further.. If this dont blow your members minds then nothing will.. DEMO...... http://www.nightdreamer2000.com/tester.html This is just an idea of what you can achieve in the game Move your mouse over different locations to view Descriptions.. This is an Explore script idea from myself and a good friend called Tattoo... Any feed back would be appreaciated... (been pointed out this idea has been used before on something other than Mccodes..)
-
Re: Tournaments mod For V2 ok this is my tornystaff.php file <?php /** * @author canibal * @copyright 2007 */ include "sglobals.php"; switch($_GET['action']) { case 'tornycreate': tornycreate(); break; case 'tornysub': torny_sub(); break; case 'tornyeditform': tornyeditform(); break; case 'tornyedit': tornyedit(); break; case 'tornysub': torny_esub(); break; case 'deltorny': torny_del(); break; case 'tornydelsub': torny_del_sub(); break; default: print "this script requires an action!!!"; break; } function tornycreate() { global $db,$ir,$c,$h,$userid; print" <form action='tornystaff.php?action=tornysub' method='post'> Tornament Image: <input type='text' name='tornyimg' /> Tornament Cost: <input type='text' name='tornycost' /> Tornament Active(1=yes 0=no): <input type='text' name='tornyactive' /> Tornament Country: <input type='text' name='tornycountry' /> Name of Tornament: <input type='text' name='tornyname' /> Tornament Description: <input type='text' name='tornydesc' /> Tornament currency (1=money 2=crystals 3=Coins): <input type='text' name='tornycur' /> Tornament ID (1-3): <input type='text' name='tornyid' /> <input type='submit' value='Create Tornament' /></form>"; } function torny_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 0) { $p=mysql_query("INSERT INTO torny VALUES('','{$_POST['tornyimg']}','{$_POST['tornycost']}','{$_POST['tornyactive']}','{$_POST['tornycountry']}','{$_POST['tornyname']}','{$_POST['tornydesc']}','{$_POST['tornycur']}','0','0','0','','{$_POST['tornyid']}','0','0','0','0')"); print"Created {$_POST['tornyname']} Tornament!!!!!"; } else { die("ERROR!"); } } function tornyeditform() { global $db,$ir,$c,$h,$userid; print "Select the tornament you want to edit. <form action='tornystaff.php?action=tornyedit' method='post'> Tourny ID: ".torny_dropdownall($c,'torny')." <input type='submit' value='Edit Tornament' /></form>"; } function tornyedit() { global $db,$ir,$c,$h,$userid; $p=$db->query("SELECT * FROM torny WHERE tid={$_POST['tornyall']}"); while($t=$db->fetch_row($p)) { print"<form action='tornystaff.php?action=tornyesub' method='post'> Tornament Image: <input type='text' name='tornyimg' value='{$t['timg']}' /> Tornament Cost: <input type='text' name='tornycost' value='{$t['tcost']}' /> Tornament Active(1=yes 0=no): <input type='text' name='tornyactive' value='{$t['tactive']}' /> Tornament Country: <input type='text' name='tornycountry' value='{$t['tcountry']}'/> Name of Tornament: <input type='text' name='tornyname' value='{$t['ttorny']}' /> Tornament Description: <input type='text' name='tornydesc' value='{$t['tcontent']}' /> Tornament currency (1=money 2=crystals 3=Coins): <input type='text' name='tornycur' value='{$t['tcur']}' /> Tornament Entry Time (Hours): <input type='text' name='tornytime' value='{$t['entrytime']}' /> Tornament ID (1-3): <input type='text' name='tornyid' value='{$t['torny']}'/> <input type='submit' value='Edit Tornament' /></form>"; } } function torny_esub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 0) { if($_POST['tornyimg'] == ''){die("ERROR TORNAMENT IMAGE ERROR!!!!!");} if($_POST['tornycost'] == ''){die("ERROR TORNAMENT COST ERROR!!!!!");} if($_POST['tornyactive'] == ''){die("ERROR TORNAMENT ACTIVE ERROR!!!!!");} if($_POST['tornycountry'] == ''){die("ERROR TORNAMENT COUNTRY ERROR!!!!!");} if($_POST['tornyname'] == ''){die("ERROR TORNAMENT NAME ERROR!!!!!");} if($_POST['tornydesc'] == ''){die("ERROR TORNAMENT DESC ERROR!!!!!");} if($_POST['tornycur'] == ''){die("ERROR TORNAMENT CURRENCY ERROR!!!!!");} if($_POST['tornytime'] == ''){die("ERROR TORNAMENT ENTRY TIME ERROR!!!!!");} if($_POST['tornyid'] == ''){die("ERROR TORNAMENT ID ERROR!!!!!");} else { $p=mysql_query("UPDATE torny SET timg={$_POST['tornyimg']}, tcost={$_POST['tornycost']}, tactive={$_POST['tornyactive']}, tcountry={$_POST['tornycountry']}, ttorny={$_POST['tornyname']}, tcontent={$_POST['tornydesc']}, tcur={$_POST['tornycur']}, torny={$_POST['tornyid']} WHERE tid={$_POST['torny']},'0','0','0','0')"); PRINT <<<OUT Successfully Updated {$_POST['tornyname']} Tornament!!!!!! OUT; } } else{die("ERROR!!!!!");} } function torny_del() { global $db,$ir,$c,$h,$userid; print "Select the tornament you want to Delete. <form action='tornystaff.php?action=tornydelsub' method='post'> User: ".torny_dropdown($c,'torny')." <input type='submit' value='Delete Tornament' /></form>"; } function torny_del_sub() { global $db,$ir,$c,$h,$userid; if($ir['user_level'] != 0) { $p=$db->query("DELETE * FROM torny WHERE tid={$_POST['torny']}"); } } ?> Hope someone can sort this :) after a bit of script changing ive found im able to bering one up but not how i want it to be. when i put this $p=$db->query("SELECT * FROM torny WHERE tid={$_POST['tornyid']}"); i get this message.... but as soon as i change the code to this ..... $p=$db->query("SELECT * FROM torny WHERE tid=5"); im able to change ID 5 so atleast i know the database is working its just the POST script that isnt..
-
Re: [V2]Ranks Mod!!!![V2] Listen up people hear me now ;) he's given you a script that WORKS Regardless of copyright pics. And anyway i bet half of you here wont use them pics and probably make your own up.. So quit moaning and give the guy a pat on the back for Sharing his Coding.. All ive seen on this forum is someone bitching about a mod. the mods are FREE so shut up sit down and stop being an ass.. So EvolutionG weldone matey and thanks for sharing. Ignore the stupid comments on here there only pissed they never thought of it first ;)
-
Re: Tournaments mod For V2 What ive noticed from the script is that when you create/edit/delete a tourny the page instantly goes back to the game menu instead of the Staff menu. could this have something to do with the dropdown error.. the errors im getting are.. when trying to delete a tourny... Fatal error: Call to undefined function: torny_dropdown() in /home2/slavetra/public_html/tornystaff.php on line 131 When trying to Edit a Tourny 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 torny WHERE tid= When trying to Submit a new tourny.. ERROR!
-
Re: [MOD] Member Suggestions Poster Half the Mods on this site are conversions of others scripts. I did state it would be easier using the forums to post suggestions. All ive done with this mod is made it available for those that dont want to use forums..
-
Re: [MOD] Member Suggestions Poster Everything works the same as the Bugtracker did where by staff and the postee see their own post this way you can compare similiar Suggestions with other posts without everyone jumping on the same idea....
-
This Mod was Originally the Bugtracker mod created by Oxidati0n.. All ive done is remodified the text and tables to make it into a suggestions board for your members.. Save the coding below as suggestions.php <?php /*************************** Bug Tracker (1.0) made by oxidati0n -- Designed to make sure your bug asking days are over, Your players can efficiently report them, for those buggy players - It has most hacks removed. Such as HTML block, Javascript and PHP! Requires PHP version 4.44 minimum for this code to work! Created by oxidati0n! Converted to Suggestions by Illusions.. all coding remain the rights of Oxidati0n ***************************/ include "globals.php"; $sd=$db->query("SELECT * FROM `suggestions` WHERE `sug_from` = '$userid'"); if($_GET['x'] == "add" and $db->num_rows($sd) < 7) { if($_POST['urgency'] and $_POST['description']) { //Secure the webpage. My favourite :> $_POST['description']=str_replace("/n", " ", strip_tags($_POST['description'])); $time=time(); //Insert the time log. $ip=$_SERVER['REMOTE_ADDR']; //The users IP - logged. ha ha! $nf="Pending"; //The text for startup $db->query("INSERT INTO `suggestions` (`sug_id`, `sug_posted`, `sug_from`, `sug_description`, `sug_read`, `sug_replyfrom`, `sug_status`, `sug_replytext`, `sug_urgency`, `sug_iplogged`) VALUES ('NULL', '$time', '$userid', '$_POST[description]', '0', '0', '$nf', 'N/A', '$_POST[urgency]', '$ip');") or die("<center>Your Suggestion couldn't be processed at this time. Either contact an admin or try again later. Thanks and sorry for any inconvenience caused [url='suggestions.php']Back[/url] </center>"); print "<center>Your Suggestion has been added! [url='suggestions.php']Back[/url]</center> "; $h->endpage(); exit(); } else { print "<center><h3>Submit your Suggestion</h3></center> <center><table width=60% border=2 cellspacing=1 class='table'></center> <td><font color=red>Your IP logged: ".$_SERVER['REMOTE_ADDR']."</font> Your IP is logged for our benefit and yours, to ensure the Suggestions system is not being abused! Once submitted, your Suggestion will shown as Visible to all other players and authorized staff. <hr /> NOTE: This is only to place your Suggestions Please use the Bug report for reporting other none Suggestive matters </td></tr></table> <center><form action='suggestions.php?x=add' method='post'> Idea For: <select name='urgency'><option value='Game Idea'>Game Idea</option> <option value='Forums Idea'>Forums Idea</option><option value='Layout Idea'>Layout Idea</option></select> Description (include as much detail to your suggestions as possible, It will help us and others get a better Idea of what your suggestion could become: <textarea name='description' cols=60 rows=11></textarea> <input type=submit value='Submit Your Suggestion'></form> </center>"; $h->endpage(); exit(); } } else if($ir['user_level'] > 1 and $_GET['x'] == "remove" and $_GET['report']) { $db->query("DELETE FROM `suggestions` WHERE `sug_id` = '$_GET[report]'"); print "<center>Suggestion Report Row Removed [url='suggestions.php']Back[/url]</center> "; $h->endpage(); exit(); } elseif($ir['user_level'] > 1 and $_GET['x'] == "reply" and $_GET['report']) { if($_POST['text']) { //Make sure the text is ready to go, clean and safe. $text=str_replace(array("<",">","/n"),array("","",""),$_POST['text']); $status=($_POST['status']); $db->query("UPDATE `suggestions` SET `sug_replyfrom` = '$userid', `sug_replytext` = '$text', `sug_status` = '$status' WHERE `sug_id` = '$_GET[report]'"); print "<center>Suggestion has been Edited [url='suggestions.php']Back[/url]</center> "; $h->endpage(); exit(); } else { print "<center>[b]Make a reply[/b] <form action='suggestions.php?x=reply&report=$_GET[report]' method='post'> Status: <select name='status'> <option value='Under Review'>Under Review</option> <option value='Need More Feedback'>Need More Feedback</option> <option value='Inappropriate'>Inappropriate</option> <option value='Cancelled'>Cancelled</option></select> Reply: <textarea name='text' cols=60 rows=11>Your reply here...</textarea> <input type=submit value='Submit Reply!'> </form></center>"; $h->endpage(); exit(); } } $_GET['st'] = abs((int) $_GET['st']); $st=($_GET['st']) ? $_GET['st'] : 0; print "<center><h3>Make a Suggestion</h3></center>"; $sd=$db->query("SELECT * FROM `suggestions` WHERE `sug_from` = '$userid'"); if($db->num_rows($sd) < 7) { print "<center>[url='suggestions.php?x=add'][Add a Suggestion][/url]</center> "; } print "<center>[b]You can submit several Suggestions[/b] </center>"; if(!$_GET['selectBug']) { $reports=$db->num_rows($db->query("SELECT * FROM `suggestions`")); $shown=10; //How many rows should be shown in one row $pages=(int) ($reports/$shown)+1; if($membs % $shown == 1) { $pages--; } print "<center>Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*$shown; print "[url='suggestions.php?st=$stl']$i[/url] </center>"; } } if($ir["user_level"] > 1) { $man="<th>Manage</th>"; $cols=8; $db->query("UPDATE `suggestions` SET `sug_read` = '1' WHERE `sug_read` = '0'"); } else { $cols=7; } print " <center><table width=90% border=2 cellspacing=1 class='table'></center> <tr style='background:darkred'> <th colspan={$cols}>Viewing all reported Suggestions - </th> </tr> <tr style='background:darkred'> <th>Ref</th> <th>From</th> <th>Regards</th> <th>Suggested</th> <th>Comments</th> <th>Read</th> <th>Status</th> ".$man."</tr>"; if(!$_GET['selectBug']) { $q=$db->query("SELECT * FROM `suggestions` ORDER BY `sug_posted` DESC LIMIT $st,10"); } else { $q=$db->query("SELECT * FROM `suggestions` WHERE `sug_id` = '$_GET[selectBug]' LIMIT 1;"); } if($db->num_rows($q) == 0) { print "<tr style='background:darkred'> <td colspan={$cols}>There are no current reports been posted.</td> </tr>"; } while($r=$db->fetch_row($q)) { if($r['sug_from'] == $userid or $ir['user_level'] == 2 or $ir['user_level'] == 3) { $user_q=$db->query("SELECT * FROM `users` WHERE `userid` = '$r[sug_from]'"); $p=$db->fetch_row($user_q); if($r['sug_replyfrom'] > 0) { $user_q2=$db->query("SELECT * FROM `users` WHERE `userid` = '$r[sug_replyfrom]'"); $d=$db->fetch_row($user_q2); } $x=$r["sug_id"]; if($r['sug_read'] == 1) { $re="<font color=green>[b]Read[/b]</font>"; } else { $re="<font color=red>[b]No[/b]</font>"; } print " <tr style='background:darkred'> <td align=center>".number_format($x)."</td> <td align=center>[url='viewuser.php?u={$x}']".$p['username']."[/url] [".$p['userid']."]</td> <td align=center>".$r['sug_urgency']."</td> <td align=center>".$r['sug_description']."</td> <td align=center>"; if($r['sug_replyfrom'] > 0) { print "[b]".$r['sug_replytext']." [i]Replied from [url='viewuser.php?u=$d[userid]']$d[username][/url][/i]"; } else { print "<center>Still Under Review</center>"; } print " </td> <td align=center>".$re."</td> <td align=center>$r[sug_status]</td>"; if($cols == 8) { print " <td align=center> <font color=black>IP Logged: [b]".$r['sug_iplogged']."[/b]</font> [url='suggestions.php?x=remove&report={$x}']Remove[/url] [url='suggestions.php?x=reply&report={$x}']Make Reply[/url] [url='mailbox.php?action=compose&ID={$p[']Mail User[/url] </td>"; } print "</tr>"; } else { print "<tr style='background:darkred'><center> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> <td align=center>Hidden</td> </center></tr>"; } } print "</table></center> "; if(!$_GET['selectBug']) { print "<center>Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*$shown; print "[url='suggestions.php?st=$stl']$i[/url] </center>"; } } $h->endpage(); ?> Then open up your phpmyadmin and dump these new tables into it.. -- -- Table structure for table `suggestions` -- CREATE TABLE `suggestions` ( `sug_id` int(11) NOT NULL auto_increment, `sug_posted` varchar(255) NOT NULL, `sug_from` int(11) NOT NULL, `sug_description` longtext NOT NULL, `sug_read` tinyint(2) NOT NULL, `sug_replyfrom` int(11) NOT NULL, `sug_status` varchar(255) NOT NULL, `sug_replytext` longtext NOT NULL, `sug_urgency` varchar(255) NOT NULL, `sug_iplogged` varchar(255) NOT NULL, PRIMARY KEY (`sug_id`) ) ENGINE=MyISAM ; Your members can now submit their gaming Ideas. You could however use your forums to do this but i suuppose this one looks more creative lol Had to edit this page about 20 times due to my dyslexic keyboard...
-
Re: Honor Awards - V2 - Modified by HarryB Yep i gotta agree with Harry i can see them too. But as i mentioned above there is an error on the files in each of the folders where there is a double barrel mention of php.php on the final link bottom of all the scripts..
-
Re: Honor Awards - V2 - Modified by HarryB One thing i had to do was when i downloaded the zip file all the folders that was on it had the files from the folder From Attacks Won Awards - Star Awards folder all the files in them had reference to. print ".php[/b]']Back to Honor Awards "; just thought id point that minor mistake out
-
Re: Honor Awards - V2 - Modified by HarryB Harry does this Mod Need a Cron ? as i exchanged one of my honors and now im getting a message saying that i cant honor anymore ? how do i reset it or is there a Cron involved
-
Re: Advanced Dating (v1) Either my day crons arnt working or theres something wrong as the 8 hours it says to complete a date isnt working even after 24 hours ..
-
How to Make you rmarried Stats Display in viewuser.php
Uridium replied to Homicidal's topic in General Discussion
Re: How to Make you rmarried Stats Display in viewuser.php I have actually got this in the viewuser.php Problem is that everyone is married to the same person Example Beth views johns profile jon is married to beth. Beth then views harrys profile and harry is married to john. Beth views 20 other peoples Profiles and finds john is amrried to them all. And when john Viws Beths he sees shes married to everyone too,, How can this be stopped... I'll post the code im using.. For refernce. -
Re: [MOD] Voice Mail ? I statede above that this would shut down when email box is empty.. I mis-worded that what i mean was when you have read the new email thats when the voice shuts down.. Dont want people thinking they have to completely empty their email box to shut it off.. Sorry if my wording has caused some confusion.. Regards the mp4 i tried to keep the feature as small as possible so its not taking up too much bandwidth when played. Im aware this mod is not even longer than 2 lines but the feed back from it has been enormous..
-
Im hoping someone can help me with this when my members stale mate they get a message saying that they shuld have trained harder then for some reason they are unable to attack again unless i goto my PhpMyAdmin under Users/Attacking/Attcking and remove the number thats there usually the number is 252.and replacing with zero This is the only way ive found that will unban them if unban is the wrong word,,,
-
Re: [MOD] Voice Mail ? Just to mention as i forgot and incase people as the swf doesnt display on screen you will hear the voice of the alert but the swf will be hidden... the beauty of using flash to pm the message is you can add what ever you like to it.. If you want the flash to display a message make sure that the code above has the option of hidden="true" to hidden="false" you can now display the Flash and the message..... For those that want a voice generated Pm try out http://public.research.att.com/~ttsweb/tts/demo.php Its a Text to voice Generator has male and female voices and different Languages.. I suggest you play with the text as sometimes they dont sound like the should so for example if you were want to say.. "A new private message has arrived" you would be better typing it into the Vocal text as " Ay New Voice Mess age has Arrived" the spaces denote the lengh to pause.. then you can save your voice text and place it into your newpm.fla file
-
ok this is a very small mod but i think it will keep you members happy.. This will send out a Human voice when your members recieve an email. Shuts down when Email box is empty.. open up mainmenu.php Just Replace this line which on mine is about line 35 if($mc > 0) { print "[url='mailbox.php']<font color=yellow>Read New ($mc)[/url] </font>[img=greenemail.gif] "; } With this one Below if($mc > 0) { print "[url='mailbox.php']<font color=yellow>Read New ($mc)[/url] </font>[img=greenemail.gif]<embed type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' width='0' height='0' name='newpm' src='newpm.swf' bgcolor='#DDDDDD' quality='high' swLiveConnect='true' allowScriptAccess='samedomain' hidden='true'></embed></object> "; } Ive included 1 file that needs to be placed in your root folder or subfolder you will have to download the newpm.zip from my server as i cant attach it to this post again place it in either root or sub. http://www.nightdreamer2000.com/newpm.zip
-
Re: Tournaments mod For V2 << Removed >> by illusions
-
Re: Tournaments mod For V2 Im also getting this Error anyone actually got this working and if so could you post your fix please it would be appreciated.
-
Re: [Free] [v1] Monkey Slaves Im more impressed to the fact i got it work lol im no PHP. Not that im saying it didnt it just had a few things that didnt want to happen.. Im no PHP coder never was really what i know from PHP is what ive learn't from making mistakes and trying to fix them as with your monkey slaves script. I noticed on your New Post at the beginning the script looks totally different yet does the same thing. See I cant do that i have to, have the code infront of me and just alter bit by bit uploading everytime i make a change and see what happens. It is a good feeling though when something happens that didnt happen when you first got the script. Ive often tried taking bits from scripts that are not even related to MCCodes and seeing what the outcome would be,,, Sometimes it works sometimes you get the errors from hell. Well thats enough about my coding experiences lol But one thing i have learnt through all this is. You dont get to sleep much once youve started working on something lol
-
Re: [Free] [v1] Monkey Slaves Now this script annoyed the hell out of me.. when you rabn out of cash you could still buy slaves.. which sent your balance to - then you would get Cash for your searches which granted was displayed up until the point you found some more cash then it would end up showing the new amount you had found instead of the old+the new. So i sat up all night drinking coffee and kicking the cat. And finally got the darn thing to work. ;) Call the file monkeysearches.php and if your going to call it something else then make sure you change all the current URLS to point to your new one on the script.... V2 Version... <?php include "globals.php"; echo "<center><h3> Slaves Search Central</h3> <table border='1' width='80%'><tr><td align='center'><u>Slaves Stats</u></td></tr> <tr><td> - Your Slaves: {$ir['monkeys']} - Slaves Hunger: {$ir['monkey_hunger']} </td></tr><tr><td align='center'> <u>Slave Options</u></td></tr><tr><td> Buy Slaves: <form action='monkeysearches.php' method='POST'> <input type='text' name='amount'> <input type='submit' name='submit' value='Buy'> </form> ($20000 per slave) <td align='center'>[ [url='monkeysearches.php?go=feed']Feed slaves ($2000 per slave)[/url] ] <td align='center'>[ [url='monkeysearches.php?go=search']Search (10 Hunger)[/url] ] </td></tr></table> "; if ($_POST['amount']>'0') { $_POST['amount']= abs(@intval($_POST['amount'])); $price=$_POST['amount']*20000; if ($ir['money']<$price) { echo "Sorry you do not have enough!"; $h->endpage(); exit; } echo "You bought {$_POST['amount']} Slave(s)!"; $amount=htmlspecialchars(mysql_real_escape_string($price)); $newmonkeys=$ir['monkeys']+$_POST['amount']; $newmoney=$ir['money']-$amount; $db->query("UPDATE users SET monkeys='$newmonkeys' WHERE userid=$userid"); $db->query("UPDATE users SET money='$newmoney' WHERE userid=$userid"); $h->endpage(); exit; } if ($_GET['go']=='feed') { $moneyrequired=$ir['monkeys']*2000; if ($ir['money']<$moneyrequired) { echo "<h3>You dont have enough cash to feed your slaves!</h3>"; $h->endpage(); exit; } if ($ir['monkey_hunger']>='100') { echo "<h3>Your slaves dont need feeding!</h3>"; $h->endpage(); exit; } echo "<h3>You fed your slaves! they now feel refreshed!</h3>"; $db->query("UPDATE users SET monkey_hunger='100' WHERE userid=$userid"); $db->query("UPDATE users SET money=money-$moneyrequired WHERE userid=$userid"); $h->endpage(); exit; } if ($_GET['go']=='search') { if ($ir['monkeys']<'1') { echo "<h3>It would help if you bought a slave first!</h3>"; $h->endpage(); exit; } if ($ir['monkey_hunger']<'10') { echo "<h3>Your slaves are to hungry to search!</h3>"; $h->endpage(); exit; } $rand=mt_rand(1,3); if ($rand=='1') { echo "<h3>Your Slaves find {$ir['monkeys']} crystals !</h3>"; echo " [url='monkeysearches.php?go=search']Try Again[/url]"; $crystals=$ir['monkeys']+$ir['crystals']; $safecrystals=mysql_real_escape_string($crystals); $db->query("UPDATE users SET crystals='$safecrystals' WHERE userid=$userid"); $db->query("UPDATE users SET monkey_hunger=monkey_hunger-10 WHERE userid=$userid"); $h->endpage(); exit; } if ($rand=='2') { $randcash=mt_rand(1,500); $cash=$ir['money']+($ir['monkeys']*$randcash); $newcash=$ir['money']+($ir['monkeys']*$randcash); $safecash=mysql_real_escape_string($newcash); echo "<h3>Your slaves found you $$randcash!</h3>"; echo " [url='monkeysearches.php?go=search']Try Again[/url]"; mysql_query("UPDATE users SET money='$safecash' WHERE userid=$userid", $c) or die(mysql_error()); mysql_query("UPDATE users SET energy=energy-3 WHERE userid=$userid", $c); mysql_query("UPDATE users SET monkey_hunger=monkey_hunger-10 WHERE userid=$userid", $c); $h->endpage(); } if ($rand=='3') { echo "<h3>Your slaves didnt find Nothing Zilch Nada!</h3>"; echo " [url='monkeysearches.php?go=search']Try Again[/url]"; $db->query("UPDATE users SET monkey_hunger=monkey_hunger-10 WHERE userid=$userid"); $h->endpage(); exit; } } $h->endpage(); ?> LAID TO REST THANK GOD ;)
-
Re: Item Type Upgrade Too be honest the fact that the Delete File Types wasnt introduced into the game is beyond me or even edit item types we all have typos seems those that created the script thought we were all Dictionary enthusiasts.. Yes your right it would have been easier but when i tied to implement the drop down method for some reason although it said the Item was Deleted it still remained on the list even after refreshing. When i tested the text option that worked without fail so i just left it as it was...
-
Re: Item Type Upgrade Just an update ive managed to work out how to ammend Typos in item names also been playing with the staff list and added.. Gallery Edit. = This allows you to change the Profile Picture of any User you find to be Offensive also sends the User a Message of why you had to change their picture... 13under = If your game doesnt have an age rating any swear words will be replaced with the words OOOPS! or '#%$'# Off/On..Pic. Allows you to Turn off Game images. Bugrep: Sends an auto message to the person sending in a bug report with the message. Your Report has ben submitted to a member of staff. Thank you. Also sends a staff message to the person dealing with Certain Bug Topics... Rain on/off: Allows you to mimic weather conditions Rain ON will produce a rain effect of / floating down the screen to resemble rain droplets.. Closeshop: Allows you to Close any shop in the game for a certain lenght of time as would happen in normal day life.. Ive completed two of these scripts and are working on the rest will keep you updated. Some of the scripts will be charged some will be free...
-
Re: updated login.php Well I have to admit yours does look good infact its very good I take my hat off to your accomplishments. Well done. I wont show my attempt as its feeble runnish and i only got the script to learn about how MCCodes work lol
-
Re: updated login.php Sorry are you Gloating ?? I still Prefer Skulls as its his First attempt. ;)