MDK666 Posted May 4, 2009 Posted May 4, 2009 well since i see that alot of people are starting to use other currencys such as diamonds and crystals i will release a bank that i have coded myself, from the original back script, this bank script also gives intrest and it all works, ive tested it on my last game, so if you get any errors let me know and ill try and help as much as i can, considering im no longer running a mc2 game. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
jds137 Posted May 5, 2009 Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys Whats the cron for intrest? Quote
MDK666 Posted May 5, 2009 Author Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys put this in cron day $db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0"); $db->query("UPDATE users SET bankcrystals=bankcrystals+(bankcrystals/50) where bankcrystals>0"); $db->query("UPDATE users SET bankdiamonds=bankdiamonds+(bankdiamonds/50) where bankdiamonds>0"); Quote
POG1 Posted May 5, 2009 Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys bankmoney=bankmoney+(bankmoney/50)?? try bankmoney = (bankmoney * 1.5) It does the same job, but with less code :) Quote
Karlos Posted May 5, 2009 Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys :wink: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
MDK666 Posted May 5, 2009 Author Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys :-o all these advanced coders i wish i knew as much as u guys :wink: Quote
Karlos Posted May 5, 2009 Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys Umm.... I'm not advanced.. I wish I was though :-P Quote
MDK666 Posted May 5, 2009 Author Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys you guys have more experience in php then i do im still learning as i d even though this darn attack.php script is ticking me off :roll: Quote
Karlos Posted May 5, 2009 Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys I've been coding PHP for over 9 months... Just recently started looking into the MySQL side in more depth recently... Quote
MDK666 Posted May 5, 2009 Author Posted May 5, 2009 Re: [mccode2] 3 in one bank for people with multiple currencys yay i got my updated attack.php script to work with all the armors from my inventory mod, but im selling it for $10.00, it grabs all the armors that the person/s have equiped and alows them to be used during attacking, which gives the user a higher def, or what ever the items stats are. 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.