
Isomerizer
Members-
Posts
1,170 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Everything posted by Isomerizer
-
Re: 3 Word Game massive pork pie
-
Re: [v1] Maximum Users Online Counter Thanks for this oxi, Is another additional stat i can stick on my login.php. And i took yours and UCC advice and put the mysql query code in the loggedin.php
-
Re: [Free] [v1] Jail Try this.. <?php /*----------------------------------------------------- -- Isomerizer Copyright 2007 -----------------------------------------------------*/ 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(); $bail=$_GET['bail']; $bust=$_GET['bust']; if ($bail=="" && $bust=="") { print "<h3>The Local Prison</h3>"; if ($ir['prison']!=0) { print "<a href=escape.php>[Attempt to escape]</a> "; } print "<table width='75%' border='2'><tr bgcolor='#004400'><th>ID</th><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th><th>Options</th></tr>"; $q=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($r=mysql_fetch_array($q)) { $blah=$r['userid']; print "\n<tr><td>{$r['userid']}</td><td>{$r['gangPREFIX']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td> {$r['level']}</td><td>{$r['prison']} minutes</td><td>{$r['prisonreason']}</td><td><form action=prison.php method=GET><a href=prison.php?bust={$r['userid']}>Bust</a> | <a href=prison.php?bail={$r['userid']}>Bail</a></form></td></tr>"; } print "</table>"; } if ($bust!="") { if ($ir['energy']<1) { print "You need 7 power to bust! <a href=prison.php>Back</a>"; exit; } if ($bust==$userid) { print "You cannot bust yourself out! <a href=prison.php>Back</a>"; exit; } $bustlvl=$ir['bustlvl']; $randd=rand(1,300); $rand=$randd*$bustlvl; $lvllrand=rand(1,50); $lvlrand=$lvllrand*$bustlvl-5; if ($rand<=200) { $eeeeee=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($eee=mysql_fetch_array($eeeeee)) { $busterr=$eee['userid']; $bustooo=$eee['username']; if ($ir['hospital']!="0") { print "You cannot bust out while in Hospital!"; exit; } if ($ir['prison']!="0") { print "You cannot bust out while in Prison!"; exit; } print "You were caught trying to bust $bustooo out of prison and thrown in prison yourself!"; mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); event_add($busterr, "<a href=viewuser.php?u={$ir['userid']}>{$ir['username']}</a> was caught trying to bust you out!", $c); mysql_query("UPDATE users SET prison='100' WHERE userid=$userid", $c); mysql_query("UPDATE users SET totalprison=totalprison+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prisonreason='Attempting to bust $bustooo out of prison' WHERE userid=$userid", $c); exit; $h->endpage(); } } if ($rand>100 && $lvlrand<10) { $e=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($eee=mysql_fetch_array($e)) { $bustingg=$eee['userid']; $bustingge=$eee['username']; if ($ir['hospital']!="0") { print "You cannot bust out while in Hospital!"; exit; } if ($ir['prison']!="0") { print "You cannot bust out while in Prison!"; exit; } print "You Busted $bustingge out of prison! And your bust level went up!"; mysql_query("UPDATE users SET bustlvl=bustlvl+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET totalbust=totalbust+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$bustingg", $c); event_add($bustingg, "<a href=viewuser.php?u={$ir['userid']}>{$ir['username']}</a> busted you out of prison!", $c); exit; $h->endpage(); } } if ($rand>110) { $e=mysql_query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.prison > 0 ORDER BY u.prison DESC",$c); while($ee=mysql_fetch_array($e)) { $busting=$ee['userid']; $busto=$ee['username']; if ($ir['hospital']!="0") { print "You cannot bust out while in Hospital!"; exit; } if ($ir['prison']!="0") { print "You cannot bust out while in Prison!"; exit; } print "You Busted $busto out of prison!"; mysql_query("UPDATE users SET totalbust=totalbust+1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET energy=energy-1 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$busting", $c); event_add($busting, "<a href=viewuser.php?u={$ir['userid']}>{$ir['username']}</a> busted you out of prison!", $c); exit; $h->endpage(); } } } if ($bail!="") { $cost=10000; if ($ir['money']<10000) { print "You dont have that sort of cash"; exit; } if ($ir['hospital']!="0") { print "You cannot bail out while in Hospital!"; exit; } if ($ir['prison']!="0") { print "You cannot bail out while in Prison!"; exit; } print "You payed $$cost to bail $busto out of prison!"; mysql_query("UPDATE users SET money=money-10000 WHERE userid=$userid", $c); mysql_query("UPDATE users SET prison=0 WHERE userid=$busting", $c); } $h->endpage(); ?> The exact code i use on amazon survival, seems to work fine for me, If it continues not to work, I'll look into it further.
-
Re: Gift Er, for v2, i think you have to remove: 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']); $lv = date('F j, Y, g:i a', $ir['laston']); $h->userdata($ir, $lv, $fm); $h->menuarea(); Tho i maybe wrong.
-
Re: Gift I guess an admin must give them it through the DB, Unless there is some sort of cron missing, Try adding to daily cron... mysql_query("UPDATE users SET thanks='0'", $c); One thanks per day
-
Re: Small Problem. mysql_query("INSERT into inventory VALUES('', '$item', '$winner', '1'), $c) or die(mysql_error()); ?
-
Re: [Free] [v1] Scuba Diving Nope, Even if the topics made by me, I cannot remove post's. Only mods & admins can. :P
-
Re: [Free] [v1] Scuba Diving Is that really needed? :|
-
Re: [$5] Minesweeper Your refering to the pick 3 game, Like i said i wasnt even aware you made this mod, And actually thought you copied me when i saw it on netcodesuk. You was fully aware i made this mod. And attempted to copy it.
-
Re: if jail/if hosp I bet your just missing a " or ; ... Its not mine or Lostones code its yours.
-
Re: if jail/if hosp Code updates missed the brackets, Lol, Make sure you start and end the php to with <? ?>
-
Re: [v1] [Free] Scuba Diving Huh? Theres something wrong with the code? Or you just dis-like the idea?
-
Re: if jail/if hosp Well im sure the banner is located in header.php Find the code, Probaly something like <img src=logo.PNG>. Instead use the php code. if ($ir['jail'] > 0) { echo "<img src=logojail.PNG>"; } if ($ir['hospital'] > 0) { echo "<img src=logohospital.PNG>"; } if ($ir['jail'] < 0 && $ir['hospital'] < 0) { echo "<img src=logo.PNG>"; } Something like that should work.
-
Re: [$5] Minesweeper I dont like free mods period so whatever. But as long as we have free mods, I see no problem with someone offering something free that others are charging for. Thats the free market I agree, But im sure if i made one of Oxi's mods and posted for free. He wouldnt be to happy. Sure its allowed, But it isnt very nice :|
-
Re: [Free] [v1] Jail Thanks for the reminder, Cron code added.
-
Re: Guess the next poster I guess Dr. Eric Schmidt
-
Re: [Free] [v1] Jail I didnt even include escape.php. I have done now though. Ive only ever tested it on my game, So it may have a few small bugs.
-
[Free] [V1] Guess What Cup? (Casino Game)
Isomerizer replied to Isomerizer's topic in Free Modifications
Re: [Free] [V1] Guess What Cup? (Casino Game) Plus I wasnt even aware you and oxi made this mod till about 3 weeks back, And that was about a month after i made this mod. -
Re: Counting (nr game) 1468
-
Re: Is There Anyway I Can Make My Java Chatroom, Have My Game Members Already... Could try adding these params to the pjirc.. <param name="command4" value="/nick '. {$ir['username']}. ' "> <param name="command3" value="/msg nickserv register '. {$ir['password']}. ' '. {$ir['email']}. ' "> <param name="command4" value="/identify '. {$ir['password']}. ' "> maybe...
-
Re: Adding crimes and cities in v2 I think stryker was trying to say my game wasnt legal, Because i didnt have the add_crime script you had, seeing as i told mr smith to do it through the DB.But, I dont think he realised that script doesnt come with V1. Well it kinda gives it away with the header info being v2 in the script. But oh well. :lol:
-
Re: Adding crimes and cities in v2 you just told everyone how legit your game is.....not very ?
-
Re: [$10] Minesweeper Fixed. It does say in the screenshot the board is reset each time. And there not flagged because im sure that would require extra SQL or alot of sessions / cookies. One of the unique / main things about this script it requires no extra sql... The code isnt to advance, And the price im asking for it is cheap, Ive stated the mod isnt the same as minesweeper just kinda based off it. I'll also be reducing the price to $5.
-
Re: Stop Cache Guess noone knows :cry:
-
Re: HELP!!!!! $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/$ir['level']/5); ? Keep playing with the numbers until its the amount you want, Mostly maths...