Jump to content
MakeWebGames

Recommended Posts

Posted

Well i had a weather mod a while back i was working on, but i cant find it so i made this. This mod isnt really finished with what im going to do with it, but you can add it to your game and do what you want to with it. This simply selects a weather by a cron and you can make that weather have different affects on your game. While all our games are different they should all be able to fit in your game differently.

So simply add this bit of SQL into your MYSQL database

 

You're unable to view this code.

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

 

Make this edit in your header.php file

Find:

You're unable to view this code.

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

 

Below Add This:

You're unable to view this code.

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

 

Now Open your monorail.php file and find this:

You're unable to view this code.

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

 

Below that add this:

You're unable to view this code.

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

 

Make a Cron called weathercron.php

 

You're unable to view this code.

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

 

Like i said not that much really, but that should give you some ideas. If you make any additions please feel free to post! i will also be adding on to it and i will share with you guys. :)

  • 6 months later...
Posted

this isn't working for me, getting this error where it should be displayed underneath <b>Crystals:</b> {$ir['crystals']}

"; =mysql_query("SELECT * FROM weather WHERE wACTIVE=1",Resource id #6); =mysql_fetch_array(); =mysql_num_rows(); if( == 0) { ="Sunny"; } else { =""; } print"Current weather is ";

any suggestions?

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