
Alex Riley
Members-
Posts
236 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Alex Riley
-
I Havn't Posted Work On Here In A Whilst ... So Here It Goes ... I Got The Idea From Beyond Evolutions Index Page ... So Enjoy! :) Keep In Mind ... You Need The Following Mods For This To Work Fully. Mine Mod : http://criminalexistence.com/ceforums/i ... ic=26477.0 Streets : http://criminalexistence.com/ceforums/i ... ic=28740.0 HouseImages : http://criminalexistence.com/ceforums/i ... ic=26467.0 Replace You'r Current Index.php Code With The Following. <?php /*----------------------------------------------------- -- Death N Destruction -- File - index.php -- Creator - Casanova -- Inspired By - Beyond Evolution -- Free Script For - Criminal Existence -----------------------------------------------------*/ $housequery=1; include "globals.php"; if($_GET['action'] == "stealth") { if($_POST['stelth'] == 1) { $db->query("UPDATE users SET lastip_login='$IP',last_login=unix_timestamp(),stelth=0 WHERE userid={$ir['userid']}"); print "Stealth Turned Off!"; } else { $db->query("UPDATE users SET lastip_login='$IP',stelth=1 WHERE userid={$ir['userid']}"); print "Stealth Turned On!"; } } if($_GET['action'] == "statussubmit") { $db->query("UPDATE users SET status='{$_POST['status']}' WHERE userid={$ir['userid']}"); print "Your status has been changed. [b]Redirect in 1 second[/b] <META HTTP-EQUIV=Refresh CONTENT='1;url=index.php'>"; } if($_GET['action'] == "1") { $db->query("UPDATE users SET bgcolor='FFFFFF', tcolor='black' WHERE userid={$ir['userid']}"); } if($_GET['action'] == "2") { $db->query("UPDATE users SET bgcolor='0000000', tcolor='white' WHERE userid={$ir['userid']}"); } $exp=(int)($ir['exp']/$ir['exp_needed']*100); if ( !$ir['married'] ) { $marital="<font color='red'>No</font> [<a href=marital.php>Marital</a>]"; } else { $k=$db->query("SELECT username FROM users WHERE userid={$ir['married']}", $c); $marital="[url='viewuser.php?u={$ir[']".mysql_result($k,0,0)."[/url] "; $marital.="[[url='partner.php']Manage[/url]]"; $mair=$db->query("SELECT u.*, h.* FROM users u LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE userid={$ir['married']}",$c); $ms=mysql_fetch_array($mair); } if($ir['bguard'] >0) { print " <font color='yellow'>[b]NOTE:[/b]</font> Your Bodyguard is protecting you for {$ir['bguard']} more minutes. "; } $fbm=money_formatter($ir['bankmoney']); $fcm=money_formatter($ir['cybermoney']); $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>[url='viewuser.php?u={$ir[']<font color='red'>{$ir['username']}</font>[/url]</font>";$d="[img=donator.gif]"; } print " <center><left><u>[b]User Statistics:[/b]</u></left></center> <table border=3><td> <table width='100%' border='1' align='center'> <tr><td>[b]Name:[/b][url='viewuser.php?u={$ir['] $gn{$u} [{$ir['userid']}][/url] </td></tr> <tr><td>[b]Crystals:[/b] {$cm} [<a href=crystaltemple.php>[b]Spend</a>][/b]</td></tr> <tr><td>[b]Level:[/b] {$ir['level']}</td></tr> <tr><td>[url='halloffame.php?action=money&filter=all'][b]Money:[/b] $fm[/url]</td></tr> <tr><td>[url='bank.php'][b]Bank Money:[/b] {$fbm}[/url]</td></tr> <tr><td>[b][url='cyberbank.php']Cyber Bank Money:[/b] {$fcm}[/url]</td></tr> <tr><td>[b][url='HonorExchange.php']Honor Awards:[/b][/url] {$ir['honors']}</td></tr> <tr><td>[b]Street Turns:[/b] {$ir['turns']} [[url="streets.php>[b]Use</a>][/b]</td></tr> <tr><td>[b]Scavenge"][b]Scavenge[/url]][/b]</td></tr> </td></table><td><table width=100% bgcolor=#000000 cellpadding=1 cellspacing=1 bordercolor=Silver border=1> <tr><td>[img=images/{$ir[] [/b]</td></tr></td></table> <td><table width=100% border=1 align=center> <tr><td>[b][url='attacklog.php']Personal Attack Record[/url][/b]</td></tr> <tr><td>[b][url='criminalrecord.php']Criminal Record[/url][/b]</td></tr> <tr><td>[b]HP:[/b]{$ir['hp']}/{$ir['maxhp']}</td></tr> <tr><td>[b]Mine level:[/b] {$ir['mine_level']}</td></tr> <tr><td>[b]Mine EXP:[/b] {$ir['mine_exp']}/{$ir['mine_needed']}</td></tr> <tr><td>[b]Mine Power:[/b] {$ir['power']}/{$ir['max_power']} [[url='mine.php']Mine[/url]]</td></tr> <tr><td>[b]Married:[/b] $marital</td></tr> <tr><td>[b]Times Married:[/b] {$ir['timesmarried']}</td></tr> <tr><td>[b]Property:[/b] {$ir['hNAME']}</td></tr> </table></td></table> <img src=images/th_4.gif width=75% height=20> "; $ts=$ir['strength']+$ir['agility']+$ir['guard']+$ir['labour']+$ir['IQ']; $ir['strank']=get_rank($ir['strength'],'strength'); $ir['agirank']=get_rank($ir['agility'],'agility'); $ir['guarank']=get_rank($ir['guard'],'guard'); $ir['labrank']=get_rank($ir['labour'],'labour'); $ir['IQrank']=get_rank($ir['IQ'],'IQ'); $tsrank=get_rank($ts,'strength+agility+guard+labour+IQ'); $ir['strength']=number_format($ir['strength']); $ir['agility']=number_format($ir['agility']); $ir['guard']=number_format($ir['guard']); $ir['labour']=number_format($ir['labour']); $ir['IQ']=number_format($ir['IQ']); $ts=number_format($ts); print " <table width=50% border=1 class='table'> <center><left><u>[b]User Stats:[/b]</u></left></center> <td>[b]Strength:[/b] {$ir['strength']} [Ranked: {$ir['strank']}]</td> <td>[b]Agility:[/b] {$ir['agility']} [Ranked: {$ir['agirank']}]</td> </tr> <tr> <td>[b]Guard:[/b] {$ir['guard']} [Ranked: {$ir['guarank']}]</td> <td>[b]Labour:[/b] {$ir['labour']} [Ranked: {$ir['labrank']}]</td> </tr> <tr> <td>[b]IQ: [/b] {$ir['IQ']} [Ranked: {$ir['IQrank']}]</td> <td>[b]Total stats:[/b] {$ts} [Ranked: $tsrank]</td> </tr> </table> <img src=images/th_4.gif width=75% height=20> "; // zeros battle script start $attacks_won = $db->query(sprintf('SELECT COUNT(`log_id`) AS attacking_won FROM `attacklogs` WHERE `attacker` = %u AND `result` = "%s"', $userid, 'won')); $attacks_wonc = $db->fetch_row($attacks_won); $attacks_lost = $db->query(sprintf('SELECT COUNT(`log_id`) AS attacking_lost FROM `attacklogs` WHERE `attacker` = %u AND `result` = "%s"', $userid, 'lost')); $attacks_lostc = $db->fetch_row($attacks_lost); if ($attacks_lostc['attacking_lost']) { $attacking_perl = $attacks_lostc['attacking_lost'] / ($attacks_wonc['attacking_won'] + $attacks_lostc['attacking_lost']) * 100; } elseif (!$attacks_lostc['attacking_lost']) { $attacking_perl = 0; } if ($attacks_wonc['attacking_won']) { $attacking_perw = $attacks_wonc['attacking_won'] / ($attacks_wonc['attacking_won'] + $attacks_lostc['attacking_lost']) * 100; } elseif (!$attacks_wonc['attacking_won']) { $attacking_perw = 0; } $attacksd_won = $db->query(sprintf('SELECT COUNT(`log_id`) AS defending_won FROM `attacklogs` WHERE `attacked` = %u AND `result` = "%s"', $userid, 'lost')); $attacksd_wonc = $db->fetch_row($attacksd_won); $attacksd_lost = $db->query(sprintf('SELECT COUNT(`log_id`) AS defending_lost FROM `attacklogs` WHERE `attacked` = %u AND `result` = "%s"', $userid, 'won')); $attacksd_lostc = $db->fetch_row($attacksd_lost); if ($attacksd_lostc['defending_lost']) { $defending_perl = $attacksd_lostc['defending_lost'] / ($attacksd_wonc['defending_won'] + $attacksd_lostc['defending_lost']) * 100; } elseif (!$attacksd_lostc['defending_lost']) { $defending_perl = 0; } if ($attacksd_wonc['defending_won']) { $defending_perw = $attacksd_wonc['defending_won'] / ($attacksd_wonc['defending_won'] + $attacksd_lostc['defending_lost']) * 100; } elseif (!$attacksd_wonc['defending_won']) { $defending_perw = 0; } $T_won = $attacks_wonc['attacking_won'] + $attacksd_wonc['defending_won']; $T_lost = $attacks_lostc['attacking_lost'] + $attacksd_lostc['defending_lost']; if ($T_won) { $T_won_per = $T_won / ($T_won + $T_lost) * 100; } elseif (!$T_won) { $T_won_per = 0; } if ($T_lost) { $T_lost_per = $T_lost / ($T_won + $T_lost) * 100; } elseif (!$T_lost) { $T_lost_per = 0; } echo " <u>[b]Battle Statistics:[/b] </u> "; echo sprintf(' <table width="73%%" bgcolor="#000000" cellpadding="1" bordercolor="Silver" border="1"> <tr> <td> <font color=green>[b]Attacking won</font>[/b]: %u (%u%%) </td> <center></center> <td> <font color=red>[b]Attacking lost</font>[/b]: %u (%u%%) </td> </tr> <tr> <td> <font color=green>[b]Defending won</font>[/b]: %u (%u%%) </td> <center></center> <td> <font color=red>[b]Defending lost</font>[/b]: %u (%u%%) </td> </tr> <tr> <td> <font color=green>[b]Total won</font>[/b]: %u (%u%%) </td> <center></center> <td> <font color=red>[b]Total lost</font>[/b]: %u (%u%%) </td> </tr> </table> ', $attacks_wonc['attacking_won'], $attacking_perw, $attacks_lostc['attacking_lost'], $attacking_perl, $attacksd_wonc['defending_won'], $defending_perw, $attacksd_lostc['defending_lost'], $defending_perl, $T_won, $T_won_per, $T_lost, $T_lost_per ); // battle script end if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr>[b]Personal Notepad Updated![/b]"; } print " <img src=images/th_4.gif width=75% height=20> Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea> <input type='submit' value='Update Notes' /></form>"; $h->endpage(); ?> Here Is A Screenshot: http://i41.tinypic.com/2qdybrc.jpg Enjoy! :)
-
Re: Spam filter New- And all you have done is extracted scripts from a mailbox with the spam filter imported already ... thats very well crafted.
-
Re: Promo Codes I Wouldn't Say Promo Code. More A Shot At Looking Funny And Smart ... Basicly My Assupmtion Of This Is Massive Epic Failure.
-
Re: Hacked :( I Feel A Little Better Now ... You Owe Me Big Time Tall Man !
-
Re: Hacked :( Welll Ouchy, Im Jameo? I've Been Called A Whore/Idiot/Moron/Looser But Never Jameo I Think My Feelings Have Just Been Hurt ... Like Really Bad, MTG I Needa Hugg Now!
-
Re: [sHOWCASE] Shadows of Night Should i be conffused at any given point as to what the hell this is about? if so you have succeded and you're game is a huge hit. if not i'd start to be worried.
-
Re: New improved Criminal World LMAO !!! Ok first off, how much did you pay them to say that, and second off ... if they didnt actually say that they can sue you for using there name for basic faulse advertising ... i'll sum this game up in one over rated over used word ... Garbage :) ... Have a lovley day.
-
Re: Hacked :( Jameo For The Win! xD
-
Re: Things A Goverment Official Wont Say.... I repeat: i did not sleep with my female secretary, I was up all night!
-
Re: 3 Word Game Lasted All Week
-
Re: 3 Word Game Jumbo Hot Dog :-D
-
Re: 3 Word Game All a dream :-D
-
Re: Login & Register [$15] I dont see why people make and sell login pages, Then you start to see it more and more on others games, and the wow factor goes from the work you put in. You should really keep login pages like this to yourself.
-
Re: Wanted-criminals.net *Gasps* .... Since when did Torn City have a EXP bar ... Ched must be ... wait a second, this isn't TC ... :O Naughty Naughty.
-
[REVIEW] World Of Deception- Please review!!
Alex Riley replied to Deception's topic in Browsergames
Re: [REVIEW] World Of Deception- Please review!! Very nice game deception i must say so ... i like the unusual style of the header, the features/mods look very entertaining .... hell i might stick around and play the game :) +1 and i'd say 8/10 Congrats on a prommising game :) -
Re: [mccode v2] Better Crystal Temple! Got a guilty conscience Mafia-Club ??? Lmao ! My Guess for the next post for Mafia-Club ... i didn't touch him i swear, i had no idea he was once a male.
-
Re: The Destroyers Jealous Much ?
-
Re: The Destroyers bolocks mate! you cant code to save your life hahahahaha POG that was the funniest thing i've ever seen on this forum, well done mate ... it was funny & true
-
Re: Av Bank [FREE] For 2% half the 4% and for 1% half the 2% .... i think :S
-
Re: [mccode v1] Punch Mod Yeah but now you're going to see you're own work submitted time and time again ... it will get tedious eventually and you'll wish you'd never of posted it ... trust me.
-
Re: The Destroyers Duhh me and killah have been going out for about 2 years where have you been all this time, let me ask you something if CE ammounts to nothing why the hell are you here running you're mouth speaking like you know everything claiming you know what a copyright is and that youre goldenzero ... pathetic looser, i seriously doubt you have been laid yet what with you living in you're mom's basement and all playing 3D chess with yourslef ... i've just relaised something you arn't worth my valuable time .... so i bid you a fond farewell nub cake :)
-
Re: The Destroyers LMAO !!! you're pathetic scorpio .... i have just sat here for the last 20 mins laughing the hell outta you and you're BS .... you think you're better than killah, thats down to opinion ... and everyone is entitled ... so here's mine ... take you're sorry ass away from this thread, by a 10 inch rope and a step ladder from all the money you have made with you're 1k users and do the forums a favour ;) Just an idea.
-
Re: The Destroyers Scorpio ... I'd Like A 7 Year Jail Sentance For Infringement Of The Copyrighted BC Codes .... Under Section 2.875 where user is not alowed to take backup and under section 1.9375 where this is total bull s*** and you're scaring no-one but yourself :)
-
Re: The Destroyers And ohh yeah dude it's not cool to con you're own members because they know jack about gaming this quote was taken from a mass message from you're game Please man ... i'd so pay $15 for a BC backup with a .co.cc Domain ... i'll do anything :(