
BreakingLight
Members-
Posts
193 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by BreakingLight
-
Multiple Houses/House Upgrades [$10]
BreakingLight replied to BreakingLight's topic in Paid Modifications
Yes but this one is done completely different and will have many more features when i update it again ;) -
Multiple Houses/House Upgrades [$10]
BreakingLight replied to BreakingLight's topic in Paid Modifications
Okay ill have one for V2 up in just a second :) -
Well this is something that i have wanted to do for some time and finally got around to it. This mod lets you buy Multiple houses. You can have a maximum of 3 of each houses. If you have 3 of a house you can not buy another of that kind of house. House Upgrades: Users can buy upgrades to houses he/she owns. Upgrading the house will Give you extra will to the house. Screen shots coming soon Hope everyone enjoys! Also with the purchase of my mod you are entitled to free upgrades and support. Thanks! Payments can be sent to [email protected]
-
It auto gives merits when they meet the criteria. Say when a member reaches level 5 if that's an award then they receive it a minute after they do. The alter is a count for the merits. Shows how many they have. PHP files are a cron, an award page, and a merit trade page.
-
3 total files 2 tables with an alter to the user table And yes staff option is there. Sorry took me a while to reply. Been at the dentist. ugh
-
Mod Sent. Thank you!
-
Well its pretty simple. This is a merits system. This auto credits users merits when they reach a certain spot in the game. Say i reach level 50 finally, Well the system will credit me a level 50 award if there is one in the database. Merits can be based on anything. Level, days old, crimes completed, days in a gang, money, and crystals are just a few things. This system does not require you to click a file to earn your merit. And merits can be traded in for things like brave, battle stats, gang respect. And can easily be edited to add or remove things you want users to be able to trade in for.
-
And looks can be decieving. ;)
-
Uh huh.... Ill work on a demo.
-
Well i can assure you its not. I make my own stuff.=)
-
Basically its pretty self explanatory. You have 2 items that have no use say a stick and a stone. You think they could make something so you see a spear in the list of available weapons to make you click it and it turns your stick and stone into a spear. Hope that clears everything up :)
-
Thats the exact function of `crimeREASON` varchar(255) default '', Whatever you want it to say just slap it in there. And Wala
-
Explain a little more in detail please! I'm looking for something to do so im up for it!
-
Okay here is another one! This mod allows you to make items. In my game i introduced this with a New Item Type called "Raw Materials". You can choose how to introduce it but this mod allows you to collect parts of items and then go and try to make items off a selected list. Its pretty straight forward and works great. Any question please feel free to ask!
-
Its a good mod! Thats the information. lol It lets you add what you want to happen. Do they go to the hospital or jail. A minimum and a maximum time. And it selects a random number between that. A specific reason per crime. So you dont go to the jail page and see. "Caught doing a crime." This mod also allows you to select a minimum and a maximum amount to get paid and selects an amount between there.
-
Well i have another mod i would like to post. Tell me what you guys think. And please give me some ideas of things you would like to see! First replace docrime.php with 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.* 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['credits'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $_GET['c']=abs( $_GET['c']); if($ir['jail'] > 0) { die("[b]<font color=darkblue size=+1>You are in Jail for {$ir['jail']} more minute(s). Until you are out you can't view this page</font>[/b] [url='jail.php']Return to Jail[/url]"); } if($ir['hospital'] > 0) { die("[b]<font color=red size=+1>You are in the Hospital for {$ir['hosptime']} more minute(s). Until you are out you can't view this page</font>[/b] [url='hospital.php']Return to Hospital[/url]"); } if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM newcrimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; $h->endpage(); exit; } else { $ec="\$sucrate=".str_replace(array("LEVEL","EXP","WILL","IQ"), array($ir['level'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print $r['crimeITEXT']; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); $temp1 = rand(1,100); $temp2 = $sucrate * 3; $temp3 = $temp2 / 4; if($temp1 <= $temp3) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['exp']+= ($r['crimeSUCCESSMUNY']/5); if($r['crimeITEM'] > 0) { $itemidforcrime = $r['crimeITEM']; mysql_query("INSERT INTO inventory VALUES('',$itemidforcrime,'{$er['userid']}','1','0');",$c); } else { $award=$r['crimeAWARD']; $min=$r['crimeSUCCESSMIN']; $max=$r['crimeSUCCESSMAX']; $prize=rand($min,$max); mysql_query("UPDATE users SET $award=$award+$prize,exp={$ir['exp']} WHERE userid=$userid",$c); mysql_query("UPDATE users SET crimesdone=crimesdone+1 WHERE userid=$userid",$c); } } else { print $r['crimeFTEXT']; $where=$r['crimePLACE']; $fmin=$r['crimeFAILMIN']; $fmax=$r['crimeFAILMAX']; $time=rand($fmin,$fmax); if($where == 'hospital') { $reason='hospreason'; } else { $reason='jailreason'; } $text=$r['crimeREASON']; mysql_query("UPDATE users SET $where=$time WHERE userid=$userid",$c); mysql_query("UPDATE users SET $reason='$text' WHERE userid=$userid",$c); } print " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } } $h->endpage(); ?> After that add this SQL into your MYSQL database CREATE TABLE IF NOT EXISTS `crimes` ( `crimeID` int(11) NOT NULL auto_increment, `crimeNAME` varchar(255) NOT NULL default '', `crimeBRAVE` int(11) NOT NULL default '0', `crimePERCFORM` text NOT NULL, `crimePLACE` enum('hospital','jail') NOT NULL default 'jail', `crimeAWARD` enum('money','credits') NOT NULL default 'money', `crimeSUCCESSMIN` int(11) NOT NULL default '0', `crimeSUCCESSMAX` int(11) NOT NULL default '0', `crimeGROUP` int(11) NOT NULL default '0', `crimeITEXT` text NOT NULL, `crimeSTEXT` text NOT NULL, `crimeFTEXT` text NOT NULL, `crimeFAILMIN` int(11) NOT NULL default '0', `crimeFAILMAX` int(11) NOT NULL default '0', `crimeITEM` int(11) NOT NULL default '0', `crimeREASON` varchar(255) default '', PRIMARY KEY (`crimeID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 PACK_KEYS=0 AUTO_INCREMENT=38 ;
-
I didnt make an exact way you gain stats because there are many different ways to add the stat into the game, but gym is a possibility ill include that with a cop if requested, as well as a way to gain the stat via crystaltemple.php file.
-
lol
-
Well i had a weather mod a while back i was working on, but i cant find it so i made this. This mod isnt really finished with what im going to do with it, but you can add it to your game and do what you want to with it. This simply selects a weather by a cron and you can make that weather have different affects on your game. While all our games are different they should all be able to fit in your game differently. So simply add this bit of SQL into your MYSQL database CREATE TABLE IF NOT EXISTS `weather` ( `wID` int(11) NOT NULL DEFAULT '0', `wNAME` varchar(255) DEFAULT '', `wACTIVE` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`wID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Make this edit in your header.php file Find: [b]Crystals:[/b] {$ir['crystals']} Below Add This: "; $wea=mysql_query("SELECT * FROM weather WHERE wACTIVE=1",$c); $we=mysql_fetch_array($wea); $check=mysql_num_rows($wea); if($check == 0) { $weather="Sunny"; } else { $weather="{$we['wNAME']}"; } print"Current weather is [b][i]$weather[/i][/b]"; Now Open your monorail.php file and find this: $h->menuarea(); Below that add this: $wea=mysql_query("SELECT * FROM weather WHERE wACTIVE=1",$c); $we=mysql_fetch_array($wea); if($we['wNAME'] == 'Snow') { die("Due to snow all flights have been canceled"); } Make a Cron called weathercron.php <?php session_start(); require "global_func.php"; $userid=$_SESSION['userid']; 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); $wee=mysql_query("SELECT * FROM weather",$c) or die(mysql_error()); $we=mysql_fetch_array($wee); mysql_query("UPDATE weather SET wACTIVE=0 WHERE wACTIVE=1",$c) or die(mysql_error()); $rand=rand(1,4); mysql_query("UPDATE weather SET wACTIVE=1 WHERE wID=$rand",$c) or die(mysql_error()); ?> Like i said not that much really, but that should give you some ideas. If you make any additions please feel free to post! i will also be adding on to it and i will share with you guys. :)
-
Shut it Dj your just eye candy for me. <3 I love you. lol Nah, but really good to be back around. I missed it so much. And i missed you! <333
-
Right now its just a race for who can catch the biggest fish. Kinda like a real life fish tournament, but later in the code i already have it set up where you can open a fish market, and sell the fish. Gonna be when i make the Fish Mod into 2.0. As a buyer you would get that for free.
-
Added screen shots. =)
-
Well i live in a small town and had the idea of fishing on my mind. So with that here it is! This mod allows your user to have an extra stat in your game your Fishing Stat. The better your stat the bigger size fish you can catch. You have a Top 5 leader board that shows the users that have caught the biggest fish. Can easily be changed to top 10 or whatever you like. This comes with 3 files, two new tables in the database and an edit to the users table. You have a chance of losing the fish and things like that. users are also required to buy a fishing pole for a set amount which can easily be edited. Any questions feel free to ask. As with all my mods this comes with free updates and free fixes. If interested send $5.00 USD to [email protected] Thanks.
-
I thought i had made this before, but i could not find it anywhere, but anyways here it is haven't tested it out that well, but if you see any errors in it please tell me and ill correct it. isn't much so here it is. Enjoy! Add this SQL into your MYSQL database CREATE TABLE IF NOT EXISTS `gangplace` ( `gID` int(11) NOT NULL DEFAULT '0', `gMEMBERS` int(11) NOT NULL DEFAULT '0', `gCOST` bigint(32) DEFAULT '0', `gNAME` varchar(255) DEFAULT '', PRIMARY KEY (`gID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; The After that is done you simply open yourgang.php and find the section that calls for gang upgrades. it should look something like this depending on what addons you have in your game. function gang_staff_upgrades() { global $ir,$c,$userid,$gangdata; if($gangdata['gangVICEPRES'] != $userid AND $gangdata['gangPRESIDENT'] != $userid AND $userid!=1) die("You do not have access to this..."); if(isset($_POST['membs'])) { $_POST['membs']=strip_tags($_POST['membs']); if($_POST['membs']*100000000 > $gangdata['gangMONEY']) { print "Your clan does not have enough money to upgrade that much capacity."; } else { $cost=$_POST['membs']*100000000; mysql_query("UPDATE gangs SET gangCAPACITY=gangCAPACITY+{$_POST['membs']},gangMONEY=gangMONEY-$cost WHERE gangID={$ir['gang']}",$c); print "You paid \$$cost to add {$_POST['membs']} capacity to your clan."; } } else { print "[b]<u>Capacity</u>[/b] Current Capacity: {$gangdata['gangCAPACITY']} <form action='yourgang.php?action=staff&act2=upgrade' method='post'>Enter the amount of extra capacity you need. Each extra member slot costs \$100,000,000. <input type='text' name='membs' /> <input type='submit' value='Buy' /></form>"; } } Completely replace that with this sexxeh thang! function gang_staff_upgrades() { global $ir,$c,$userid,$gangdata; print "[b]<u>Capacity</u>[/b] Current Capacity: {$gangdata['gangCAPACITY']} "; $place=mysql_query("SELECT * FROM gangplace WHERE gMEMBERS > {$gangdata['gangCAPACITY']}",$c); print"<table width=80% class=forumline> <th>Location</th><th>Capacity</th><th>Cost</th><th>Buy</th><tr>"; while($gp=mysql_fetch_array($place)) print"<td>{$gp['gNAME']}</td><td>{$gp['gMEMBERS']}</td> <td>{$gp['gCOST']}</td> <td><a href=yourgang.php?action=staff&act2=doupgrade&ID={$gp['gID']}>Buy</a></td><tr>"; } function gang_staff_doupgrades() { global $ir,$c,$userid,$gangdata; print "[b]<u>Capacity</u>[/b] "; $gangplace=mysql_query("SELECT * FROM gangplace WHERE gID={$_GET['ID']}",$c); $gp=mysql_fetch_array($gangplace); if($gangdata['gangVICEPRES'] != $userid AND $gangdata['gangPRESIDENT'] != $userid AND $userid!=1) die("You do not have access to this..."); if($gp['gCOST'] > $gangdata['gangMONEY']) { die("Your clan does not have enough money to upgrade that much capacity."); } if($gp['gMEMBERS'] < $gangdata['gangCAPACITY']) { die("You can not downgrade your clan!."); } else { mysql_query("UPDATE gangs SET gangCAPACITY={$gp['gMEMBERS']},gangMONEY=gangMONEY-{$gp['gCOST']} WHERE gangID={$ir['gang']}",$c); print "You paid \${$gp['gCOST']} to move your clan into a {$gp['gNAME']}."; } } After you do that you need to add another case as i made this two functions So find this case "upgrade": gang_staff_upgrades(); break; And below add this case "doupgrade": gang_staff_doupgrades(); break; And holy cow you just added this first coding i have done in like 2 years. Pat your self on the back. Ill be adding some more stuff here soon! Stay Sexxeh! ;)
-
Re: [mccodes]Make Items[$10] As of right now it takes 2 items to make one the way i set it up in my game is I made new item type called Raw Material, Players find Raw Material and can make items. But it wouldn't be to hard to make it the way you wanted it.