Jump to content
MakeWebGames

[mccode v2] Libary


Guest Sniko`

Recommended Posts

i was bored so i created this useless MOD (Yes, Another) this gains up IQ (NOTE: NOT THE STAT) not sure how to gain up the stat

Run these SQL's

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Create a file called libary.php and enter this code into it

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now create a file called libarystats.php and enter this code

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now go to explore.php and enter this code anywhere

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

______________________________________________________

BELOW IS IF YOU WANT TO ADD

--------------------------------------------------------------

Go To viewuser.php and add this code

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Also put this code anywhere you want to add it

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Thanks Very Basic I Know But Just Something To Kepp Your Users Bragging About The Amount Of The Books Theve Read :D

Link to comment
Share on other sites

Re: [V2] Libary

If the following was added, would it limit book reading to once a day. Its a good mod, but I dont want someone spending a ton of money, and getting too smart too fast? And besides, we sell IQ DP packs, so we would lose in that aspect as well?

 

bookread int 11 null 0

 

$db->query("UPDATE users SET bookread=bookread+1";

 

if($ir['booksread'] >= 1)

{

print "You have already read a book today.

Please comeback tomorrow.";

}

Cron add it to the day cron, to reset the books read

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [V2] Libary

 

 

$db->query("UPDATE users SET bookread=bookread+1";

 

if($ir['booksread'] >= 1)

{

print "You have already read a book today.

Please comeback tomorrow.";

}

Cron add it to the day cron, to reset the books read

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

 

the bookread field is in the users table in this case, you would only want to set the value to 0

or a better idea would be to have it done with no cron and a timestamp..

Link to comment
Share on other sites

Re: [V2] Libary

thanks extermination, ive learnt from those who post free mods in, one day it just clicked in to my brain and i finally got the hang of PHP i loved that day !! :-D

Link to comment
Share on other sites

Re: [V2] Libary

MSN = School Stuff Keeping Me Off

Seen Before = My Freind Gave Me The Idea At School And Yeah I Coded It

 

_________THANKS FOR KIND REVIEWS_______________

Link to comment
Share on other sites

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