
BreakingLight
Members-
Posts
193 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by BreakingLight
-
Well its really simple this is why it is free.I know each year i come out with a new design for my game.Well using this this allows you to let your users select what they want their theme to be.Basically all about making the users happy. (I know this is not the easiest way to do it, but hey it works so i really dont care) First add this to your MySQL database alter table users add`header` varchar(255) NOT NULL default 'header.php' Now go open Your Preferences and add the fallowing [url='preferences.php?action=theme']Theme Change[/url] Then int he same file add this case 'theme2': do_theme_change(); break; case 'theme': theme_change(); break; function theme_change() { global $ir,$c,$userid,$h; print "<table border=1 width=30% align='right'><th><h3>Theme Change</h3></th><tr><td> <form action='preferences.php?action=theme2' method='post'> <input type='hidden' name='subm' value='submit' /> <select type='dropdown' name='header'> <option value='header.php'>Default</option> <option value='header1.php'>Pink</option> </select> <input type='submit' value='Change Theme' /></form></td></table>"; } function do_theme_change() { global $ir,$c,$userid,$h; $_POST['header']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['header']); mysql_query("UPDATE users SET header='{$_POST['header']}' WHERE userid=$userid",$c); print "<table border=1 width=30% align='right'><td>Theme changed!</td></table>"; } NOTE:To add a new header edit this <option value='header.php'>Default</option> <option value='header1.php'>Pink</option> <option value='header2.php'>Green</option> Just rename the value to match what header file you want it to correspond to. Now this part is the most time consuming(like i said im sure there is an easy way but i had to redo all my files to add a security fix to it so i weant ahead and did this. In each file you have this <?php 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.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hID=u.houseid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['credits'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); Change to this <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); $header=$ir['header']; require "$header"; $h = new headers; $h->startheaders(); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['credits'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); Now you have a working Theme Selector
-
[mccodes] Pay To Click Addon [$20]
BreakingLight replied to BreakingLight's topic in Paid Modifications
Re: [mccodes] Pay To Click Addon [$20] Not to try to sound rude Cronus.I respect you but Opinions are like @$$holes ;) Gives a chance for some extra cash. Not interested then don't buy :) -
This mod keeps users active and keeps them in the game.This also gives users a bit of money in which they could spend on your game. Copies Left: 10 How does it work? Well its really simple.Advertisers buy an ad for say $20 for 1200 clicks (1200 = $12.00 in total payout to users earning you a total revenue of $8.00 for that advertisement) Users see the ad listed and they click it.A new screen pops up and a timer starts counting down.(from 30 seconds).Once the timer hits 0 the user is credited $0.01. Pretty simple but like i said keeps users active if you can get some advertisements and then whop knows they may spend it on your game, but both ways you are earning a little extra cash.=) This will come with an admin function to accept ads, and an admin function to see which users are needing to withdraw their hard earned cash. And as always My mods come with free bug fixes and free addons for life.If i update the mod then its updated for you!.Thanks and hope you enjoy![/b] http://www.ruined-city.com/ads.bmp http://www.ruined-city.com/done.bmp http://www.ruined-city.com/viewsite.bmp To Buy contact me! Thanks have a great day!
-
Re: Cock Fight [$20] Lol love the center of the page "My Cock's Status"
-
[mccodes V2] Delete item from shop mod $10
BreakingLight replied to jon182's topic in Paid Modifications
Re: [mccodes V2] Delete item from shop mod $10 Im selling my next door neighbors car (hope they dont mind) -
[mccodes V2] Delete item from shop mod $10
BreakingLight replied to jon182's topic in Paid Modifications
Re: [mccodes V2] Delete item from shop mod $10 Sorry to say but this is an easy mod.Not worth $10 really maybe $2 at the most for someone that needs it badly, and does not know how to write admin functions but I highly doubt you will sell any of copies. Try making something that is different.I can sit here and write admin functions all day.Construct an admin panel or something make it look nice and then sell it.Dont try to sell just a function it wont work. =) (not trying to be rude just trying to help you out) -
[mccodes v2] Casino Mod Package [$75]
BreakingLight replied to seanybob's topic in Paid Modifications
Re: [mccodes v2] Casino Mod Package [$75] ... Anyways.looks great For any newcomers here seanybob is great at coding so when you buy a mod from him you can assure quality work. -
[McCodes V2] Private Helth Care (Donator Only)
BreakingLight replied to Dayo's topic in Free Modifications
Re: [McCodes V2] Private Helth Care (Donator Only) lmao XD -
Re: Mccodes V2 Request Name Changes I hear green is extremely insecure... lmao
-
Price is $10 Well i purchased the game engine and really didnt even play with it.Well after i had some stuff clear up i started using it and wow its great.The only problem was it did not have a Donator system.So i started on one. Well its custom made.This allows your character to get specific dialog from others when being a donator.When you talk to people you can now have specific quests, information, and give items to donators.Just unlocks a whole different world for people.So it makes people want to donate. VERY cheap price for a VERY needed mod More mods to come soon,This was pretty simple so that reflects on its price. And as always with my mods.It comes with free support and free updates for this mod.I can assure you on this mod that when I update it the price will go up, but if you buy for $10 now when i upgrade it you get it for free. Thanks!
-
Re: [mccodes] Save Events [$5] Thanks appreciate that +1
-
Re: [mccodes] House Upgrades [$15] Copies Left:9
-
Re: [Request] Gang Addon the concept is good just might want to fix it more to a criminal level
-
Re: [mccodes] Save Events [$5] mhm ;)
-
Re: [mccodes] House Upgrades [$20] Price reduced to $15 per copy
-
Re: [mccodes] Save Events [$5] Important/Special ones can be saved, also with this admins can put an event purge in place. So all normal events are deleted, and saved ones stored. Overall saving more database space and making the game slightly more efficient. Thanks iso :P Thats actually the point i keep finding myself deleting the events table and people get pissed.So i made this to prevent that
-
Re: [mccodes] House Upgrades [$20] Nice cant wait to see what it looks like already started on another modification to go along with this one. 8-)
-
Re: [mccodes] House Upgrades [$20] Thanks! About to get started on another mod.lol
-
I know alot of people have been wanting this mod well i took the time and did it. Copies Left:10 Features -Users can buy upgrades for the house -Redid how the house name was displayed(had to so that it isnt based off of users maxwill) -You can add more upgrades the instructions file in the folder has a nice walk through to show you how to add it in there Includes -2 SQL tables -Alter in some files (a detailed walk through on what to edit is in the instructions file) -1 PHP file If interested please send $20 via paypal to [email protected] As always comes with free updates i do to the mod and any bugs that are found will be immediately emailed to you upon being fixed.Thanks and hope everyone has a great day
-
Save Events Users can save events and they can add them to a Event Display file which is viewed on the users profile.It like it cause they wont use the BB code as much and to me that slows down the page when they put screen shots of there events on there when they get something special in the game.I originally was going to give it away for free but it was a little more trouble than i thought with SQL not accepting the ' that is in events sometimes. To Install You have to -Insert 1 SQL Table -Redo the events page (I will give you mine but if you have personal preferences on your event page then you might want to rethink it) -2 php files one for your saved events and your display box for your users If you want to buy paypal email is [email protected] If you want it sent to an email other than your paypal please include that in the comments Thanks and as always this mod comes will support on install and any updates i ever make for this mod will be sent to you through email. ScreenShots: Events Page Saved Events Page Displayed Events Page
-
Re: [mccodes]Updated Education Nah ill PM it to you
-
Re: [mccodes]Updated Education Yeah man how have you been?
-
Well i am sitting in my computer applications class and the teacher has no clue what he is doing soooo i did this. Note i got rushed on the last part but i think it should work fine Also please this mod was created in less than 10 minutes i dont wanna hear it if you dont like it dont use it simple as that but any errors let me know thanks! What it does Well it organizes the education courses more (feel free to add more or take away). I removed the description but all you have to do is add back the <th> and the <td> on each so it will display it but here it is. SQL CREATE TABLE IF NOT EXISTS `courses` ( `crID` int(11) NOT NULL auto_increment, `crNAME` varchar(255) NOT NULL default '', `crCAT` enum('Intelligence','Manual Labour','Fitness','Miscellaneous') NOT NULL default 'Miscellaneous', `crDESC` text NOT NULL, `crCOST` int(11) NOT NULL default '0', `crENERGY` int(11) NOT NULL default '0', `crDAYS` int(11) NOT NULL default '0', `crSTR` int(11) NOT NULL default '0', `crGUARD` int(11) NOT NULL default '0', `crLABOUR` int(11) NOT NULL default '0', `crAGIL` int(11) NOT NULL default '0', `crIQ` int(11) NOT NULL default '0', `crITEM` int(11) NOT NULL default '0', PRIMARY KEY (`crID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ; education.php file is replaced with <?php 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']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($ir['hospital']) { print"You are in the hospital you cant do an education course now"; } else if($ir['jail']) { print"You are in jail you cant do an education course now"; } else { print "<h3>Grounds Of War Course's</h3>"; // Fix for negative training days if($ir['cdays'] < 0) { mysql_query("UPDATE users SET course=0 ,cdays=0 WHERE userid=$userid",$c); } if($ir['course'] > 0) { $cd=mysql_query("SELECT * FROM courses WHERE crID={$ir['course']}",$c); $coud=mysql_fetch_array($cd); print "You are currently doing the {$coud['crNAME']}, you have {$ir['cdays']} days remaining."; } else { if($_GET['cstart']) { $_GET['cstart'] = abs((int) $_GET['cstart']); //Verify. $cd=mysql_query("SELECT * FROM courses WHERE crID={$_GET['cstart']}",$c); if(mysql_num_rows($cd) == 0) { print "You are trying to start a non-existant course!"; } else { $coud=mysql_fetch_array($cd); $cdo=mysql_query("SELECT * FROM coursesdone WHERE userid=$userid AND courseid={$_GET['cstart']}",$c); if($ir['money'] < $coud['crCOST']) { print "You don't have enough money to start this course."; $h->endpage(); exit; } if(mysql_num_rows($cdo) > 0) { print "You have already done this course."; $h->endpage(); exit; } mysql_query("UPDATE users SET course={$_GET['cstart']},cdays={$coud['crDAYS']},money=money-{$coud['crCOST']} WHERE userid=$userid",$c); print "You have started the {$coud['crNAME']}, it will take {$coud['crDAYS']} days to complete."; } } else { //list courses print "Here is a list of available courses."; //FITNESS courses $qf=mysql_query("SELECT * FROM courses WHERE crCAT='Fitness' ",$c); print " <table width=70% class='forumline'><tr style='background:gray;'><th colspan=3>Fitness Course's</th></tr><tr style='background:gray;'><th>Course</th><th>Cost</th><th>Take</th></tr>"; while($fit=mysql_fetch_array($qf)) { $cdo=mysql_query("SELECT * FROM coursesdone WHERE userid=$userid AND courseid={$fit['crID']}",$c); if(mysql_num_rows($cdo)) { $do="Done</a>"; } else { $do="[url='education.php?cstart={$fit[']Take[/url]"; } print "<tr><td>{$fit['crNAME']}</td><td>\${$fit['crCOST']}</td><td>$do</td>"; } //MANUAL LABOUR COURSES $qm=mysql_query("SELECT * FROM courses WHERE crCAT='Manual Labour' ",$c); print "<tr style='background:gray;'><th colspan=3>Manual Labour Course's</th></tr> <tr style='background:gray;'><th>Course</th><th>Cost</th><th>Take</th></tr>"; while($man=mysql_fetch_array($qm)) { $cdo=mysql_query("SELECT * FROM coursesdone WHERE userid=$userid AND courseid={$man['crID']}",$c); if(mysql_num_rows($cdo)) { $do="Done</a>"; } else { $do="[url='education.php?cstart={$man[']Take[/url]"; } print "<tr><td>{$man['crNAME']}</td><td>\${$man['crCOST']}</td><td>$do</td></tr>"; } print " "; $qi=mysql_query("SELECT * FROM courses WHERE crCAT='Intelligence' ",$c); print "<tr style='background:gray;'><th colspan=3>Intelligence Course's</th></tr> <tr style='background:gray;'><th>Course</th><th>Cost</th><th>Take</th></tr>"; while($intel=mysql_fetch_array($qi)) { $cdo=mysql_query("SELECT * FROM coursesdone WHERE userid=$userid AND courseid={$intel['crID']}",$c); if(mysql_num_rows($cdo)) { $do="Done</a>"; } else { $do="[url='education.php?cstart={$intel[']Take[/url]"; } print "<tr><td>{$intel['crNAME']}</td><td>\${$intel['crCOST']}</td><td>$do</td></tr>"; } $qmi=mysql_query("SELECT * FROM courses WHERE crCAT='Miscellaneous' ",$c); print "<tr style='background:gray;'><th colspan=3>Miscellanous Course's</th></tr> <tr style='background:gray;'><th>Course</th><th>Cost</th><th>Take</th></tr>"; while($mis=mysql_fetch_array($qmi)) { $cdo=mysql_query("SELECT * FROM coursesdone WHERE userid=$userid AND courseid={$mis['crID']}",$c); if(mysql_num_rows($cdo)) { $do="Done</a>"; } else { $do="[url='education.php?cstart={$mis[']Take[/url]"; } print "<tr><td>{$mis['crNAME']}</td><td>\${$mis['crCOST']}</td><td>$do</td></tr>"; } print "</table>"; } } } $h->endpage(); ?> And in your day cron find if($coud['crIQ'] > 0) { $upd.=",us.IQ=us.IQ+{$coud['crIQ']}"; $ev.=", {$coud['crIQ']} IQ"; } $ev=substr($ev,1); Below add if($coud['crITEM'] > 0) { mysql_query("INSERT INTO inventory VALUES(NULL, {$coud['crITEM']}, $userid, 1,0)",$c); }
-
[mccode] Sexual Appearance [$10.00]
BreakingLight replied to Isomerizer's topic in Paid Modifications
Re: Sexual Appearance lol that is different but i like -
Re: miniNEAB 3.0 released wow is all i have to say this game is so well written its amazing I highly suggest that if you want a good game engine this would be the way to go it is so data officiant that.You do not use much space and once set the account up you have nothing more to do all the rest can be done from the admin panel.I love it Totally worth the price.