-
Posts
785 -
Joined
-
Last visited
-
Days Won
79
Content Type
Profiles
Forums
Events
Everything posted by SRB
-
Hairy muff! If they're willing to look it up to understand it, I'm going to assume (Yes, the mother of all fu*k ups) that they wouldn't be the ones wanting to be spoon fed, but would rather take the advice and learn something via research. That alone removed them from the spectrum of my comments, doesn't it? You seem a little upset today, so who knows if you're irrational when pissed off :P
-
Passed. Does MTG feel offended? He laughs himself at his use of sprintf, so if he doesn't feel offended, nobody has been offended. Assumption is the mother of all fu*k ups, isn't it? Not technically an error. Just locking a table twice for no reason, which Alan pointed out a way to make it better. Oh, I'm sorry, maybe I am stupid to assume that giving someone 1 line of code, to replace their 2 lines, they have to understand what they just changed. Under that logic, surely everyone who's been hacked via 3rd party apps must have understood that too. Oh wait, that is different somehow? ----- Seems somebody woke up in a sh*t mood today and just throwing out BS on the forums, eh? If I'm breaking some rules, ban me...
-
How would spoon feeding the masses help anybody? Only help them to because grade A at copy and paste, so no benefit to them. Want the whole code wrote? Start paying out.
-
Don't think you provided enough information for them :P
-
Care to inform me how you calculate 42% of your time. I want to be able to split my time into numbers like that, with no margin for error!
-
While we are discussing the price, can somebody answer this pricing question. If a camel costs 2 ducks and 3 ferrets, how much is a giraffe? ^ Totally on topic!
-
Not quite. I mean, for example, I decide to make a game today and have money laying around and decide that X, Y and Z mods will be installed, so I buy them. In 2 weeks, I decide on a different direction for my game and X and Z are no longer suitable for the "feel" of the game, so what do I do with those? When bought, they had a purpose, but after that, they aren't suitable for my needs, which is no Cronus's fault, so can't ask for a refund, but why not transfer it to somebody who could make use of it?
-
Most software creators acknowledge that an end product may not be suitable for the needs, so willing to lose a couple bucks to keep their customers happy.
-
Would have been images, since that's where the worms hit. So profile images and forum images. Since there are no checks, you can insert malicious JavaScript and when viewed, copies it to your own too. Since its then in your own account, you have full auth to change your password etc That's assuming you have some sort of csrf protection which would make this harder. Of course, it's not csrf that's actually occurring, the token on forms etc should block rogue updates like this one. Furthermore, without any tokens on preferences and the fact McCord forum BB tag for images isnt secure, means that's a possibility also, to add malicious JavaScript. Conclusion: security is lax and I'm unsure of its been updated in newer versions.
-
Shouldn't have taken so long, Sniko *tut tut* Given the first 2 lines posted in the original post, which can both be found here: http://teachthe.net/?cat=60 It was only a matter of time to also notice: http://teachthe.net/?p=1626 Me, Seanybob and Decepti0n had a lot of fun with that one back in '09/10 (TeachThe.net was the domain me, Seanybob and Scarlet got that was supposed to become a forum, but we all lost interest, so Seanybob updated it at a later date)
-
And me. --tooshort--
-
Not yet, I haven't reached my verdict yet. ~TheJudge
-
May I ask why you're giving no info publicly, but say if it doesn't sell here, you'll probably sell on flippa where you'll get no interest without all data attached, so guess you'll add them there?
-
So, I decided to log in to my email today and check the spam folder, to which I was greeted by an email from Cronus, which was this: Hello everyone, I have decided that within the next 2-3 weeks I will be taking MCCodeMods.com offline. The site does not cover it's own costs anymore and the forum seems to be riddled with spambots and no real new, helpful, material. So, until the site closes, all mods will be half price. After the site comes down, the mods will still be available for purchase through MCCodes.com, however, they will be at a much higher price there than you would find here, especially during the half price sale. Your best bet is to buy them now while they are cheap. If anyone needs backups of old mods, you can still submit support tickets until the site goes down and I will open the download link. I am expecting the site to go offline around July 12th-14th. If anyone is interested in purchasing MCCodeMods.com (and all the rights to the mods), contact me through the forum. I will only sell it all as a package deal, you either take it all or you get nothing. I am not expecting a buyer to pop up but I thought I would put the option out there if anyone is interested. I will miss you guys greatly as this has been a huge part of my life for a very long time, but I don't have time for it anymore and the site isn't making enough to just leave up as it was before. I've met a lot of great people here and every once and a while I will pop up on MakeWebGames.com if you would like to get a hold of me. Thanks for all of your support over the years. -Cronus So with that said, if you have mods from him and you no longer hold a copy locally, I'd get on over there and get it downloaded.
-
Why reinvent the wheel when there are great template systems already out there? Throwing TWIG via a class, such as I have, requires nothing more than something like this, once integrated: PHP: <?php include_once('initiate.php'); login_required(); $sql = "SELECT `name`, `aiport`, `cost` FROM `locations` ORDER BY `cost` ASC"; $loc = $db->fetchALL($sql); $temp = new Template(); $temp->assign('locations', $loc) ->display('template/locations/file.php'); HTML (To use loop etc, only) <table class="table table-bordered"> {% for loc in locations %} <tr> <td>{{ loc.name }}</td> <td>{{ loc.airport }}</td> <td>${{ loc.cost|currency }}</td> </tr> {% endfor %} </table> Fairly simple and lightweight really
-
Log() may be handy here since it keeps number low regardless of their amount - means 10 and 10000 aren't so far apart during combat.
-
As a combat system, regardless of what the end user wants, I would expect a combat system, which if they require to be changed, can be changed. I have never encountered a combat system that requires all stats to be within line of each other, to be able to attack. That limits players to be playing one way, stat wise, if they have to keep them balanced. It's just not logical in my opinion and the core module should have just allowed any stats amount to fight against another -- the end user should be the one to edit it to be the other way. And before the argument comes in regards to it being an engine and not a game, my point is this -- every module on your page is game related, which makes it a game engine. When I see blog modules etc, I'll change my point of view, but for now it remains a game engine and the base module in this case does not do as it should be expected to do.
-
mccode-v2 Secured bank (minor update to fit >) + Bank robbery!
SRB replied to yaz94's topic in Free Modifications
Without a database... not tested. <?php include(__DIR__ ."/globals.php"); $rconfig = array ( 'enabled' => TRUE, // enable or disable page (TRUE or FALSE) 'brave' => 10, // brave cost 'energy' => 10, // energy cost 'maxmoney' => 1000, // Maximum that can be taken. 'hospt' => mt_rand(5, 10), 'jailt' => mt_rand(5, 10), 'hospr' => 'Got shot while robbing the bank!', 'jailr' => 'Got arrested while robbing the bank!', ); if ($rconfig['enabled'] == TRUE) { echo '<h4>The bank is closed for maintainence due to a robbery!</h4> <p><a href="bank.php">Go back!</a></p>'; } else if($ir['hospital'] > 0 || $ir['jail'] > 0) { echo '<h4>You can not rob anything from a hospital bed or jail cell, punk!</h4> <p><a href="bank.php">Go back!</a></p>'; } else if($ir['brave'] < $rconfig['brave']) { echo '<h4>You must have ' . number_format($rconfig['brave']) . ' brave to rob the bank!</h4> <p><a href="bank.php">Go back!</a></p>'; } else if($ir['energy'] < $rconfig['energy']) { echo '<h4>You must have ' . number_format($rconfig['energy']) . ' energy to rob the bank!</h4> <p><a href="bank.php">Go back!</a></p>'; } else { if($_GET['action'] !== "robbank") { echo '<h4>To rob the bank you need:</h4> <p>Brave: ' . number_format($rconfig['brave']) . '</p> <p>Energy: ' . number_format($rconfig['energy']) . '</p> <h4><a href="robbank.php?action=robcomp">Proceed with the robbery!</a></h4> <p><a href="bank.php">Run while you can!</a></p>'; } else { $chance = mt_rand(1,4); switch($chance) case "1": echo '<h4>You got shot by one of the security officers</h4> <p><a href="hospital.php">Go Back</a></p>'; $sql = "UPDATE `users` SET `brave` = `brave` - '{$rconfig['brave']}', `energy` = `energy` - '{$rconfig['energy']}', ". "`hospital` = '{$rconfig['hospt']}', `hospreason` = '{$rconfig['hospr']}' WHERE `userid` = '{$ir['userid']}'"; mysql_query($sql); break; case "2": echo '<h4>You got arrested by one of the security officers</h4> <p><a href="jail.php">Go Back</a></p>'; $sql = "UPDATE `users` SET `brave` = `brave` - '{$rconfig['brave']}', `energy` = `energy` - '{$rconfig['energy']}', ". "`jail` = '{$rconfig['jailt']}', `jail_reason` = '{$rconfig['jailr']}' WHERE `userid` = '{$ir['userid']}'"; mysql_query($sql); break; case "3": echo '<h4>You just missed a shot to your head and ran like a coward!</h4> <p><a href="bank.php">Go Back</a></p>'; break; case "4": $money = mt_rand(0, $rconfig['maxmoney']); echo '<h4>You earned $' . number_format($money) . ' from robbing the bank!</h4> <p><a href="bank.php">Go Back</a></p>'; $sql = "UPDATE `users` SET `brave` = `brave` - '{$rconfig['brave']}', `energy` = `energy` - '{$rconfig['energy']}', ". "`money` = `money` + '{$money}' WHERE `userid` = '{$ir['userid']}'"; mysql_query($sql); break; } } $h->endpage(); -
Never looked past that one, but will look now... also, IRC, mofo :P
-
took a whole 2 seconds: if($_GET['a'] == buy) to if($_GET['a'] == "buy") Simples
-
Apple don't. They're fussy as hell -- a lot of apps get rejected there too. On a side note, it's pointless to be aiming at iOS 6 right now, with iOS 7 just around the corner. The beta is actually already being used by a lot of people (me included) as it was leaked. http://s8.postimg.org/t4gxv8qyr/IMG_0700.png http://s24.postimg.org/65vfjnqdf/IMG_0699.png http://s14.postimg.org/5e0uz2fpt/IMG_0701.png
-
Scarlet is busy with real life right now, working long days etc, so you'll need to contact someone else. As Dave suggested, I'd contact pete leaman (w3_peter or something)
-
Should be the return url, so the domain name and TLD
-
<?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(); print "<h3>Hospital</h3> <table width='75%' border='2'> <tr bgcolor=gray> <th>ID</th> <th>Name</th> <th>Level</th> <th>Time</th> <th>Reason</th> </tr>"; $q = mysql_query("SELECT u.*,c.* FROM users u WHERE u.hospital > 0 ORDER BY u.hospital DESC", $c); if (mysql_num_rows($q) > 0) { while ($r = mysql_fetch_array($q)) { print " <tr> <td>{$r['userid']}</td> <td><a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> [{$r['userid']}]</td> <td>{$r['level']}</td> <td>{$r['hospital']} minutes</td> <td>{$r['hospreason']}</td> </tr>"; } } else { echo " <tr> <td colspan='5'>There are currently no patients in the hospital.</td> </tr>"; } print " </table>"; $h->endpage();