
BreakingLight
Members-
Posts
193 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by BreakingLight
-
Re: v3 game engine Well either way im glad to hear that it is being improved alot.(Lets just hope the improvements said are as good as they sound.
-
Re: [Free] Maths Challenge Love the mod bro.But i cant wait till one of my staff say Wow we are real nerds now.lol.Great job Iso keep up the great work
-
Re: Check this idiot out... wow i thought i had seen it all XD. Its n00bs like this that make the world go around
-
Re: Updated Mailbox [v1] Well i looked into it i like the look but looking at it you are using the IDs of mails to read so say i wanna read another mail and i vie wone of mine http://yourdomain.com/mailbox.php?action=read&ID=1 Say the first mail sent is mine to read so i should be able to read it http://yourdomain.com/mailbox.php?action=read&ID=2 Say this was sent to another user and had nothing to do with me.I would still be able to read it. So basically to read every mail in the game just edit the IDs and start reading. I Cant fool with it tonight but ill try to get a fix for this tomorrow.
-
I have been wondering about an engine like this.I dont really intend on making anything out of it i am more less just curious on how it works and the code thats behind it.Does anyone know a good site i could go to and check it out.I looked into NEAB but i found out that it isnt a Player Verses Player type of game.I noticed mdshare has posted one up but there is no set price and i dont really wanna spend thousands of dollars on something i am most likely would just browse through.So if anyone has a good site or an engine you could point me twords that would be great.Thanx
-
Re: Status Updates hmm i havent seen it.It works just like myspace.
-
Well i kinda got the idea from myspace.But thought might tie it into a game.lol Mod Description:Basically users have a status .Examples:Pissed,Mad,Sad,Happy,Entertained.You know the usual.The users status can be viewed on their profile and they can update it via their preferences page. Price: $5.00 Its not a big mod just a little something i piddled around with while in the hospital.So this is the result of being sick on a Saturday if interested please send me a PM. Thanks, BreakingLight
-
Re: free mods Its not April fools day there bud.
-
Re: [mccode] Date Mod lol thats my original idea just havent got to it yet and the mod works its on my game now.And yeah i know its lacking i kinda threw it together in a couple of minutes but just putting it out there see what other ideas people have
-
<?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(); if(!$ir['married']) { die("You cant date you are not even married"); } print "Dateing"; $q=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$ir['married']}", $c); $mr=mysql_fetch_array($q); switch ( $_GET['action'] ) { case "park1": park1(); break; case "park": park(); break; case "dinner1": dinner1(); break; case "dinner": dinner(); break; default: idx(); break; } function idx() { print <<</pre> <table width="70%" border="2">PlaceCost[url='date.php?action=dinner1']Go out to eat[/url]$500,000</table> <br>EOF;<br>}<br>function park1()<br>{<br>print "Are you sure you want to take your partner to the park?<br><br><br>[url='date.php?action=park1']Yes[/url]<br><br><br>[url='date.php']No[/url]<br>";<br>}<br>function park()<br>{<br>global $ir, $mr, $c, $userid, $h, $fm;<br>if($ir['money'] < 100000)<br>{<br>die("You don't have enough money to go on a date.<br><br>> [url='partner.php']Back[/url]");<br>}<br>$k=money_formatter($with);<br>mysql_query("UPDATE users SET energy=energy+10 WHERE userid={$mr['userid']}", $c);<br>mysql_query("UPDATE users SET money=money-100000, brave=brave+10 WHERE userid={$ir['userid']}", $c);<br>event_add($mr['userid'],"Your partner {$ir['username']} took you on a nice date to the park", $c);<br>print "You take your partner on a nice date to the park.<br><br>The birds are chirping and the sun is shining.You and <br>your partner start to feel in a better mood.<br><br>> [url='date.php']Back[/url]";<br>}<br>function dinner1()<br>{<br>print "Are you sure you want to take your partner out to eat?<br><br><br>[url='date.php?action=dinner1']Yes[/url]<br><br><br>[url='date.php']No[/url]<br>";<br>}<br>function dinner()<br>{<br>global $ir, $mr, $c, $userid, $h, $fm;<br>if($ir['money'] < 500000)<br>{<br>die("You don't have enough money to go on a date.<br><br>> [url='date.php']Back[/url]");<br>}<br>mysql_query("UPDATE users SET will=will+40 WHERE userid={$mr['userid']}", $c);<br>mysql_query("UPDATE users SET money=money-500000 WHERE userid={$ir['userid']}", $c);<br>event_add($mr['userid'],"Your partner {$ir['username']} took you out to dinner at a elegant restaurant .", $c);<br>print "You walk with your partner to a nearby restaurant.<br><br>The waiter seats you at a table near the window.You and your<br><br>partner enjoy a nice evening at together.<br><br>> [url='date..php']Back[/url]";<br>}<br>$h->endpage();<br Basically I tore apart the marriage mod.and redid what it does didnt feel like re writing the whole thing.Well my theory is there isnt alot of things you can do in the game that involves being married.So yeah basic concept go date easy mod not alot of time put into it people who can code add stuff to it id like to see the idea grow.n00bs that cant code take it and say you made it just whatever helps ya sleep at night :mrgreen:
-
Re: [mccode] Mods 4 Sale i just got the fedjail report system its really nice and it will save me from having about 30 mails to look through in my website mailbox.XD
-
Re: [mccode] Personal Detals for v2.0 All you really need to do to convert this it seems is to replace the db query with mysql query.I may be wrong,but just skimming over it thats all it seems
-
[mccode] Improved Estate Agents for v2.0
BreakingLight replied to Ghetto's topic in Free Modifications
Re: [mccode] Improved Estate Agents for v2.0 yea here is the step by step for newbies * Get a brain * Scroll up abit * Read the post about changing the querys * Copy the ver 2 into a notepad * Change the querys * Then change the top part of the code to a v1 code * Done!! p.s yes i agree when you have a code for free given out to you guys be greatfully if you what it improved then do it yourself? :mrgreen: +1 cause i needed a good laugh :lol: -
Ok im not really sure where to begin.Ok my attack mug dosent give the EXP nor the money it says it does.Am i Over looking sumin? <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.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; include "clean.php"; $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,0); $h->menuarea(); $_GET['ID']=abs((int) $_GET['ID']); $_SESSION['attacking']=0; $od=mysql_query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); if($_SESSION['attackwon'] != $_GET['ID']) { die ("Cheaters don't get anywhere."); } if(mysql_num_rows($od)) { $r=mysql_fetch_array($od); if($r['hp'] == 1) { print "What a cheater u are."; } else { $stole=(int) (rand($r['money']/500,$r['money']/20)); print "You beat {$r['username']} and stole \$$stole"; $qe=$r['level']*$r['level']*$r['level']*$r['level']; $expgain=rand($qe/6,$qe/3); $expperc=(int) ($expgain/$ir['exp_needed']*100); print " and gained $expperc% EXP!"; mysql_query("UPDATE users SET attackwon=attackwon+1,exp=exp+$expgain,money=money+$stole WHERE userid=$userid",$c); mysql_query("UPDATE users SET attacklost=attacklost+1,hp=1,money=money-$stole WHERE userid={$r['userid']}",$c); event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] attacked you and stole $stole.",$c); mysql_query("UPDATE users SET hp=1,hospital=hospital+20+(rand()*20),hospreason='Attacked by {$ir['username']}' WHERE userid={$r['userid']}",$c) ; $atklog=mysql_escape_string($_SESSION['attacklog']); mysql_query("INSERT INTO attacklogs VALUES('',$userid,{$_GET['ID']},'won',unix_timestamp(),$stole,'$atklog');",$c); $_SESSION['attackwon']=0; $warq=mysql_query("SELECT * FROM gangwars WHERE (warDECLARER={$ir['gang']} AND warDECLARED={$r['gang']}) OR (warDECLARED={$ir['gang']} AND warDECLARER={$r['gang']})",$c); if (mysql_num_rows($warq) > 0) { $war=mysql_fetch_array($warq); mysql_query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$r['gang']}",$c); mysql_query("UPDATE gangs SET gangRESPECT=gangRESPECT+0 WHERE gangID={$ir['gang']}",$c); } } } else { print "You beat Mr. non-existant!"; } $h->endpage(); ?>
-
Re: Fantasy Style Engine Well i made a game like this its a war based game there is prolly a better way to do it.But i made a register page when you register you choose your "race" or in my game branch of military.And each branch has a ID.Just add an if statment if class= (whatever ID).I know it takes alot of codeing,but its sumin a little different.I can help ya out if needed.(and sorry if this dosent make any sence its 1 am here and i havent slept in the past 2 days) :-(
-
[mccode] Stop Attack Refreshing
BreakingLight replied to BreakingLight's topic in Free Modifications
Re: [mccode] Stop Attack Refreshing One of the major MC code attack.php errors is that when you get killed and it says continue you refresh and keep going until you kill him (even if you have negative hp) that says if your hp=0 then you are refreshing you can do how i did and go more advanced and put sumin else in the query and let staff know that he refreshed. -
Re: Phaos Game Engine yeah sumin different,I like it though,
-
Re: Register Page that stops multies wow thats higher than i expected i figured AOL was getting low cause i havent heard of anyone use it around where i live in ages.May be cause i live in a small redneck stown. :-(
-
Re: Register Page that stops multies ah i got ya i thought you just meant the browser.meh still better than not having it
-
Re: Joinable Organised Crimes Hmm i kinda like how TC has it so there is a random chance that you get hurt in the crime or get took to jail makes jail and hosp have more use and seems to make it more realistic.
-
Re: 2nd Crystals [Free - All versions] Im still trying to think on what i could use a 2nd thing of crystals for meh ill sleep on it tonight and see what i come up with
-
Re: Register Page that stops multies yeah but the % of people that use AOL these days are low most use IE or mozilla.And it cuts off a big % of the multies so its better than nothing.:P
-
Re: Register Page that stops multies 1.Open Register.php 2.Find the part that says if(mysql_num_rows($q)) { die("No creating referral multies. Bad dog."); } Above that add this $a=mysql_query("SELECT * FROM users WHERE lastip='$ip'",$c); if(mysql_num_rows($a) > 0) { die("No multi's!"); } That will stop people form registering on the same IP
-
Re: Attack.php addons hmm havent had any problems with it though its stops when it should
-
[mccode] Stop Attack Refreshing
BreakingLight replied to BreakingLight's topic in Free Modifications
Re: Stop Attack Refreshing Just posted it