spellbyte ® Posted November 16, 2006 Share Posted November 16, 2006 ok i thought i had this cracked but apparently not, My crimes dont seem to be giving any exp, here is what i have at the moment in docrime.php $ec="\$sucrate=".str_replace(array("LEVEL","EXP","WILL","IQ"), array($ir['level'], $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['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); if($r['crimeITEM'] > 0) if it's not in there then it must be in the db entries for crimes Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted November 17, 2006 Share Posted November 17, 2006 Re: crime EXP theres nothing in that code that updates the database with new exp :s 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.