Jump to content
MakeWebGames

Recommended Posts

Posted

Ok so I'm lying in bed it's 00:37 I'm on my iPod and I want to create a simple mod and what do I base it on?

Sleep lol pathetic I know but it may come in handy to someone down the line.

In main menu add this somewhere:

You're unable to view this code.

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

then u obviously create the file sleep.pup and into it copy and paste the following:

You're unable to view this code.

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

 

Lol like I said , simple very simple. But I don't know if the query is correct is it?

Posted

I'm working on a real estate mod on my lappy and I will hopefully finish it tomorrow. This mod is one where u can buy houses and stuff to try and get more money income but taxes get taken from it. Taxes vary depending on the income and level of the player and players Real Estate level. Higher Real Estate Level the less tax but it costs money to upgrade your real estate. Would anyone be interested in this mod? I am still going to post it anyway :P

Posted

The advanced version of this mod

This is the advanced version of this mod

Ok so this is the advanced version of the sleep mod i posted earlier. It is now 01:56 here im still on my ipod and lying in bed typing this into the notes app on the ipod as the wireless internet is off. Anyway everything you need to do for the advanced version is posted below. If you find any bugs or errors post them here so i can learn from my mistakes :)

this took me approximatly 30 mins to 1 hour and 15 mins to make. Im just guessing because i didnt time it and things take longer on the iPod.

In the sleep.php file you can change the cost of how much it is to sleep depending on the economy of your game.

[mysql]

ALTER TABLE `users` ADD `sleeps` int(11) NOT NULL DEFAULT `5`;

[/mysql]

cron_day.php

You're unable to view this code.

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

 

mainmenu.php

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.

 

Whereever you find appropiate place this into your header file

header.php

You're unable to view this code.

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

Posted

I can say alot. Justin Beiber needs to get hit by puberty instead of a Water Bottle... :)

You're unable to view this code.

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

$c isn't need at all. Also you didn't reset the SLEEP to 5 for the users..

You're unable to view this code.

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

It's optional... And WTF?

You're unable to view this code.

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

$c isn't needed in any of these... But no the less thankies for the moddies :D

Posted

Even if you was to use $userid in the Query, it wouldn't update everyone as in globals.php (I think) there is a line that looks like: $userid = $_SESSION['userid'].

So really, it wouldn't matter which you put you'd still be updating only the users who are online, which is why there is no "WHERE (`something`='something')" in any of the Cron Files.

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