Jump to content
MakeWebGames

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...