Scipol Posted September 30, 2011 Share Posted September 30, 2011 Anyone know of a quick simple mod to make it to where users can buyout of jail for say 20 points (crystals) Quote Link to comment Share on other sites More sharing options...
Djkanna Posted September 30, 2011 Share Posted September 30, 2011 (edited) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Very simple to do... Note: I have no idea, if it will work on the newest MCCodes release, no idea what has changed within it. Edited September 30, 2011 by Djkanna Meh, don't do smileys within your codes comments. :| ^ added the v2 Redux notice Quote Link to comment Share on other sites More sharing options...
Newbie Posted October 4, 2011 Share Posted October 4, 2011 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Very simple to do... Note: I have no idea, if it will work on the newest MCCodes release, no idea what has changed within it. thanks for that i was wondering how i would add a link to jail.php i tried it and it did not work for me Quote Link to comment Share on other sites More sharing options...
dippitydawgshyt Posted October 4, 2011 Share Posted October 4, 2011 DJ how do I pay to place someone one IN the Jail? Quote Link to comment Share on other sites More sharing options...
Djkanna Posted October 4, 2011 Share Posted October 4, 2011 thanks for that i was wondering how i would add a link to jail.php i tried it and it did not work for me You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. DJ how do I pay to place someone one IN the Jail? ^SomeRandomBastard did it above. Quote Link to comment Share on other sites More sharing options...
boots Posted December 22, 2011 Share Posted December 22, 2011 i like this mod :) but is it poss to have it so it use's an item out of the inventory to get outa jail ? Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted December 22, 2011 Share Posted December 22, 2011 You can add an item just replace the crystals, and query. Quote Link to comment Share on other sites More sharing options...
Gang-Life. Posted December 23, 2011 Share Posted December 23, 2011 I was bored, so decided to write this up real quick - Less than 5 minutes! You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This is not tested, I did not even upload it to a server, but I can almost guarantee it works without an error. Any problems, post back. i hate to say this because i only know 1/100 of php but i think you didnt add the update for jail time Quote Link to comment Share on other sites More sharing options...
boots Posted December 23, 2011 Share Posted December 23, 2011 Ive been trying for the last few hour's to add an item to the code instead of crystals but still no joy i dont know alot about code still learning,can somone please tell me how to add item.ID=6, Thanks Quote Link to comment Share on other sites More sharing options...
boots Posted December 23, 2011 Share Posted December 23, 2011 Ive been trying to add an item instead of crystals for the last 2 hours still no joy :( Iam trying to learn code and i know this is an easy one to change but my eyes are burning from looking at this screen lol please show me how to add this item id 6 thanks Quote Link to comment Share on other sites More sharing options...
boots Posted December 24, 2011 Share Posted December 24, 2011 <?php require_once (dirname (__file__) .'/globals.php'); //Define the price. $bailCost = 1; // Change //Check for actually in jail. if ($ir['jail'] > 0) { //Check that they have enough item.php?ID=6 to continue. if ($ir['item.php?ID=6'] > $bailCost) { //Update the users, amount and jail amount. $db->query ('UPDATE `users` SET `jail` = 0, `item.php?ID=6` = `item.php?ID=6` - '.$bailCost.' WHERE (`userid` = '.$userid.')'); echo '<p>You\'ve paid to get yourself out of jail...<a href="index.php" title="Back to home">Back to home</a></p>'; } else { //Not enough lock picks message. echo '<p>You cannot afford to buy yourself out of jail.<a href="index.php" title="Back to home">Back to home</a></p>'; } } else { //Not actually in jail at the time. echo '<p>You\'re not currently in the jail.<a href="index.php" title="Back to home">Back to home</a></p>'; } //Show footer $h->endpage(); ithis is what i have now but i have tried it so many different ways i have tried with itemuse.php?ID item=id6 just dont know :( Quote Link to comment Share on other sites More sharing options...
boots Posted December 24, 2011 Share Posted December 24, 2011 No good :( i was thinking is it poss to access the inventory while in jail if so that would solve everything as id 6 is a lock pick to get outa jail Quote Link to comment Share on other sites More sharing options...
boots Posted December 24, 2011 Share Posted December 24, 2011 :D Ive worked it out :) just made it so i can access inventory 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.