Coly010 Posted January 3, 2011 Posted January 3, 2011 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? Quote
Coly010 Posted January 3, 2011 Author Posted January 3, 2011 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 Quote
Coly010 Posted January 3, 2011 Author Posted January 3, 2011 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. Quote
Coly010 Posted January 3, 2011 Author Posted January 3, 2011 Yay i topped snikos 18 views and not one reply with 39 Quote
Danny696 Posted January 3, 2011 Posted January 3, 2011 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Anyone else see something wrong there................................ Quote
Danny696 Posted January 3, 2011 Posted January 3, 2011 No, you cant say that about someone famous, you cant say alot actually..... Quote
Coly010 Posted January 3, 2011 Author Posted January 3, 2011 there its edited. now can you tell me what you think of my mod altogether? Quote
Rasheed saeed Posted January 3, 2011 Posted January 3, 2011 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 Quote
Coly010 Posted January 3, 2011 Author Posted January 3, 2011 yeah i know. i own lite and i'm trying to code v2 doesnt really work well but should it not be $db-> not db->? Quote
Coly010 Posted January 3, 2011 Author Posted January 3, 2011 and can $c be there or would it ruin the file? Quote
Rasheed saeed Posted January 3, 2011 Posted January 3, 2011 Ohh.. I did not notice that 0-0 Yes is should... $c I'm not sure, but it has no effect to it and isn't needed. Quote
Coly010 Posted January 3, 2011 Author Posted January 3, 2011 is the You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. correct for the cron so that it happens to everyone even those offline? Quote
Maniak Posted January 5, 2011 Posted January 5, 2011 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. 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.