PsyChoTic Posted June 22, 2008 Posted June 22, 2008 Hey everyone i dont usually post mods but here's one Its a simple game what i think everyone should like call the file chests.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Ive got it set with a keys feature sort of like turns. ALTER TABLE `users` ADD `keys` INT( 11 ) NOT NULL DEFAULT '100', Ive also got it set with a income so you know how much you have made. ALTER TABLE `users` ADD `chestsincome` INT( 11 ) NOT NULL DEFAULT '0', You can put this anywhere viewuser, header where ever u like like got mine in index. Hope you all enjoy any problems post them pls. UPDATED Images chest.png chest2.png Quote
-Matt- Posted June 22, 2008 Posted June 22, 2008 Re: [V1] Chests [V1] Config2 ??? then change it to config.php Quote
iR00T Posted June 22, 2008 Posted June 22, 2008 Re: [V1] Chests [V1] Nice....I'll be using this i like it nice one Quote
PsyChoTic Posted June 23, 2008 Author Posted June 23, 2008 Re: [V1] Chests [V1] Nice....I'll be using this i like it nice one Thanks X_TheJoker_X glad you like it, let me know if anyone does anything else with it. Quote
ishmell Posted June 24, 2008 Posted June 24, 2008 Re: [V1] Chests [V1] o.o whats it do? allows you to search a chest or something? Quote
iR00T Posted June 24, 2008 Posted June 24, 2008 Re: [V1] Chests [V1] Yeah...I got a error when adding those sql's..?...did anyone else have this problem...?? it said there was a error in that sql i was like nope cause i just added one just like it except it was called diffrent so yeah..? Quote
PsyChoTic Posted June 24, 2008 Author Posted June 24, 2008 Re: [V1] Chests [V1] Posted by: X_TheJoker_X Yeah...I got a error when adding those sql's..?...did anyone else have this problem...?? it said there was a error in that sql i was like nope cause i just added one just like it except it was called diffrent so yeah..? The sql's should work perfect dont know why they wasnt working Posted by: Extermination™ Nice Work! Thanks glad you like it Quote
Tonka Posted June 24, 2008 Posted June 24, 2008 Re: [V1] Chests [V1] for the SQL's you need to add the delimiter, try theses ALTER TABLE `users` ADD `keys` INT( 11 ) NOT NULL DEFAULT '100'; ALTER TABLE `users` ADD `chestsincome` INT( 11 ) NOT NULL DEFAULT '0'; Quote
The Ace Posted June 24, 2008 Posted June 24, 2008 Re: [V1] Chests [V1] Very nice mod!!! I love it! :-P Quote
jds137 Posted June 27, 2008 Posted June 27, 2008 Re: [V1] Chests [V1] Is it possible to add this to V2. If so, please post Thanks a Million Quote
jimmytubbs Posted June 28, 2008 Posted June 28, 2008 Re: [V1] Chests [V1] V2 conversion You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. All the rest is the same as above ^^ Quote
The Ace Posted June 28, 2008 Posted June 28, 2008 Re: [V1] Chests [V1] I really like this mod, but, how do you get keys after you get to 0? Here is what I have tried: Getting them from Lucky Boxes ------ Did not work Getting them from Prizes ------------ Did not work Adding query to day cron ------------ Did not work Grr! Quote
PsyChoTic Posted June 28, 2008 Author Posted June 28, 2008 Re: [V1] Chests [V1] well i dont have a cron have for it, it works as you only lose a key when the box doesnt open and you find a key when it does so if you want a cron you will have to do it yourself mate. Quote
The Ace Posted June 28, 2008 Posted June 28, 2008 Re: [V1] Chests [V1] Right....I see....cheers anyway. :) Quote
Dante_kills Posted June 29, 2008 Posted June 29, 2008 Re: [V1] Chests [V1] Try this: $db->query("UPDATE users SET keys=AMT HERE"); Add that to the day cron. And where it says AMT HERE, put the amount of keys that you want to be set each day Quote
The Ace Posted June 30, 2008 Posted June 30, 2008 Re: [V1] Chests [V1] I tried that when I had first had the problem, and it didn't work. :( lol Quote
Dante_kills Posted June 30, 2008 Posted June 30, 2008 Re: [V1] Chests [V1] PM me and I think I can help you out with this one. Quote
KingRise Posted July 4, 2008 Posted July 4, 2008 Re: [V1] Chests [V1] nice job! but i wont be using ;-) Quote
PsyChoTic Posted August 2, 2008 Author Posted August 2, 2008 Re: [V1] Chests [V1] Thanks everyone im glad you all like the mod ill be makin more soon. Quote
Karlos Posted August 4, 2008 Posted August 4, 2008 Re: [V1] Chests [V1] cheers, not for me tho 8-) Quote
weewooz Posted October 15, 2008 Posted October 15, 2008 Re: [mccode v1] Chests did anyone work out a cron for this i have this which i thought wud work for vr1 mysql_query("UPDATE users SET keys=100",$c); in daysold but still no luck anyone know whats wrong here Quote
Karlos Posted October 15, 2008 Posted October 15, 2008 Re: [mccode v1] Chests You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This Mod Is Labeled V1? Surly Its For Both Versions Quote
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.