Zero-Affect Posted October 7, 2008 Posted October 7, 2008 mine.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Screen Shots: Screen Shot 1 Screen Shot 2 Screen Shot 3 Some help: if sprintf Any questions please mail me [CE] Quote
Haunted Dawg Posted October 7, 2008 Posted October 7, 2008 Re: Mine Shaft [FREE] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Your getting there m8. Keep it up. Quote
Zero-Affect Posted October 7, 2008 Author Posted October 7, 2008 Re: Mine Shaft [FREE] Thanks Mate Quote
Zero-Affect Posted October 10, 2008 Author Posted October 10, 2008 Re: [mccode v2] Mine Shaft You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Corrected a small spelling mistake. and since i cannot edit my original post i though i would just post again. Quote
Uriah Posted October 10, 2008 Posted October 10, 2008 Re: [mccode v2] Mine Shaft Good thing I pointed it out to you then...maybe you could apply some of your "Live it Learn it Code it" to spelling!!! :-P Quote
Zero-Affect Posted October 10, 2008 Author Posted October 10, 2008 Re: [mccode v2] Mine Shaft Good thing I pointed it out to you then...maybe you could apply some of your "Live it Learn it Code it" to spelling!!! :-P I don't think a type means i can't spell, but Live it, Learn it, Code it means code not spelling i mean come on hence the CODE... lol Quote
Uriah Posted October 10, 2008 Posted October 10, 2008 Re: [mccode v2] Mine Shaft lol, "I don't think a type means i can't spell,"....um, shouldn't that be "typo"? Quote
Zero-Affect Posted October 10, 2008 Author Posted October 10, 2008 Re: [mccode v2] Mine Shaft lol, "I don't think a type means i can't spell,"....um, shouldn't that be "typo"? It's 3:36AM and i seriously have no reason to pay this any attention besides a simple a quick reply i can't help if your insecure about your mistakes but love to point out other peoples. anymore posts can be sent over yahoo. Quote
Uriah Posted October 10, 2008 Posted October 10, 2008 Re: [mccode v2] Mine Shaft aww... did i hit a nerve? Sorry Zero. :-) Quote
jamboy1 Posted October 10, 2008 Posted October 10, 2008 Re: [mccode v2] Mine Shaft sorry, but Uriah, lol? thats a mis spelling i believe it should be laugh out loud but i dont use lol often :D im too cool for school i use :L it's quick, simple and looks good on msn Quote
Zero-Affect Posted October 10, 2008 Author Posted October 10, 2008 Re: [mccode v2] Mine Shaft aww... did i hit a nerve? Sorry Zero. :-) I admit i could brush up on some spelling but i type very fast compared to other people since i have had alot of experience in program coding and html before php. maybe you should imply some of my Live It, Learn It, CODE It. to yourself i mean you maybe a good speller but i have never seen you post one mod yet. but looking at your website you use everyone's. hit a nerve im sorry someone that low to the ground couldn't hit a nerve. Laugh Out Loud! Quote
Uriah Posted October 10, 2008 Posted October 10, 2008 Re: [mccode v2] Mine Shaft I don't post mods here cos I don't need the cr*p comments and negativity you throw at everyone... I'm happy just sitting back and helping out those who come to me and are polite. :-) Quote
Zero-Affect Posted October 10, 2008 Author Posted October 10, 2008 Re: [mccode v2] Mine Shaft Yeah i criticize people but it is always encouraging criticism. ask any member i will help anyone who asks in a polite way unless its something like "Can you code my game for free" ill send them here. and just to clarify how many times have i helped you Uriah? even though i can't stand being around you i have helped... answer that... and with some of the minor problems have i not given you hints to research to get the answers? another simple question: Who saved your site from being ruined by ****** and gave you a code to patch forum? BUT SERIOUSLY please refrain from posting anymore (because i know now you will not publicly admit your wrong and i have helped you on many occasions) we are trying to keep the useless posts down sadly some people didn't get the message. (and i know that means me for all the replies but i am allowed at least the last word on my topic) Quote
Uriah Posted October 11, 2008 Posted October 11, 2008 Re: [mccode v2] Mine Shaft I have no problem publicly admitting you have helped me. And I have appreciated it and thanked you for it to. And I don't doubt you have helped others. And who would have known a gentle jibe about a typo would have got you this fired up. I said it already, and I'll say it again, Sorry Zero. Quote
zbirc3 Posted October 11, 2008 Posted October 11, 2008 Re: [mccode v2] Mine Shaft Okay, lets, first of all, start with me saying this is an AWESOME modification! The next thing I'm going to say/ask is: Can someone PLEASE make it so you can only use the mines 20 times per day? Quote
Uriah Posted October 11, 2008 Posted October 11, 2008 Re: [mccode v2] Mine Shaft add at the top of the mining.php or whatever it is called... if($ir['mined'] > 20) { die("You can only mine 20 times a day"); } and then also in the mining code wherever it has your queries for users table add mined=mined+1 so it adds 1 to mined each time they mine...e.g. a line like this: $query = sprintf('UPDATE `users` SET %s = %s + %u, brave = brave - %u WHERE userid = %u', $Mtype, $Mtype, $earn, $cost, $userid); would look like this: $query = sprintf('UPDATE `users` SET %s = %s + %u, brave = brave - %u, mined=mined+1 WHERE userid = %u', $Mtype, $Mtype, $earn, $cost, $userid); and add to your users table... mined int 11 default 0 and add to your day_cron.php $db->query("UPDATE users SET mined=0"); and that is all that is needed...although I'm sure someone else will have a better way of doing it. Quote
Karlos Posted October 11, 2008 Posted October 11, 2008 Re: [mccode v2] Mine Shaft The level restrictions dont work.... Quote
Zero-Affect Posted October 11, 2008 Author Posted October 11, 2008 Re: [mccode v2] Mine Shaft The level restrictions dont work.... The level restrictions dont work.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. it works mate Uriah... that's a bad way of doing it should be Add row: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add into file: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. you would also need to add the turns showing in the file replace: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. with: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and obviously the cron_day code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. although i did code this i suggest on adding this function into it when it runs with no sql rows into user db needed (without this function) the original mine shaft mod posted in i think it was the 3rd post takes 100% brave per turn... it takes 5 mins for it to grow a percentage so i don't understand how anyone could consider this modification even needing turns Uriah yes you don't mind admitting it i see which is a good start but maybe get over your im a victim stage and people will talk to you without thinking is she lieing... Quote
Uriah Posted October 11, 2008 Posted October 11, 2008 Re: [mccode v2] Mine Shaft If by level restrictions not working you mean it goes over 100% and doesn't upgrade your level but just keeps going, maybe it needs an edit to the global_func.php. I added a mining function under my check_level function. Since this code is different to mine I'm sure the script will be different too, and since my last try at being helpful wasn't the best option, I will let Zero give you the right script to match his code. I'm sure Zero will add the updates soon. Of course it would be nothing new for me to be totally on the wrong track lol, I am a total noob/dumbass with all this code stuff and just beginning to learn it myself. Good luck. Quote
Karlos Posted October 12, 2008 Posted October 12, 2008 Re: [mccode v2] Mine Shaft The level restrictions dont work.... The level restrictions dont work.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. it works mate Seriously I Put It On My Game Where They Are All Level 1/2 And They Can Do The Level 100 :| Quote
Karlos Posted October 12, 2008 Posted October 12, 2008 Re: [mccode v2] Mine Shaft Sorted It Now :D Quote
avguste Posted October 16, 2008 Posted October 16, 2008 Re: [mccode v2] Mine Shaft lovely script :) Quote
Canjucks Posted October 17, 2008 Posted October 17, 2008 Re: [mccode v2] Mine Shaft I would like to make this similar to the mine mod in that it is in reverse and have the crystals first from level 1 and not have the turn base Quote
Zero-Affect Posted October 18, 2008 Author Posted October 18, 2008 Re: [mccode v2] Mine Shaft If by level restrictions not working you mean it goes over 100% and doesn't upgrade your level but just keeps going, maybe it needs an edit to the global_func.php. I added a mining function under my check_level function. Since this code is different to mine I'm sure the script will be different too, and since my last try at being helpful wasn't the best option, I will let Zero give you the right script to match his code. I'm sure Zero will add the updates soon. Of course it would be nothing new for me to be totally on the wrong track lol, I am a total noob/dumbass with all this code stuff and just beginning to learn it myself. Good luck. Your mine? meaning you have coded one or your using the paid version? but if you coded it post it here i'd love to take a look. Sorted It Now :D lol your forgot that the first post wasn't actually the valid working one I would like to make this similar to the mine mod in that it is in reverse and have the crystals first from level 1 and not have the turn base easily switched mate... but i do money first because obviously on most games crystals are more valuable than money EDITED: http://illegal-intent.com/mine.php ah it's the paid version... how much did that cost? 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.