Jump to content
MakeWebGames

Uridium

Members
  • Posts

    2,667
  • Joined

  • Last visited

  • Days Won

    75

Everything posted by Uridium

  1. Still finishing this off but i thought id let you have a sneak preview before its made public..... DEMO GO TO SCHOOL LINK FIXED ADMIN FEATURES Whats it got then ? Admins no longer have to set the amount of days a course will finish it now works of Percentages. So for example.. You can set your Schooling to say 0.5% and each time the user clicks the educate link it will go up by 0.5% each time until it reaches 100% then the course has been finished. Aswell as setting a description for the Module you can now set up Other text events such as whats happening whilst your being educated + the final outcome text once the course is completed. You can still set up the usual abilities as with the old Course system but now you can decide wether to give an item as a reward or give cash as a reward for finshing the tuition.   User End When your user starts a course they must be on your site for the education to finish rather than wait for the days to run out. They will receive 18 clicks per day to educate their given subject and as before this depends on what percentage you set the tuition up from the admin panel. Users have to wait 1 hour before they can click again and the info screen will tell them what their current status is.
  2. Re: [mccode 2] another explore screenshot.
  3. Re: [V2]New Explore It shouldnt take more than 2 mins to test a script. offline or online. It just gives people peace of mind that yuve put yourself out to clarify any errors before publishing.
  4. Re: [V2]New Explore   Sorry but why do people do that. Put things on here and then decide not to test it. This is probably a decent script and will probably work but for gods sake quit being lazy and test the thing before you add it on here.
  5. Re: [mccode] Advanced Warning System have my copy cos i know this one works and if it dont work on yours then you have an error on another file... This version also includes the Event to inform a user.... THIS FOR THE V2 VERSION warnings.php   <?php /*----------------------------------------------------- -- Mono Country v2.0 -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ include "globals.php"; if($ir['user_level'] > 2) { echo'You do not have the power to do this!'; $h->endpage();exit(); } switch($_GET['action']) { case 'add': addwarning(); break; case 'addsub': addwarning2(); break; case 'del': deletewarning(); break; case 'edit': editwarning(); break; case 'edit2': editwarning2(); break; default: index(); break; } function index() { global $ir,$userid,$db; print "<h3>Viewing Warnings For ID: <a href=viewuser.php?u={$_GET['user']}>{$_GET['user']}</a></h3> "; $q=$db->query("SELECT w.*,u.* FROM warnings w LEFT JOIN users u ON w.warner=u.userid WHERE w.user={$_GET['user']} ORDER BY w.time DESC"); print "<center><font color=red><h4>Total Warnings: ".$db->num_rows($q)." </font></h4> [<a href=warnings.php?action=add&userid={$_GET['user']}><font color=#DCDCDC>Add Warning</font></a>] <table width=90% border='1' align=center><tr><tr class='h'><td><font color=#DCDCDC>Warned By:</font></td><td width=40%><font color=#DCDCDC>Reason</font></td><td><font color=#DCDCDC>Date</font></td><td><font color=#DCDCDC>Links</font></td></tr>"; while($r=$db->fetch_row($q)) { $warned=date('F j, Y, g:i:s a',$r['time']); print "<tr><td><a href=viewuser.php?u={$r['userid']}>{$r['username']}</a></td><td>{$r['warnedfor']}</td><td>$warned</td><td>"; if($ir['userid'] == 1) { print "[<a href=warnings.php?action=del&ID={$r['id']}>Remove</a>] "; } if($ir['warner'] == $userid || $userid == 1) { print "[<a href=warnings.php?action=edit&ID={$r['id']}>Edit</a>]"; } print "</td></tr>"; }} function addwarning() { global $ir,$userid,$db; print "<form action=warnings.php?action=addsub method=post> <input style='visibility: hidden' name=user value={$_GET['userid']}> Reason: <textarea rows=7 cols=30 name=reason></textarea> <input type=submit value='Add warning'></form>"; } function addwarning2() { global $ir,$userid,$db; $_POST['user']=($_POST['user']); $_POST['reason']=($_POST['reason']); $db->query("INSERT INTO warnings VALUES ('','{$_POST['user']}','{$_POST['reason']}','$userid',unix_timestamp())"); $checkfed=$db->query("SELECT * FROM warnings WHERE user='{$_POST['user']}'"); if($db->num_rows($checkfed) > 2) { $db->query("UPDATE users SET fedjail=1 WHERE userid='{$_POST['user']}'"); $db->query("INSERT INTO fedjail VALUES('','{$_POST['user']}','300','$userid','Reached 3 warnings in game. Account jailed.')"); } print "Warning Added! [*]<a href=viewuser.php?u={$_POST['user']}>Back to users profile</a>"; event_add($_POST['user'],"You have received the Following Warning {$_POST['reason']}",$c); } function deletewarning() { global $ir,$userid,$db; if($ir['userid'] != 1) { die("Owner Only");} $db->query("DELETE FROM warnings WHERE id={$_GET['ID']}"); print "Warning Deleted"; } function editwarning() { global $ir,$userid,$db; $target=$_GET['ID']; $edit=$db->query("SELECT * FROM warnings WHERE id='$target'"); while($r=$db->fetch_row($edit)) { if($r['warner'] != $userid || $userid != 1) { die("You never set this warning, therefore cannot edit it"); } print "<h3>Edit Warning</h3> <form action=warnings.php?action=edit2 method=post> <input style='visibility: hidden;' name=id value=$target> <textarea rows=7 cols=30 name=reason>{$r['warnedfor']}</textarea> <input type=submit value='Edit Warning'></form>"; } } function editwarning2() { global $ir,$userid,$db; $db->query("UPDATE warnings SET warnedfor={$_POST['reason']} WHERE id={$_POST['id']}"); print "Warning Updated. [*]<a href=index.php>Home</a>"; } ?>
  6. Re: [mccode] Advanced Warning System Someone asked me to include an EVENT when users get warning so heres the fix. open warnings.php find   print "Warning Added! [*]<a href=viewuser.php?u={$_POST['user']}>Back to users profile</a>";   Directly underneath add.   event_add($_POST['user'],"You have received the Following Warning {$_POST['reason']}",$c);   Users who get warnngs will also receive an Event.
  7. Stumbled Across this one by pure Accident and WOW its worth a look. Download site http://dragonprime.net/ Excellent scripts and a massive game very easy to install and comes with Masses of options for the user and staff.
  8. Re: [mccode] Diamond gems, with a Diamondtemple.php for v2.0   i wanted him to know what an epic fail that was I wish people would Bump my threads theyve been collecting dust for ages lol
  9. Re: Bank Layout V2 +1 Excellent addition its people like you that make Mcc better looking Graphicaly. Nicely created and a long over due addition. finaly added :)
  10. Re: [MCCODES V1 +V2] So who's viewing your profile   Yep i just seen that I was testing it on an offline version with only me viewing UNTIL i uploaded it to someone elses game then saw it was my ID all the time.. So sorry guys Scrap this one if ya will
  11. Very small mod just thought it might make a difference add this to your viewuser.php and you can see whos viewing profiles...   print" <h1>[url='viewuser.php?u=$userid']{$ir['username']}[/url]</h1><h3> Is currently viewing your profile.</h3>";   Thats it :)
  12. Re: [mccode] Additional Currency If you are wanting Gems instead of Crystals or if you wanted Gems and Crystals. You will need to edit EVERY file on your FTP that gives out crystals either renaming Crystals to Gems ( for gems only ) or adding an extra Query so users gain Gems + Crystals........ or reduce gems + crystrals.
  13. Re: [V1] Russian Roulette [V1] Menice im assuming this is how you wanted it to look. call this file russian.php << as its the ony link i can see in the script   <?php require"globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } if ($_GET['action'] != 'Shoot') { print "Well. Here you are, sitting with a guy you dont know ready to die!! dont waist a shot you only got {$ir['shots']} shot left for the day . "; print " Choose how many turns you want to use <form method=post action=russian.php?action=Shoot><input type=hidden name=action value=Shoot><input type='text' name='pow' value='{$ir['shots']}'> <input type=submit value='Shoot'></form>"; } else { $pow=abs((int) $_POST['pow']); for($i=0;$i<$pow;$i++) { if ($ir['shots'] < 0) { print("You dont have enough shots to shoot!!! "); } else { $chance = rand(1,6); mysql_query("update users set shots=shots-1 where userid=$userid",$c); if ($chance == 1) { $hosptime = rand(1,10); $healthl = rand(50,100); { Print("you Grab the gun and Pull the trigger!!!![b]POW>>>>> WOW[b] YOUR DEAD MAN.....HE Wins You Lose {$healthl} Health and are in the hospital for {$hosptime} "); mysql_query("UPDATE users SET hp=hp-{$healthl} WHERE userid=$userid",$c); $ir['hospital']+=$hosptime; $ir['hp']=$healthl; $reason = "Lost russian roulette"; mysql_query("UPDATE users SET hospital=hospital+{$hosptime}, hospreason = '$reason' WHERE userid=$userid",$c); } } } if ($chance == 2) { $hosptime = rand(1,10); $healthl = rand(50,100); Print("You Grab the gun and Pull the trigger!!!![b]POW>>>>> WOW[b] YOUR DEAD MAN.....HE Wins You Lose {$healthl} Health and are in the hospital for {$hosptime} minutes!!! "); mysql_query("UPDATE users SET hp=hp-{$healthl} WHERE userid=$userid",$c); $ir['hospital']+=$hosptime; $ir['hp']=$healthl; $reason = "Lost russian roulette"; mysql_query("UPDATE users SET hospital=hospital+{$hosptime}, hospreason='$reason' WHERE userid=$userid",$c); print"you have [b]{$ir['shots']}[/b] Shots left "; } if ($chance == 3) { $amnt = rand(500,1000000); if($ir['money'] > $amnt) print "You Grab the gun and Pull the trigger!!!![b]CLICK.....CLICK WOW[b] The Man in the bar Pulls The trigger.....Pow you win the \$ {$amnt}!!!! "; mysql_query("update users set money=money+{$amnt} where userid=$userid",$c); $ir['money']=$amnt; print"you have [b]{$ir['shots']}[/b] Shots left "; } if ($chance == 6) { $hosptime = rand(1,10); $healthl = rand(50,100); Print("You Grab the gun and Pull the trigger!!!![b]POW>>>>> WOW[b] YOUR DEAD MAN.....HE Wins You Lose {$healthl} Health and are in the hospital for {$hosptime} minutes!!! "); mysql_query("UPDATE users SET hp=hp-{$healthl} WHERE userid=$userid",$c); $ir['hospital']+=$hosptime; $ir['hp']=$healthl; $reason ="Lost russian roulette"; mysql_query("UPDATE users SET hospital=hospital+{$hosptime}, hospreason = '$reason' WHERE userid=$userid",$c); print"you have [b]{$ir['shots']}[/b] Shots left "; } if ($chance == 5) { $hosptime = rand(1,10); $healthl = rand(50,100); Print("ou Grab the gun and Pull the trigger!!!![b]POW>>>>> WOW[b] YOUR DEAD MAN.....HE Wins You Lose {$healthl} Health and are in the hospital for {$hosptime} minutes!!! "); mysql_query("UPDATE users SET hp=hp-{$healthl} WHERE userid=$userid",$c); $ir['hospital']+=$hosptime; $ir['hp']=$healthl; $reason = "Lost russian roulette"; mysql_query("UPDATE users SET hospital=hospital+{$hosptime}, hospreason = '$reason' WHERE userid=$userid",$c); print"you have [b]{$ir['shots']}[/b] Shots left "; } if ($chance == 4) { $hosptime = rand(1,10); $healthl = rand(50,100); Print("ou Grab the gun and Pull the trigger!!!![b]POW>>>>> WOW[b] YOUR DEAD MAN.....HE Wins You Lose {$healthl} Health and are in the hospital for {$hosptime} minutes "); mysql_query("UPDATE users SET hp=hp-{$healthl} WHERE userid=$userid",$c); $ir['hospital']+=$hosptime; $ir['hp']=$healthl; $reason ="Lost russian roulette"; mysql_query("UPDATE users SET hospital=hospital+{$hosptime}, hospreason = '$reason' WHERE userid=$userid",$c); print"you have [b]{$ir['shots']}[/b] Shots left "; } print " Choose how many Shots you want to use <form method=post action=russian.php?action=Shoot><input type=hidden name=action value=Shoot><input type='text' name='pow' value='{$ir['shots']}'> <input type=submit value='Shoot'></form>"; } } if($ir['shots']==0) { print "Sorry, all turns used! "; } $h->endpage(); ?>   Add this to cron_day $db->query("UPDATE users SET shots=6"); CRON   ALTER TABLE users ADD shots INT (11) NOT NULL default=6;     And the final part just confused me :)
  14. Re: [V1] V1 Help Please Bless him i think he means Illusions lol Glad to have helped matey any more probs gizza hout on MSN.
  15. Re: [mccode v2] Tag Mod (Complete) Not sure why these are called ARENA when the original sqls were named tagmarket so change   CREATE TABLE `arena` ( `tmID` INT(11) NOT NULL AUTO_INCREMENT, `tmQTY` BIGINT(50) UNSIGNED NOT NULL DEFAULT '0', `tmADDER` INT(11) NOT NULL DEFAULT '0', `tmPRICE` BIGINT(50) UNSIGNED NOT NULL DEFAULT '0' PRIMARY KEY (`tmID`) ) ENGINE=MyISAM ;   to   CREATE TABLE `tagmarket` ( `tmID` INT(11) NOT NULL AUTO_INCREMENT, `tmQTY` BIGINT(50) UNSIGNED NOT NULL DEFAULT '0', `tmADDER` INT(11) NOT NULL DEFAULT '0', `tmPRICE` BIGINT(50) UNSIGNED NOT NULL DEFAULT '0' PRIMARY KEY (`tmID`) ) ENGINE=MyISAM ;
  16. Re: [mccode v2] Tag Mod (Complete) if your using auto_increment you will need a primary key   CREATE TABLE `arena` ( `tmID` INT(11) NOT NULL AUTO_INCREMENT, `tmQTY` BIGINT(50) UNSIGNED NOT NULL DEFAULT '0', `tmADDER` INT(11) NOT NULL DEFAULT '0', `tmPRICE` BIGINT(50) UNSIGNED NOT NULL DEFAULT '0' PRIMARY KEY (`tmID`) ) ENGINE=MyISAM ;
  17. Re: [mccode v2]My Simple Search Streets   The one your referring to is a more advanced Search area nothing to do with streets. Damn glad i could edit lol
  18. Re: [mccode v2] Item needed to perform crime.   I dont want paying for the help but whats your website
  19. Re: attack.php help what you could do is add a Query to the following pages jail.php and hospital.php Create a new SQL ALTER TABLE users ADD nocache INT (11) NOT NULL DEFAULT 0; and place this in the above pages   if($ir['nocache']==1) { die("<h2>Your Currently Engaged in a Fight"); }   open up attack take and put $db->query("UPDATE users SET nocache=1 WHERE userid=$userid"); Now in attackwin and attackbeat and attacklose place $db->query("UPDATE users SET nocache=0 WHERE userid=$userid"); that will stop them from using 2 pages
  20. Re: Help the reason your probably getting that error is cos your staff_items.php has more Queries than your actual SQL so if youve adde extra in the past to the staff_items.php you will have to replace those SQLS back to phpmyadmin.. That will resolve your problem :)
  21. Re: [MCCODES v2] Trivia Quiz Creator I havent completed that part yet the SCRIPT above is for the admin section so you can build your quizzes.. Shouldt be too long before its fully functional..
  22. Re: Login & Register & Header & Lost Password Just a quick note to those NEW Members of CE if your using this Script. Remove all mentions of $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; and replace with   $IP = $_SERVER['REMOTE_ADDR'];
  23. Re: admins cant be feded [v2]   It creates 2 accounts one in the users and one in a new table called admin just incase someone did decide to ban you. you just login via a seperate page other than the register.php and you can edit yourself. Think of it as a GOD account
  24. Re: [mccode v2]My Simple Search Streets There are a few street scripts on here and some are able to place items into your inventory. have a browse about or even look at how your own items are placed into your inventory. on the staff_items.php theres a insert in the script that will help do what your looking for. But bare in mind when you do this with the above script the chances of finding the item will be far greater so make a small uncostly item. print"BLAH BLAH BLAH you found an hidden item check your inventory"; $db->query("INSERT INTO inventory VALUES('',1,$userid,1)",$c); } Change the 1 value to that of one of your own inventory item VALUES('',1,$userid,1)",$c);
  25. Re: [MCCODES v2] Trivia Quiz Creator now open up smenu.php and add these links   [url='staff_trivia.php?action=addtrivia']Create New Trivia[/url] [url='staff_trivia.php?action=edittrivia']Edit Exsisting Trivia[/url] [url='staff_trivia.php?action=deletetrivia']Delete Trivia[/url] [url='staff_trivia.php?action=addquestions']Create New Questions[/url] [url='staff_trivia.php?action=editquestions']Edit Exsisting Questions[/url] [url='staff_trivia.php?action=deletequestions']Delete Questions[/url]   Staff Panel works 100% tested kicked and booted it to make sure and a final kick for good measure When creating a TIVIA NAME and giving it an ID the ID must match that of the Questions for that particular QUIZ........
×
×
  • Create New...