Jump to content
MakeWebGames

[mccodes v2] Find random items while playing the game...


Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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!

Posted

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

Posted

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

Posted

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

Posted

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....

Posted

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.

  • 5 months later...
Posted

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?

Guest Sniko`
Posted

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?

Posted

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 ;)

  • 2 months later...
Posted

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

  • 1 month later...
Posted

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

Posted

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.

  • 6 months later...
  • 3 months later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...