TheRipper Posted October 27, 2006 Share Posted October 27, 2006 Really easy but figured with the free jail codes this will help someone out. You might haft to edit it for your table name with your jail time.I use seanybobs jail system and the keys work fine with them. inventory.php Find code You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Insert this code You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. itemuse.php Put it right before the end of the page You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then go to your db and create the item type in the itemtype table and the item in the item table.Then it should show up in your admin panel where you can ethier give it away or add it to a shop for sale.I am sure there is a easier way to do this but it worked for me. Quote Link to comment Share on other sites More sharing options...
canibalstew Posted November 2, 2006 Share Posted November 2, 2006 jail key for some reason it says i cant use item and does anyone know why when i use my items the amout of items dont go down!!!! Quote Link to comment Share on other sites More sharing options...
jay-dogg2006 Posted November 2, 2006 Share Posted November 2, 2006 Add jail key i have this on my game moded it my self wroks sweet :) Quote Link to comment Share on other sites More sharing options...
TheRipper Posted November 3, 2006 Author Share Posted November 3, 2006 Re: jail key for some reason it says i cant use item and does anyone know why when i use my items the amout of items dont go down!!!! Fixing to head to sleep..I will edit it tomorrow..forgot to add the code here for it to remove the item also..sorry Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted November 6, 2006 Share Posted November 6, 2006 Re: Add jail key That is not how it is =D. This is how it is done. I have done it so if you have seanybob,Netcodes,Jay-doggs jail modifications and some self-made jails. If you dont have a jail i might put on on CE free (if i get enough buyers) (my site : http://netcodes.pimpinstate.com/) inventory.php Find code Code: print " [Use]"; Insert this code Inventory Code:: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. itemuse.php Put it right before the end of the page and before the last } (to prevent it from being Parse Errored) Item Use Code::: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. End of..Done! Quote Link to comment Share on other sites More sharing options...
TheRipper Posted November 8, 2006 Author Share Posted November 8, 2006 Re: Add jail key Edited it to erase the key after use..sorry forgot to come back and edit it.. Quote Link to comment Share on other sites More sharing options...
canibalstew Posted November 8, 2006 Share Posted November 8, 2006 Re: Add jail key thanx alot Quote Link to comment Share on other sites More sharing options...
DesignLoft Posted November 30, 2006 Share Posted November 30, 2006 Re: Add jail key can someone please give me the sql code to insert into my database as i cannot figure it out!!! Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted June 5, 2010 Share Posted June 5, 2010 good idea Quote Link to comment Share on other sites More sharing options...
gurpreet Posted June 5, 2010 Share Posted June 5, 2010 Way to bump a 3 and a half year old topic Quote Link to comment Share on other sites More sharing options...
Danny696 Posted June 5, 2010 Share Posted June 5, 2010 Oh god, its an item and an item type, how hard is that xD Quote Link to comment Share on other sites More sharing options...
Dominion Posted June 5, 2010 Share Posted June 5, 2010 if you look at mods back in 06 they have all been remade 1000 times this is not a bad mod and easy sure but new at the time Quote Link to comment Share on other sites More sharing options...
Dillion & Amanda 4 Lif Posted June 5, 2010 Share Posted June 5, 2010 How about a new jail system? Lol. Where you can try to "Break Out" of prison once per visit, and if you fail your time is doubled, along with crafting jail keys with a crafting mod, etc. Much better ;). This, however, fails. Quote Link to comment Share on other sites More sharing options...
bladewolf2010 Posted June 5, 2010 Share Posted June 5, 2010 lol i just wanted to see how many people reply to it :P and snake make one i'd love to see it Quote Link to comment Share on other sites More sharing options...
Dillion & Amanda 4 Lif Posted June 5, 2010 Share Posted June 5, 2010 lol i just wanted to see how many people reply to it :P and snake make one i'd love to see it Maybe after my stock mod. Quote Link to comment Share on other sites More sharing options...
Uridium Posted June 5, 2010 Share Posted June 5, 2010 If you do this script correctly you could have more than 1 type of key to get you out of jail as long as its ItemID and name are entered.. Example after the include "globals.php"; add $filename="keys.txt";$words=file($filename);shuffle($keys);$key=$keys[0]; // THIS IS FOR YOUR NAMES KEYS $filename="keysID.txt";$words=file($filename);shuffle($keysID);$keyID=$keysID[0]; // THIS IS FOR YOUR KEYS ID now on this part if($i['itmname'] == 'Jail Key') { print " [Use]"; } turn it into if($i['itmname'] == '$keys') { print " [Use]"; } And this part print " [Use]"; Change to print " [Use]"; make two text files one called keys.txt and one called keysID.txt now you can add as many key names and key IDs that you have listed in your game 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.