Jump to content
MakeWebGames

MDF3

Members
  • Posts

    13
  • Joined

  • Last visited

MDF3's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Maybe in the eyes of the law, though everyone knows that Ravan is MCCODES with a different theme and a few modifications added.  
  2. It would involve a lot of time and money to get rid of these websites, and could be near impossible, if they aren't hosted in America. $120 for the script is not too bad, definitely better than when V2 used to cost $300. The script however shouldn't be sold in its current state, there are too many issues out of the box, not to mention missing php files.   I am not sure to be honest, some of the php files appear to be encrypted, I will take a closer look at them later. Half of the people who were on CE, probably didn't have a valid license.   The code had better be a hell of a lot better out of the box, if they are going to encrypt it.
  3. I meant most people within this community, and I assume that they got SQL injected or something similar.
  4. I won't worry about it, I have decided to modify another script instead.
  5. It is not shocking, most people just know that MCCODES runs Mono Country and Mono District.
  6. You have seriously never heard of Mono District before? I never implied that it was my website.
  7. Hey Guys, In 2009, I purchased Ravan's Mafia Script 1.2, before I knew that it was MCCODES V2 with a different header picture. I came across the Ravan website in Google tonight, and decided to try logging back into my old account, which worked. I then downloaded the latest version of the script, for free, and was surprised at what I saw. In the past, Ravan used to trick people into buying the stock standard MCCODES V2 (with branding removed of course), by having an impressive demo game, that was only based off of the script. Now Ravan includes this impressive theme, along with a lot of different mods, and the script works well! It is obviously still based off of MCCODES though. What is my point? My point is that Redux costs $120 (I did purchase it), and is quite frankly, pretty shitty out of the box. It is as if MCCODES does this deliberately, so you have to put in a lot of work, before you can compete with Mono District. Ravan's Mafia Script 2.1, on the other hand, costs $15, and includes free updates. I am WELL AWARE that Ravan's Mafia Script is infringing copyright, my point is that it works better out of the box, has more functionality out of the box, and looks more aesthetically pleasing out of the box than MCCODES does. Hopefully this will change with MCCODES V3 (if it ever does get released). A less buggy script with all features working out of the box would be highly appreciated. What are your thoughts? Does anyone else feel that the MCCODES script is not updated as much as it should be?
  8. I have been wanting to check out Mono District for the past few days, though it doesn't appear to be working? When I go to monodistrict.com, I am presented with the following error: QUERY ERROR: Table 'monodist_mono.settings' doesn't exist Query was SELECT * FROM settings I know that MCCODES gets neglected quite a bit, though their website, for almost 2 days? (Perhaps longer, this was when I noticed it)
  9. MDF3

    Jobs issue

    I do not know exactly what you mean, though this info may help. There is a 'job' and a 'jobrank' column in the users table. Both of these have a value of '1' for my user, meaning that I have the first job and the first rank of that job? 'jNAME' appears to be in the 'jobs' table, and 'jrPAY', 'jrIQG', 'jrSTRG', and 'jrLABOURG' appear to be in the 'jobranks' table. I am not sure if this information helps, though it seems that the page isn't getting information from these tables?   What do you mean? I have this problem out of the box, with an unmodified job.php file. I am using Redux (MCCODES 2.5). I will have to look into turning error reporting on, though I usually see errors when something is wrong.
  10. MDF3

    Jobs issue

    Hey guys, When I get a job using my script, it says the following on the job page:   It also says nothing next to job rank. Does anyone know what the problem could be?   <?php /* Engine: MC V2.5 (Redux) File: job.php Author: mccodes.com */ if ( !defined($_CONFIG['define_code']) ) { echo 'This file cannot be accessed directly.'; exit; } $_GET['interview'] = ( isset($_GET['interview'])&&is_numeric($_GET['interview']) )?abs(intval($_GET['interview'])):''; if ( !$ir['job'] ) { if ( !$_GET['interview'] ) { echo " How can you expect to get ahead in life without a job? Kids these days!<br /><br /> A list of available jobs is posted on the whiteboard below.<br /><br /><hr width='75%'><br /> "; $q = $db->query("SELECT `jID`,`jDESC`,`jNAME` FROM `jobs`"); while ( $r = $db->fetch_row($q) ) { echo " > {$r['jNAME']} - {$r['jDESC']} - <a href='".gen_url('job',true)."&interview={$r['jID']}'>Go to interview</a> <br /> "; } } else { $q = $db->query("SELECT j.`jOWNER`,jr.`jrID`,`jrIQN`,`jrLABOURN`,`jrSTRN` FROM `jobs` j LEFT JOIN `jobranks` jr ON j.`jFIRST` = jr.`jrID` WHERE j.`jID` = {$_GET['interview']}"); $r = $db->fetch_row($q); echo " {$r['jOWNER']}: I have looked over your resume, when are you available to start? <br /><br /> {$ir['username']}: I can start immediately, if that is alright with you?<br /><br />"; if ( $ir['strength'] >= $r['jrSTRN'] && $ir['labour'] >= $r['jrLABOURN'] && $ir['IQ'] >= $r['jrIQN'] ) { $db->query("UPDATE `users` SET `job` = {$_GET['interview']},`jobrank` = {$r['jrID']} WHERE `userid` = $userid"); echo " {$r['jOWNER']}: Congratulations {$ir['username']}, you have gotten the job. <br /><br /> {$ir['username']}: Thank you so much! <br /><hr width='75%'> > <a href='".gen_url('job',true)."'>Leave Interview</a> "; } else { echo " {$r['jOWNER']}: Come back when you have "; if ( $ir['strength'] < $r['jrSTRN'] ) { $s = $r['jrSTRN'] - $ir['strength']; echo " $s more strength, "; } if ( $ir['labour'] < $r['jrLABOURN'] ) { $s = $r['jrLABOURN'] - $ir['labour']; echo " $s more manual, "; } if ( $ir['IQ'] < $r['jrIQN'] ) { $s = $r['jrIQN'] - $ir['IQ']; echo " $s more intelligence, "; } echo " and the job is yours. <br /><hr width='75%'> > <a href='".gen_url('job',true)."'>Leave Interview</a> "; } } } else { switch($_GET['action']) { case 'quit': quit_job(); break; case 'promote': job_promote(); break; default: job_index(); break; } } function job_index() { global $db, $ir,$c,$userid,$h; echo " <h3>Job</h3> You currently work in the {$ir['jNAME']}! You receive \${$ir['jrPAY']} each day at 5pm! <br /> You also receive {$ir['jrIQG']} IQ, {$ir['jrSTRG']} strength, and {$ir['jrLABOURG']} labour! <br /> <table width=50% cellspacing=1 class='table'> <tr> <td>Strength: {$ir['strength']}</td> <td>IQ: {$ir['IQ']}</td> </tr> <tr> <td>Labour: {$ir['labour']}</td> <td>Job Rank: {$ir['jrNAME']}</td> </tr> </table> <b>Job Ranks</b> <br /> <table width=75% cellspacing=1 class='table'> <tr style='background:gray'> <th>Title</th> <th>Pay</th> <th>Strength Reqd</th> <th>IQ Reqd</th> <th>Labour Reqd</th> </tr> "; $q = $db->query("SELECT `jrNAME`,`jrPAY`,`jrSTRN`,`jrIQN`,`jrLABOURN` FROM `jobranks` WHERE `jrJOB` = {$ir['job']} ORDER BY `jrPAY` ASC"); while ( $r = $db->fetch_row($q) ) { echo " <tr> <td>{$r['jrNAME']}</td> <td>\${$r['jrPAY']}</td> <td>{$r['jrSTRN']}</td> <td>{$r['jrIQN']}</td> <td>{$r['jrLABOURN']}</td> </tr> "; } echo " </table> <br /> <a href='".gen_url('job',true)."&action=promote'>> Try To Get Promoted</a> <br /> <a href='".gen_url('job',true)."&action=quit'>> Quit</a> "; } function job_promote() { global $db,$ir,$c,$userid,$h; $q = $db->query("SELECT `jrID`,`jrNAME` FROM `jobranks` WHERE `jrPAY` > '{$ir['jrPAY']}' AND `jrSTRN` <= '{$ir['strength']}' AND `jrLABOURN` <= '{$ir['labour']}' AND `jrIQN` <= '{$ir['IQ']}' AND `jrJOB` = '{$ir['job']}' ORDER BY `jrPAY` DESC LIMIT 1"); if ( $db->num_rows($q) == 0 ) { echo " Sorry, you cannot be promoted at this time. <br /> > <a href='".gen_url('job',true)."'>Go Back</a> "; } else { $r = $db->fetch_row($q); $db->query("UPDATE `users` SET `jobrank` = {$r['jrID']} WHERE `userid` = $userid"); echo " Congrats, you have been promoted to {$r['jrNAME']}. <br /> > <a href='".gen_url('job',true)."'>Go Back</a> "; } } function quit_job() { global $db,$ir,$c,$userid,$h; $db->query("UPDATE `users` SET `job` = 0,`jobrank` = 0 WHERE `userid` = $userid"); echo " You have quit your job! <br /> > <a href='".gen_url('job',true)."'>Go Back</a> "; } $h->endpage(); ?>
  11. Does anyone here have a copy of Nyna's GYM that they have modified for Redux, and would be willing to share? I have tried converting the script to Redux, by using a conversion guide, though get the following error: Parse error: syntax error, unexpected T_STRING in /home/criminal/public_html/Mods/gym.php on line 146 This is line 146, any help would be highly appreciated.   echo sprintf("<input type='radio' name='what' id='what0' value='all' %sstyle='vertical-align:middle;' /><label for='what0' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>All (25%% energy in each) [Rank #%s]</label>   Nyna's Gym:   <?php $macropage = "gym.php"; include "globals.php"; global $db, $h, $ir, $userid; if ($ir['hospital']) { echo " You cannot access the gym whilst in hospital</p>"; $h->endpage(); exit; } $prefs = isset($_SESSION['gymprefs']) ? $_SESSION['gymprefs'] : array('what' => "all", 'expend' => "100%"); $what = $prefs['what']; $expend = $prefs['expend']; $message = false; $sql = sprintf("SELECT us.strength, us.agility, us.guard, us.labour, u.energy, u.will, u.jail FROM users u LEFT JOIN userstats us ON (u.userid = us.userid) WHERE (u.userid = %u) AND (u.user_level < 3)", $userid); $row = $db->fetch_row($db->query($sql)); $formID = preg_replace("`^([0-9A-F]{8})([0-9A-F]{4})([0-9A-F]{4})([0-9A-F]{4})([0-9A-F]{12})$`ms", "{\\1-\\2-\\3-\\4-\\5}", strtoupper(md5(serialize(array(session_id(), "Gym", null))))); if (isset($_POST['formID']) && is_string($_POST['formID']) && ($_POST['formID'] === $formID)) { $what = isset($_POST['what']) && is_string($_POST['what']) && preg_match("`^((all)|(strength)|(agility)|(guard)| (labour))$`ims", $_POST['what']) ? strtolower($_POST['what']) : $what; $expend = isset($_POST['expend']) && is_string($_POST['expend']) && preg_match("`^((100%)|(75%)|(50%)|(25%)|(value))$` ims", $_POST['expend']) ? strtolower($_POST['expend']) : $expend; $value = isset($_POST['value']) && is_string($_POST['value']) && preg_match("`^\d+$`ims", $_POST['value']) ? @intval($_POST['value']) : 0; $sql = sprintf("SELECT energy, will FROM users WHERE (userid = %u)", $userid); $rs = $db->query($sql); $info = $db->fetch_row($rs); $energy = $row['energy']; $will = $row['will']; switch ($expend) { case "100%": $value = $row['energy']; break; case "75%": $value = $row['energy'] * 0.75; break; case "50%": $value = $row['energy'] * 0.50; break; case "25%": $value = $row['energy'] * 0.25; break; default: break; } $value = floor($value); if ($value > $row['energy']) $message = "<span style='color:#C00;'>You don't have enough energy</span>"; else { $prefs = array('what' => $what, 'expend' => $expend); $gain = 0; $will = $row['will']; for ($i = 0; $i < $value; $i++) { $gain += mt_rand(1, 3) / mt_rand(500, 900) * mt_rand(500, 900) * (($will + 20) / 150); $will = max(0, $will - mt_rand(1, 3)); } if ($row['jail']) $gain *= 0.5; $row['will'] = floor($will); $row['energy'] -= $value; switch ($what) { case "all": $message = sprintf("<span style='color:#070;'>You gain %s in each stat</span>", number_format($gain * 0.25, 2)); $row['strength'] += $gain * 0.25; $row['agility'] += $gain * 0.25; $row['guard'] += $gain * 0.25; $row['labour'] += $gain * 0.25; break; case "strength": $message = sprintf("<span style='color:#070;'>You gain %s in strength</span>", number_format($gain, 2)); $row['strength'] += $gain; break; case "agility": $message = sprintf("<span style='color:#070;'>You gain %s in agility</span>", number_format($gain, 2)); $row['agility'] += $gain; break; case "guard": $message = sprintf("<span style='color:#070;'>You gain %s in guard</span>", number_format($gain, 2)); $row['guard'] += $gain; break; case "labour": $message = sprintf("<span style='color:#070;'>You gain %s in labour</span>", number_format($gain, 2)); $row['labour'] += $gain; break; } $sql1 = sprintf("UPDATE userstats SET strength = %.6f, agility = %.6f, guard = %.6f, labour = %.6f WHERE (userid = %u)", $row['strength'], $row['agility'], $row['guard'], $row['labour'], $userid); $sql2 = sprintf("UPDATE users SET will = %u, energy = %d WHERE (userid = %u)", $row['will'], $row['energy'], $userid); $db->query($sql1); $db->query($sql2); } $_SESSION['gymprefs'] = $prefs; } $row['ranks'] = array ( 'strength' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (strength > %.6f)", $row['strength']))) + 1, 'agility' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (agility > %.6f)", $row['agility']))) + 1, 'guard' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (guard > %.6f)", $row['guard']))) + 1, 'labour' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (labour > %.6f)", $row['labour']))) + 1, 'total' => $db->fetch_single($db->query(sprintf("SELECT COUNT(userid) FROM userstats WHERE (strength + agility + guard + labour > %.6f)", $row['strength'] + $row['agility'] + $row['guard'] + $row['labour']))) + 1, ); echo "<style type='text/css'>"; echo "#gym { }"; echo "#gym h3, #gym p { }"; echo "#gym table { width:90%;border-collapse:collapse; }"; echo "#gym th { border:solid 1px #333;background:#F6F6F6 url(th.png);padding:3px;color:#333; }"; echo "#gym td { border:solid 1px #CCC;padding:3px;color:#CCC; }"; echo "#gym { }"; echo "</style>"; echo "<div id='gym'>"; echo sprintf("<h3>%sGym</h3>", $ir['jail'] ? "Jail " : ""); if ($message) echo sprintf(" %s</p>", $message); echo "<form name='train' id='train' action='gym.php' method='post' style='padding:0;margin:0;'>"; echo sprintf("<input type='hidden' name='formID' value='%s' />", $formID); echo "<table cellpadding='0' cellspacing='0'>"; echo "<tr>"; echo "<th class='sub' style='width:50%;'>Train</th>"; echo "<th class='sub' style='width:50%;'>Expend</th>"; echo "</tr>"; echo "<tr>"; echo "<td style='line-height:200%;'>"; echo sprintf("<input type='radio' name='what' id='what0' value='all' %sstyle='vertical-align:middle;' /><label for='what0' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>All (25%% energy in each) [Rank #%s]</label> ", $what === "all" ? "checked='checked' " : "", number_format($row['ranks']['total'])); echo sprintf("<input type='radio' name='what' id='what1' value='strength' %sstyle='vertical-align:middle;' /><label for='what1' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>Strength (%s) [Rank #%s]</label> ", $what === "strength" ? "checked='checked' " : "", number_format($row['strength']), number_format($row['ranks']['strength'])); echo sprintf("<input type='radio' name='what' id='what2' value='agility' %sstyle='vertical-align:middle;' /><label for='what2' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>Agility (%s) [Rank #%s]</label> ", $what === "agility" ? "checked='checked' " : "", number_format($row['agility']), number_format($row['ranks']['agility'])); echo sprintf("<input type='radio' name='what' id='what3' value='guard' %sstyle='vertical-align:middle;' /><label for='what3' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>Guard (%s) [Rank #%s]</label> ", $what === "guard" ? "checked='checked' " : "", number_format($row['guard']), number_format($row['ranks']['guard'])); echo sprintf("<input type='radio' name='what' id='what4' value='labour' %sstyle='vertical-align:middle;' /><label for='what4' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>Labour (%s) [Rank #%s]</label> ", $what === "labour" ? "checked='checked' " : "", number_format($row['labour']), number_format($row['ranks']['labour'])); echo "</td>"; echo "<td style='line-height:200%;'>"; echo sprintf("<input type='radio' name='expend' id='expend0' value='100%%' %sstyle='vertical-align:middle;' /><label for='expend0' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>100%% Energy</label> ", $expend === "100%" ? "checked='checked' " : ""); echo sprintf("<input type='radio' name='expend' id='expend1' value='75%%' %sstyle='vertical-align:middle;' /><label for='expend1' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>75%% Energy</label> ", $expend === "75%" ? "checked='checked' " : ""); echo sprintf("<input type='radio' name='expend' id='expend2' value='50%%' %sstyle='vertical-align:middle;' /><label for='expend2' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>50%% Energy</label> ", $expend === "50%" ? "checked='checked' " : ""); echo sprintf("<input type='radio' name='expend' id='expend3' value='25%%' %sstyle='vertical-align:middle;' /><label for='expend3' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'>25%% Energy</label> ", $expend === "25%" ? "checked='checked' " : ""); echo sprintf("<input type='radio' name='expend' id='expend4' value='value' %sstyle='vertical-align:middle;' onclick='document.train.value.focus();' /><label for='expend4' style='cursor<img src="images/smilies/tongue.png" border="0" alt="" title="Stick Out Tongue" class="inlineimg" />ointer;'><input type='text' id='value' name='value' value='{$row['energy']}' size='8' onfocus='this.select();' /> Energy</label> ", $expend === "value" ? "checked='checked' " : "");//(C)2008,<span class="highlight">Nyna</span> echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' style='text-align:center;padding:6px;'>"; echo "<input type='submit' name='submit' value='Train' />"; echo "</td>"; echo "</tr>"; echo "</table>"; echo "</form>"; echo "</div>"; echo "<p style='color:#CCC;'>An open-source extension from <a href="http://nyna.co.uk/" target="_blank"><span class="highlight">Nyna</span></a></p>"; $h->endpage(); ?>
  12. Thanks, I will take a look at the thread.
  13. Hey guys, I was wondering if there was a way to get rid of the one minute cron job, or even all of them? I have recently found out that my web host (Arvixe) won't allow cron jobs to run any more frequently than 5 minutes. I am asking, because I remember seeing a mod on CE a few years ago, that claimed to run crons without the need for cron jobs.
×
×
  • Create New...