Smokey Posted May 19, 2012 Posted May 19, 2012 First, I did not write this mod, although I enhanced it quite a bit, this was a mod called Ians Investment Mod I got here at the free mods section on MWG found here: http://makewebgames.io/showthread.php/30432-mccode-v2-Ian-s-Investments?highlight=ians It was originally made with 2 levels of upgrading, i changed it to 10 levels, the way interest is made has been changed drastically, its now based upon interest level and length of investment and does not gain daily but at the end of the investment. I added an early withdrawal system that will charge 15% of the investment to pull out early. I secured it in several places, you can only upgrade each level when you have invested a certain total amount, each time you invest it is added to the total. The price goes up considerably each time you upgrade as well, taking money and points/crystals to do so. I eliminated the use for crons except for the user contract you must buy every 3 months. I eliminated alot of code though more could be eliminated with a few variables. It is based on timestamps instead of crons and counts down the days, hours minutes and seconds (not live) for the investment time, the only cron is a single day cron for the contract time. There is a cap of 2.5b which can be changed easily as can most other things. Investment lengths were 7 and 14 days. 30, 60 and 90 days I added. Here is a list of investments percentages per level per length. I wrote this up as a guide so i figured someone may want it to go along with the mod. If anyone uses this mod i would appreciate some feedback :) (* amount gained from a capped investment of 2.5b) Level 1: 7 Days - 0.21% *5.25m 14 Days - 0.42% *10.5m 30 Days - 0.91% *22.75m 60 Days - 1.82% *45.5m 90 Days - 2.73% *68.25m Level 2: 7 Days - 0.42% *10.5m 14 Days - 0.85% *21.25m 30 Days - 1.82% *45.5m 60 Days - 3.64% *91m 90 Days - 5.45% *136.25m Level 3: 7 Days - 0.64% *16m 14 Days - 1.27% *31.75m 30 Days - 2.73% *68.25m 60 Days - 5.45% *136.25m 90 Days - 8.18% *204.5m Level 4: 7 Days - 0.85% *21.25m 14 Days - 1.70% *42.5m 30 Days - 3.64% *91m 60 Days - 7.27% *181.75m 90 Days - 10.91% *272.75m Level 5: 7 Days - 1.06% *26.5m 14 Days - 2.12% *53.m 30 Days - 4.55% *113.75m 60 Days - 9.09% *227.25m 90 Days - 13.64% *341m Level 6: 7 Days - 1.27% *31.75m 14 Days - 2.55% *63.75m 30 Days - 5.45% *136.25m 60 Days - 10.91% *272.75m 90 Days - 16.36% *409m Level 7: 7 Days - 1.48% *37m 14 Days - 2.97% *74.25m 30 Days - 6.36% *159m 60 Days - 12.73% *318.25m 90 Days - 19.09% *477.25m Level 8: 7 Days - 1.70% *42.5m 14 Days - 3.39% *84.75m 30 Days - 7.27% *181.75m 60 Days - 14.55% *363.75m 90 Days - 21.82% *545.5m Level 9: 7 Days - 1.91% *47.75m 14 Days - 3.82% *95.5m 30 Days - 8.18% *204.5m 60 Days - 16.36% *409m 90 Days - 24.55% *613.75m Level 10: 7 Days - 2.12% *53m 14 Days - 4.24% *106m 30 Days - 9.09% *227.25m 60 Days - 18.18% *454.5m 90 Days - 27.27% *681.75m Investment Level Upgrade Cost: Level 1 - Free Level 2 - $10,000,000 and 50 points Level 3 - $40,000,000 and 100 points Level 4 - $90,000,000 and 150 points Level 5 - $160,000,000 and 200 points Level 6 - $250,000,000 and 250 points Level 7 - $360,000,000 and 300 points Level 8 - $490,000,000 and 350 points Level 9 - $640,000,000 and 400 points Level 10 - $810,000,000 and 450 points Now for the mod :P SQL's You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. investment.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. day cron for the contract You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add this link where you want it located You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Arson Posted May 23, 2012 Posted May 23, 2012 It is based on timestamps instead of crons and counts down the days, hours minutes and seconds (not live) cron for the contract You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ?????????? Quote
Seker Posted May 23, 2012 Posted May 23, 2012 ?????????? I think the timestamps are just used for the interest. He could have worded it better, I suppose. Or just, somehow, used timestamps for the contract as well. In any case, it looks interesting. It's actually too bad I don't have a use for it. Quote
Arson Posted May 23, 2012 Posted May 23, 2012 Ohhh alrighty then, well done with this mod :) I hope you won't mind, but I went ahead and added your mod to my new modding website for free download. Credit has been given where it is due of course, as well as a link to this original thread. You can see the listing here: WebGameMods.com Shoot me a PM if you'd like your name (in the mod description) to be linked to your website or portfolio. Quote
Seker Posted May 23, 2012 Posted May 23, 2012 Ohhh alrighty then, well done with this mod :) I hope you won't mind, but I went ahead and added your mod to my new modding website for free download. Credit has been given where it is due of course, as well as a link to this original thread. You can see the listing here: WebGameMods.com Shoot me a PM if you'd like your name (in the mod description) to be linked to your website or portfolio. Nice little site you got there, Arson. Feel free to include anything I post there.(If they're worthy :P ) Quote
Arson Posted May 23, 2012 Posted May 23, 2012 Nice little site you got there, Arson. Feel free to include anything I post there.(If they're worthy :P ) Why thank you! It's a work in progress, I hope one day it proves useful to you :) Quote
Seker Posted May 23, 2012 Posted May 23, 2012 Why thank you! It's a work in progress, I hope one day it proves useful to you :) No problem. :) If there's every any help you need with it, let me know. I'm a firm believer that all of us game developers should work together and not against each other. Sure, it's a competitive market, but if theme/content is original, a little collaboration in all areas shouldn't be a problem. There's plenty of room for everyone to succeed. :) Quote
Arson Posted May 24, 2012 Posted May 24, 2012 No problem. :) If there's every any help you need with it, let me know. I'm a firm believer that all of us game developers should work together and not against each other. Sure, it's a competitive market, but if theme/content is original, a little collaboration in all areas shouldn't be a problem. There's plenty of room for everyone to succeed. :) I couldn't agree more :) We should be one big happy family :D Hopefully some day WebGameMods will be a massive directory of free and paid modifications for engines of all types. As well as several tutorials for the rookie, and the experienced web game developers/owners alike. Quote
Smokey Posted June 3, 2012 Author Posted June 3, 2012 I eliminated the use for crons except for the user contract you must buy every 3 months. Yea sorry for the confusion, the interest uses timestamps but the contract doesnt, i could have converted that too but i spent enough time with this mod and was ready to move on to something else :P Quote
crimec Posted January 2, 2013 Posted January 2, 2013 where do you add the cron (day,minute etc) Quote
KyleMassacre Posted January 2, 2013 Posted January 2, 2013 It looks like it would be a weekly cron Quote
AnonymousUser Posted January 3, 2013 Posted January 3, 2013 It looks like it would be a weekly cron negative... You may sign a contract that entitles you to our interest facilities.Once under contract you may invest any amount of money for a certain period of time, you will then gain interest based on that period.You may also upgrade your contract if you wish to gain additional interest. its more of a day cron... or if you choose to put it as a weekly cron you could however the contract just ALLOWS the USE of the mod. other then that it looks like its all running on time not cron Quote
crimec Posted January 31, 2013 Posted January 31, 2013 hey guys i have a game but i dont know how to change the max money and max stats the max money is 2bil and max stats is 40m can someone help me thanks Quote
Bennyh789 Posted February 3, 2013 Posted February 3, 2013 Has anybody got a working copy of this im getting errors everywhere, ive fixed a few but theres a few that im struggling with one being: Parse error: syntax error, unexpected T_IF in /home/endoftim/public_html/investment.php on line 30 The code is: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. line 30 is: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. thanks Ben Quote
AnonymousUser Posted February 4, 2013 Posted February 4, 2013 i find it difficult for myself to read that mess :D so.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now there we go :D... i see your problem a lot better with just simply indenting your code dont you? Quote
AnonymousUser Posted February 4, 2013 Posted February 4, 2013 (edited) maybe all the asterisks, honestly i did nothing with the code but indent it and remove the asterisks :D lmfao i didnt even remeber fixing it :D good practice i guess i changed You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. to You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited February 4, 2013 by AnonymousUser Quote
spikereloaded Posted February 6, 2013 Posted February 6, 2013 works great on our site! will let you know if we come up against any bugs! Quote
Smokey Posted February 22, 2013 Author Posted February 22, 2013 Has anybody got a working copy of this im getting errors everywhere, ive fixed a few but theres a few that im struggling with one being: Parse error: syntax error, unexpected T_IF in /home/endoftim/public_html/investment.php on line 30 The code is: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. line 30 is: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. thanks Ben There wasn't anything wrong with the code I posted, all those asterisks aren't in there which would for sure break your code :P Also I'm glad people are getting some use out of it, it seems to be pretty successful in my game. Quote
Bennyh789 Posted February 22, 2013 Posted February 22, 2013 There wasn't anything wrong with the code I posted, all those asterisks aren't in there which would for sure break your code :P Also I'm glad people are getting some use out of it, it seems to be pretty successful in my game. Ive got it all fixed thanks very much for this mod its great!!! 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.