Arkvoodle` Posted March 4, 2008 Posted March 4, 2008 I thought I'd make a bank for donators only. It's a very basic mod of cyberbank but I thought you guys might want something like this. Create file called donatorbank.php In that, add... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then run this SQL query ALTER TABLE `users` ADD `donatorbank` INT NOT NULL DEFAULT '0'; Now place this into your Cron_day.php where other db query's are. $db->query("UPDATE users SET donatormoney=donatormoney+(donatormoney/100*20) where donatormoney>0"); I think that is it, You can change the interest by changing (donatormoney/100*[interest goes here]). Also you can change fees by finding $fees in the codes. I hope you enjoy this, as it took me all of 10 minutes to make =P Oh, one last thing:- Edit explore.php and find... if($ir['location'] == 5) { print " Cyber Bank "; } Under that put if($ir['donatordays'] > 0) { print " Donator's Bank "; } And that is it, I havn't tested this yet so please post any problems/things I may have missed. Thanks =D. Quote
spazz Posted March 4, 2008 Posted March 4, 2008 Re: Donator's Bank[MCV2] This is a good idea, there were a few typos and missing. This should work better but still be buggy: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. The query was wrong too, should be: ALTER TABLE `users` ADD `donatormoney` INT(11) NOT NULL DEFAULT '-1'; I also added in staff_users.php: look for: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and under add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. but I am no pro here just throwing out my 2 cents, seems to work OK on my game, not sure about the cron, but it looks alright Quote
Godhand Posted March 4, 2008 Posted March 4, 2008 Re: Donator's Bank[MCV2] It has been made before. I have something similar to this. I also have about 8 different donator banks. Quote
Klikoka Posted March 5, 2008 Posted March 5, 2008 Re: Donator's Bank[MCV2] Banks Are The Simplest Code To Do :) Quote
tittlemouse Posted March 5, 2008 Posted March 5, 2008 Re: Donator's Bank[MCV2] hi i couldnt get this to work on my v2 game Quote
Arkvoodle` Posted March 5, 2008 Author Posted March 5, 2008 Re: Donator's Bank[MCV2] What happened? Quote
tittlemouse Posted March 5, 2008 Posted March 5, 2008 Re: Donator's Bank[MCV2] Congratulations, you bought a bank account for $10,000! Start using my accountQUERY ERROR: Unknown column 'donatormoney' in 'field list' Query was UPDATE users SET money=money-10000,donatormoney=0 WHERE userid=1 Quote
tittlemouse Posted March 5, 2008 Posted March 5, 2008 Re: Donator's Bank[MCV2] theres nothing to edit there lol Quote
Krafty Posted March 5, 2008 Posted March 5, 2008 Re: Donator's Bank[MCV2] If you have some common sense...go into the script / phpmyadmin and edit the sql or run the sql... Quote
tittlemouse Posted March 5, 2008 Posted March 5, 2008 Re: Donator's Bank[MCV2] i have lol thats the 1st thing i did Quote
Halo Posted March 5, 2008 Posted March 5, 2008 Re: Donator's Bank[MCV2] For V.1 :-D You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. There might be a few snags but they will be easy to fix! Quote
Godhand Posted March 5, 2008 Posted March 5, 2008 Re: Donator's Bank[MCV2] Wtf..8?! Yes I made it so that they require so many donator days to use the bank. I also make them super expensive. Quote
Krafty Posted March 6, 2008 Posted March 6, 2008 Re: Donator's Bank[MCV2] So I'm not the only crazy one round here Lol Jkes Quote
Arkvoodle` Posted March 6, 2008 Author Posted March 6, 2008 Re: Donator's Bank[MCV2] I'm GLaD to see you all take people and their mods seriously. =/. Quote
Godhand Posted March 7, 2008 Posted March 7, 2008 Re: Donator's Bank[MCV2] So far I haven't posted any mods that I want to be taken seriously :-P. I code as a pastime not a method of income. I haven't offered any of the mods that I wanted to be taken seriously for sale yet; I'd rather have more for sale at once. Quote
neener Posted July 28, 2008 Posted July 28, 2008 Re: Donator's Bank[MCV2] Congratulations, you bought a bank account for $10,000! Start using my accountQUERY ERROR: Unknown column 'donatormoney' in 'field list' Query was UPDATE users SET money=money-10000,donatormoney=0 WHERE userid=1 maybe thats cause his sql is wrong. he posted: ALTER TABLE `users` ADD `donatorbank` INT NOT NULL DEFAULT '0'; when it's ALTER TABLE `users` ADD `donatormoney` INT NOT NULL DEFAULT '0'; Quote
Strats Posted April 22, 2009 Posted April 22, 2009 Re: [mccode v2] Donator's Bank Pop. Bringing an old topic back just to ask about it. I have wanted a donator bank and thought this seemed great. I have installed it and not at all altered it. I get this message when I click on the bank : Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/******/public_html/donatorbank.php on line 82 Which is : global db,$ir,$c,$userid,$h; What should it be? Thank you to anyone who can help. Quote
DELETE ME NOW! Posted April 22, 2009 Posted April 22, 2009 Re: [mccode v2] Donator's Bank lol missed a $ You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. There Quote
Strats Posted April 22, 2009 Posted April 22, 2009 Re: [mccode v2] Donator's Bank Ahhh Thanks Crazy :-) Quote
DELETE ME NOW! Posted April 22, 2009 Posted April 22, 2009 Re: [mccode v2] Donator's Bank Ahhh Thanks Crazy :-) Anytime :P 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.