Jason-x Posted November 20, 2013 Share Posted November 20, 2013 (edited) Problem solved thanks Edited November 20, 2013 by Jason-x Quote Link to comment Share on other sites More sharing options...
Dominion Posted November 20, 2013 Share Posted November 20, 2013 If I remember correctly crimeXP isn't player experience, but a completely unused stat all of its own that only appears inside the crime staff panel. Quote Link to comment Share on other sites More sharing options...
Jason-x Posted November 20, 2013 Author Share Posted November 20, 2013 how do people gain xp to level up then :S because committing crimes is doing nothing Quote Link to comment Share on other sites More sharing options...
Jason-x Posted November 20, 2013 Author Share Posted November 20, 2013 this is the xp i get for combat aswell You beat Taz and gained 0% EXP! You hide your weapons and drop Taz off outside the hospital entrance. Feeling satisfied, you walk home. Quote Link to comment Share on other sites More sharing options...
Script47 Posted November 20, 2013 Share Posted November 20, 2013 (edited) You should get XP for doing crimes, as for the attacking thing, I think (don't quote me on it) but if you hospitalize you don't get XP - if that is how you are attacking them, if not then I'm not sure. Edited November 20, 2013 by Script47 Quote Link to comment Share on other sites More sharing options...
Jason-x Posted November 20, 2013 Author Share Posted November 20, 2013 i did leave on the attack since the attackleave gives you xp but as for crimes i'm getting no xp atall Quote Link to comment Share on other sites More sharing options...
Script47 Posted November 20, 2013 Share Posted November 20, 2013 Hmm, last ditch attempt. Try re-install it maybe that might help? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 20, 2013 Share Posted November 20, 2013 Error logs? Quote Link to comment Share on other sites More sharing options...
Jason-x Posted November 20, 2013 Author Share Posted November 20, 2013 not getting any error on the page, just not receiving the xp for successful attacks and crimes this is the do crime php i got <?php $macropage="docrime.php?c={$_GET['c']}"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['c']=abs((int) $_GET['c']); if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","CRIMEXP","EXP","WILL","IQ"), array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print $r['crimeITEXT']; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,100) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['crystals']+=$r['crimeSUCCESSCRYS']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); mysql_query("UPDATE users SET money={$ir['money']}, crystals={$ir['crystals']}, exp={$ir['exp']},crimexp=crimexp+{$r['crimeXP']} WHERE userid=$userid",$c); if($r['crimeSUCCESSITEM']) { item_add($userid, $r['crimeSUCCESSITEM'], 1); } } else { if(rand(1, 2) == 1) { print $r['crimeFTEXT']; } else { print $r['crimeJTEXT']; $db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'"); } } print "<br /><a href='docrime.php?c={$_GET['c']}'>Try Again</a><br /> <a href='criminal.php'>Crimes</a>"; } } $h->endpage(); ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted November 20, 2013 Share Posted November 20, 2013 not getting any error on the page, just not receiving the xp for successful attacks and crimes this is the do crime php i got Error logs, not errors on the page. You probably have errors off. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted November 24, 2013 Share Posted November 24, 2013 How do you lot not see exactly what's wrong here? <?php $macropage = "docrime.php?c=".$_GET['c']; include(__DIR__ . '/globals.php'); if($ir['jail'] or $ir['hospital']) { echo "This page cannot be accessed while in ".($ir['jail'] ? 'jail' : 'hospital'); $h->endpage(); exit; } $_GET['c'] = isset($_GET['c']) && ctype_digit($_GET['c']) ? abs(@intval($_GET['c'])) : null; if(empty($_GET['c'])) { echo "You didn't select a valid crime"; $h->endpage(); exit; } $q = $db->query("SELECT * FROM `crimes` WHERE `crimeID` = ".$_GET['c']); if(!$db->num_rows($q)) { echo "That crime doesn't exist"; $h->endpage(); exit; } $r = $db->fetch_row($q); if($ir['brave'] < $r['crimeBRAVE']) { echo "You do not have enough Brave to perform this crime."; $h->endpage(); exit; } $ec = "\$sucrate=" . str_replace( array("LEVEL", "CRIMEXP", "EXP", "WILL", "IQ"), array($ir['level'], $ir['exp'], $ir['exp'], $ir['will'], $ir['IQ']), $r['crimePERCFORM']) . ";"; @eval($ec); echo stripslashes($r['crimeITEXT']); $ir['brave'] -= $r['crimeBRAVE']; $db->query("UPDATE `users` SET `brave` = ".$ir['brave']." WHERE `userid` = ".$userid); if(mt_rand(1, 100) <= $sucrate) { echo str_replace("{money}", $r['crimeSUCCESSMUNY'], $r['crimeSTEXT']); $ir['money'] += $r['crimeSUCCESSMUNY']; $ir['crystals'] += $r['crimeSUCCESSCRYS']; $ir['exp'] += $r['crimeXP']; $db->query("UPDATE `users` SET `money` = ".$ir['money'].", `crystals` = ".$ir['crystals'].", `exp` = ".$ir['exp']." WHERE `userid` = ".$userid); if($r['crimeSUCCESSITEM']) item_add($userid, $r['crimeSUCCESSITEM'], 1); } else { if(mt_rand(1, 2) == 1) echo stripslashes($r['crimeFTEXT']); else { echo stripslashes($r['crimeJTEXT']); $db->query("UPDATE `users` SET `jail` = ".$r['crimeJAILTIME'].", `jail_reason` = '".$r['crimeJREASON']."' WHERE `userid` = ".$userid); } } echo "<br /><a href='docrime.php?c=".$_GET['c']."'>Try Again</a><br /><a href='criminal.php'>Crimes</a>"; $h->endpage(); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.