MDK666 Posted November 8, 2008 Posted November 8, 2008 this is a small but simple mod to add into your game... open header.php and add this in around the middle of the file You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
jonomatt Posted November 9, 2008 Posted November 9, 2008 Re: [mccodes v2] Find random items while playing the game... isnt this mod V1? it looks like it cos the codes have mysql_fetch_array ect. I thought V2 would be something like: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I might be wrong but thats what i was taught so if its wrong please tell me why. thanks. Quote
MDK666 Posted November 9, 2008 Author Posted November 9, 2008 Re: [mccodes v2] Find random items while playing the game... isnt this mod V1? it looks like it cos the codes have mysql_fetch_array ect. I thought V2 would be something like: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I might be wrong but thats what i was taught so if its wrong please tell me why. thanks. it should work in both because its not requireing files or anything. im not exactly sure becuase i use v2 Quote
jonomatt Posted November 9, 2008 Posted November 9, 2008 Re: [mccodes v2] Find random items while playing the game... kk i was lookng round the site and apparantly according to the V1 to V2 mod the $db-> is more secure than mysql_ but in all my mods i always use $db-> Sorry for the confusion. Good work mate +1! Quote
MDK666 Posted November 9, 2008 Author Posted November 9, 2008 Re: [mccodes v2] Find random items while playing the game... kk i was lookng round the site and apparantly according to the V1 to V2 mod the $db-> is more secure than mysql_ but in all my mods i always use $db-> Sorry for the confusion. Good work mate +1! tnks Quote
MyGunWars Posted November 10, 2008 Posted November 10, 2008 Re: [mccodes v2] Find random items while playing the game... How do i slow it down??? Quote
josh-j-c Posted November 12, 2008 Posted November 12, 2008 Re: [mccodes v2] Find random items while playing the game... What do you mean by "Slow it down" ? I take it your finding items every time you enter "Explore" or "City" ??? Ill have a look through the code and see if i can find anything inside it :) Jc Quote
KiX Posted November 12, 2008 Posted November 12, 2008 Re: [mccodes v2] Find random items while playing the game... Worked gr8! I will definitely use it on my site Underground Evolution. Good one. +1 Quote
MDK666 Posted November 12, 2008 Author Posted November 12, 2008 Re: [mccodes v2] Find random items while playing the game... How do i slow it down??? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
AlabamaHit Posted November 12, 2008 Posted November 12, 2008 Re: [mccodes v2] Find random items while playing the game... when you convert v1 to v2 you DONT have to chagne the mysql_query to $db-> myql_query is php code...it will always work....come on people Mccodes is wrote in PHP mccodes is NOT a language itself.... Quote
Ishraq Posted November 12, 2008 Posted November 12, 2008 Re: [mccodes v2] Find random items while playing the game... this is a good idea. well done :) Quote
jonomatt Posted November 12, 2008 Posted November 12, 2008 Re: [mccodes v2] Find random items while playing the game... when you convert v1 to v2 you DONT have to chagne the mysql_query to $db-> myql_query is php code...it will always work....come on people Mccodes is wrote in PHP mccodes is NOT a language itself.... according to one of the posts on the site $db-> is more secure. Quote
shaved92bravada Posted November 12, 2008 Posted November 12, 2008 Re: [mccodes v2] Find random items while playing the game... I actually used something similar to this awhile back and worked out quite well. Made it so they could only get certain item types. Quote
firecamp Posted April 27, 2009 Posted April 27, 2009 Re: [mccodes v2] Find random items while playing the game... I actually used something similar to this awhile back and worked out quite well. Made it so they could only get certain item types. how did you manage to do that? Quote
Guest Sniko` Posted April 27, 2009 Posted April 27, 2009 Re: [mccodes v2] Find random items while playing the game... Im sure this has been made before, but im not sure who by, i remeber it somewhere, or did you just convert it? Quote
Karlos Posted April 27, 2009 Posted April 27, 2009 Re: [mccodes v2] Find random items while playing the game... Meh, A better idea... use a cron/timestamp make it change once a day... Have about 5 numbers, maybe use an array, explode it.. Harder as well ;) Quote
thedestroyer Posted July 6, 2009 Posted July 6, 2009 Re: [mccodes v2] Find random items while playing the game... this mod doesn't work. I tried it Quote
F4R1D Posted July 6, 2009 Posted July 6, 2009 Re: [mccodes v2] Find random items while playing the game... it dose work its proberly ur header.php or you have added it in the rong page mate so look for the middle part Quote
icecoldcola Posted September 3, 2009 Posted September 3, 2009 Re: [mccodes v2] Find random items while playing the game... looks great,but where do i add this in the header file,you say half way down but im not sure where half way is :-) looks good tho nice job Quote
thedestroyer Posted September 4, 2009 Posted September 4, 2009 Re: [mccodes v2] Find random items while playing the game... i have added it half way down in header but its not working :? Quote
icecoldcola Posted September 5, 2009 Posted September 5, 2009 Re: [mccodes v2] Find random items while playing the game... Great mod +1 for you =) the destroyer you put it between the brackets like this ) there will be random code here ( add it here so you will need to get the pattern right ie ) there will be random code here ) this wont work. Quote
rowbvp Posted March 28, 2010 Posted March 28, 2010 I know this is old but what is a good line to add this code Quote
Agon Posted July 19, 2010 Posted July 19, 2010 I know I'm noobish in asking this. Trying to figure out how to add a daily cron to this so you can only find one random item a day. Quote
Danny696 Posted July 19, 2010 Posted July 19, 2010 Add a coloum in the users table when the find the item update it to say 1 then in the day cron reset it to 0 Quote
Agon Posted July 19, 2010 Posted July 19, 2010 Here's my version. Thanks to Dominion and Equinox and Danny. [mysql]ALTER TABLE `users` ADD `dailyitem` tinyINT( 11 ) NOT NULL DEFAULT '0';[/mysql] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Daily Cron You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 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.