Jump to content
MakeWebGames

ignite

Members
  • Posts

    170
  • Joined

  • Last visited

    Never

Everything posted by ignite

  1. Re: [Free] MySQL Control Panel Very nice mod and your v1 version does work +1
  2. Re: Odd attack problem Find in header.php if($dosessh && $_SESSION['attacking'])   Replace with: if($dosessh && $_SESSION['attacking'] && $ir['attacking'])
  3. Re: Energy regen for donators bump
  4. Re: Email validating help Just wondering but why are you inserting a new user ?
  5. Re: New And Improved Mining Mod [$20] Very easy to make, but nice mod
  6. Donators energy regen seems to vary between 12% and 17% for different users, does anyone know why this could be happening ? There max energy is set to +2 for every level.   Cron for donators: $query5="UPDATE users SET energy=energy+(maxenergy/(6.5)) WHERE energy<maxenergy AND donatordays>0";
  7. Re: Free News Script Lmao
  8. Re: [mccode] Improved Estate Agents for v2.0 Go to your database , find the houses table then edit accordingly. Ok here it is for v1: <?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(); $mpq=mysql_query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}",$c); $mp=mysql_fetch_array($mpq); $_GET['property']=abs((int) $_GET['property']); if($_GET['property']) { $npq=mysql_query("SELECT * FROM houses WHERE hID={$_GET['property']}",$c); $np=mysql_fetch_array($npq); if($np['hWILL'] < $mp['hWILL']) { print "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { print "You do not have enough money to buy the {$np['hrNAME']}."; } else { mysql_query("UPDATE users SET money=money-{$np['hPRICE']},maxwill={$np['hWILL']} WHERE userid=$userid",$c); print "Congrats, you bought the {$np['hNAME']} for \${$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq=mysql_query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}",$c); $np=mysql_fetch_array($npq); if($ir['maxwill'] == 100) { print "You already live in the lowest property!"; } else { mysql_query("UPDATE users SET money=money+{$np['hPRICE']},maxwill=100 WHERE userid=$userid",$c); print "You sold your {$np['hNAME']} and went back to your Coffin."; } } else { print "<center>Your current property: <font color=blue>[b]{$mp['hNAME']}[/b]</font> The houses you can buy are listed below. Click a house to buy it. "; if($ir['maxwill'] > 100) { print "[url='estate.php?sellhouse']Sell Your Property[/url] "; } $hq=mysql_query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC",$c); while($r=mysql_fetch_array($hq)) { print " <table cellspacing=1 class='table'><tr style='background:gray;'><th>House</th><th>House Price</th><th>House Will</th><th>Buy?</th></tr>"; $hq=mysql_query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC",$c); while($r=mysql_fetch_array($hq)) { print "<tr><td>{$r['hNAME']}</a></td> <td>\$$t".money_formatter($r['hPRICE'],'')."</td> <td>{$r['hWILL']}</td> <td><a href='estate.php?property={$r['hID']}'>Buy</tr>"; } print "</table>"; } } $h->endpage(); ?>
  9. Re: [v1 & v2]Reset your users without deleating them What about events and fed jail etc ?
  10. Re: Better than Quantifying $rfr=mysql_query("SELECT inv_id,inv_itemid FROM inventory WHERE inv_itemid=4 AND inv_userid=$userid ",$c) or die(mysql_error()); $y=mysql_fetch_array($rfr); { if(mysql_num_rows($rfr) == 0) { //create seperate $qut=$_GET['qty']; mysql_query("INSERT INTO inventory VALUES('',$itemidexplo,$userid,1)",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0", $c); } if(mysql_num_rows($rfr) >=1) { $qut=$_GET['qty']; $itemid=$y['inv_id']; mysql_query("UPDATE inventory SET inv_qty=+1 WHERE inv_id=$itemidexplo",$c) or die(mysql_error()); mysql_query("DELETE FROM inventory WHERE inv_qty=0", $c); } Anyone know whats wrong with this for street.php ?
  11. Re: How do i make myself staff? Assistant is 6
  12. Re: Better than Quantifying Would you need to edit your inventory.php in order for this to work ?
  13. Re: Mafia Game Script v1.0 details Will this script have some kind of copyright so not everyone has it within a week free of charge ?
  14. Re: [Free] Log Suspicious Users Heh, i'm impressed, would it be possible to log text inputs with just a script in header ? If so i might give it ago.
  15. Re: Delete I would love t see your game, it sounds very advance
  16. Re: [Free] Log Suspicious Users Does this log the users inputs ?
  17. Re: [FREE][MCCODE V1] Mass Payment Nice mod, just needs to add an event
  18. Re: New exploit found! Can you not password the cron files ?
  19. Re: SQL Injections $query = “INSERT INTO orders(address) VALUES('$_GET['address']')”; If i changed that to this: $query = “INSERT INTO orders(address) VALUES stripslashes('$_GET['address']')”; Would it even help ?
  20. Re: [mccode] FREE Criminal Record (advanced) Theres a few bugs with this, i've fixed the exp one. It always inserts 0 for your success even if you have failed or succeeded. $succ="0" Don't really know what you would change that to.   If a crime has already been done by someone else it won't insert again.
  21. Re: Crystal market exploit? Corr, that was much more than i expected thanks very much it works great for stopping the exploit but it's not inserting to the db, ill have a play around with it i guess.
  22. Re: Crystal market exploit? Thanks, does this need to go anywhere else like item market ? +1 Edit: Don't think i can give you +1 anymore
  23. Does anyone know how to prevent the crystal marekt exploit that everyone seem to know how to do?
  24. Re: Strange attacking problem Can you post it ? Or help me sort mine ?
  25. Re: [v1][FREE] DONATION PACKS TO ITEMS It must be exaclty the same so it's not pack1 it's Pack 1
×
×
  • Create New...