Joshua Posted December 28, 2009 Posted December 28, 2009 Ok, fairly simple mod here. This was Redex's idea I just slapped it together, all credit goes to him This mod basically gives users a "stall" Where they can try once per day at a random chance of success or fail. Success brings money, fail loses money. The money goes into a stall vault where users can withdraw at their leisure. It's limited to one time per day. Shrugz, nothing special :P SQLs 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. stalls.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. There is a chance for the stalls to go into the negatives. You have 2 options here. Let them ^_- or add a cron into the minute cron $db->query("DELETE FROM stalls WHERE stallvault < 0"); Again, nothing special, any ideas on this i'm willing to expand Quote
Danny696 Posted December 28, 2009 Posted December 28, 2009 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Why do that, wouldnt it be eiser to to just let it error if they dont have the file? 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.