jpoke5 Posted January 20, 2009 Share Posted January 20, 2009 I'm using the torn city script and my exp is not working. I searched the forums but all i could find was inf on changing the success formula. I found one that was said to be a higher setting -((WILL*0.1)/75)+(LEVEL/4) - but i still get no exp. also used a diff one with no luck. The success money is set to: 10000 and the crime xp is set to: 100 as far as i know the crons are working because it lets me out of jail. Not sure what to do next or what i need to check to get this working?? Thanks for the help, you people on the forums rock when it comes to support!! Jeff Quote Link to comment Share on other sites More sharing options...
shedh Posted January 20, 2009 Share Posted January 20, 2009 Re: exp not working i didn't even know Torn City gave their scripts out Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 20, 2009 Share Posted January 20, 2009 Re: exp not working I doubt he is using TC script. Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 20, 2009 Share Posted January 20, 2009 Re: exp not working What level are you or level whoever gets no exp? Quote Link to comment Share on other sites More sharing options...
jpoke5 Posted January 20, 2009 Author Share Posted January 20, 2009 Re: exp not working im the owner/admin at level 200 Not sure what level i should be at for testing of the game play? Very new to this....sorry, but thanks for the help guys!! I got my script from http://ravan.info/ so im not sure what it is. from what i read on the forums this my be a revised copy mccode v2 but unsure.... Jeff Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 20, 2009 Share Posted January 20, 2009 Re: exp not working Not sure how it works, (im going by MCCODES) check the query and make sure it's inserting the EXP gain into the users table. If not, fix up the query and it should be fine. Also (mccodes again) check the docrime.php file and check if everything is done properly. Quote Link to comment Share on other sites More sharing options...
jpoke5 Posted January 20, 2009 Author Share Posted January 20, 2009 Re: exp not working not sure what to look for in the crimes php or the database? jeff Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 21, 2009 Share Posted January 21, 2009 Re: exp not working not sure what to look for in the crimes php or the database? jeff In the file which will have the query to insert into the DB.. Quote Link to comment Share on other sites More sharing options...
POG1 Posted January 21, 2009 Share Posted January 21, 2009 Re: exp not working mccodes scripts for 14.99 lol Quote Link to comment Share on other sites More sharing options...
jpoke5 Posted January 21, 2009 Author Share Posted January 21, 2009 Re: exp not working <?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 " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } } $h->endpage(); ?> Thats what i have in the docrimes.php but not sure if thats correct? 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.