FBCTorg
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 05:35:12 PM |
|
very nice from you sharing this with others, PM me your BTC addy please ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) There's one in the readme on the git hub repo ; ) 0.01 sent, cheers ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Thank you for the support ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) i used your script on this site: LINK, faucet balance was not showing any value, so i had to remove it, do you have any idea what was wrong? thank you
|
|
|
|
onewiseguy
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 05:41:56 PM |
|
any way you can set up a a threshold?
|
|
|
|
coinableS (OP)
Legendary
Offline
Activity: 1442
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 06:23:30 PM |
|
very nice from you sharing this with others, PM me your BTC addy please ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) There's one in the readme on the git hub repo ; ) 0.01 sent, cheers ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Thank you for the support ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) i used your script on this site: LINK, faucet balance was not showing any value, so i had to remove it, do you have any idea what was wrong? thank you Now that you mention it i think I do. I'll take a look when I get home wife had me a run a 5k this morning
|
|
|
|
MRKLYE
Legendary
Offline
Activity: 1358
Merit: 1003
Designer - Developer
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 06:25:36 PM |
|
very nice from you sharing this with others, PM me your BTC addy please ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) There's one in the readme on the git hub repo ; ) 0.01 sent, cheers ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Thank you for the support ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) i used your script on this site: LINK, faucet balance was not showing any value, so i had to remove it, do you have any idea what was wrong? thank you Now that you mention it i think I do. I'll take a look when I get home wife had me a run a 5k this morning I would be looking to modify this into an altcoin dice/faucet and if I could link it into the site using RPC calls that would be wonderful. Going to take a look at the code here shortly and see what all needs tweaked. I have a few clients looking to launch this sort of service for their coins. ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
coinableS (OP)
Legendary
Offline
Activity: 1442
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 06:25:45 PM |
|
any way you can set up a a threshold?
Threshold for what? I set up to auto withdraw if the user has a balance over 9999 satoshis, is that what you mean?
|
|
|
|
crairezx20
Legendary
Offline
Activity: 1638
Merit: 1046
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 07:11:27 PM |
|
I will try this script ,feed back later.. Downloading... Good job i hope it will work with no problem..
|
|
|
|
coinableS (OP)
Legendary
Offline
Activity: 1442
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 07:11:43 PM |
|
So when I was cloning my project to github I forgot that I had a cronjob running to keep track of the faucet balance. This is why your balance is showing nothing, because if there is no cronjob running the database table fbbal is empty. I'm going to drop the cron, the fbbal table and just call the faucetbox API on the fly to grab the faucet balance. Github repo has been updated.
|
|
|
|
FBCTorg
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 08:28:02 PM |
|
So when I was cloning my project to github I forgot that I had a cronjob running to keep track of the faucet balance. This is why your balance is showing nothing, because if there is no cronjob running the database table fbbal is empty. I'm going to drop the cron, the fbbal table and just call the faucetbox API on the fly to grab the faucet balance. Github repo has been updated.
works great now another thing i'm not sure how to setup the referral reward, the $reefAmount is a percentage value or amount proportional to $startBal i'm trying to setup 111 satoshi per claim with 10% ref. reward $startBal = 111; //starting balance for users $reefAmount = 11; //referral amount is it correct ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) ?
|
|
|
|
coinableS (OP)
Legendary
Offline
Activity: 1442
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 08:37:52 PM |
|
So when I was cloning my project to github I forgot that I had a cronjob running to keep track of the faucet balance. This is why your balance is showing nothing, because if there is no cronjob running the database table fbbal is empty. I'm going to drop the cron, the fbbal table and just call the faucetbox API on the fly to grab the faucet balance. Github repo has been updated.
works great now another thing i'm not sure how to setup the referral reward, the $reefAmount is a percentage value or amount proportional to $startBal i'm trying to setup 111 satoshi per claim with 10% ref. reward $startBal = 111; //starting balance for users $reefAmount = 11; //referral amount is it correct ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) ? Yup if you set it like the above, every new claim will be 111 satoshis and the refer will be paid 11 satoshis. EDIT: Also if you are going to set it down to 111, you might want to change the default bet amount of 200 satoshis to a lower amount on the faucetboxgame/index.php line 647 <input type="text" name ="bet" id="bet" value="<?php if(!isset($_POST['bet'])){ echo "200"; } else { echo $_POST['bet']; } ?>" Change echo "200" to something lower like echo "50"
|
|
|
|
onewiseguy
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 10:10:31 PM |
|
can you give a step by step on how to set the files in the hosting?
and yes a threshold to say 9999 satoshi.
|
|
|
|
coinableS (OP)
Legendary
Offline
Activity: 1442
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 26, 2015, 10:20:38 PM |
|
can you give a step by step on how to set the files in the hosting?
and yes a threshold to say 9999 satoshi.
There is a threshold set, if the player has a balance that is over 9,999 satoshi their game will end and they will be paid out their balance. All you need to do is download the zip from github. Set up a database on your web host, update the two index.php files in each folder with the database credentials you just created and with your faucetbox and funcaptcha API keys. Import the enginedb.sql through PHPmyadmin. The landing page for your visitors is in the Faucetbox directory, to test your new site go to yoursite.com/faucetbox
|
|
|
|
FBCTorg
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 27, 2015, 10:38:38 AM |
|
So when I was cloning my project to github I forgot that I had a cronjob running to keep track of the faucet balance. This is why your balance is showing nothing, because if there is no cronjob running the database table fbbal is empty. I'm going to drop the cron, the fbbal table and just call the faucetbox API on the fly to grab the faucet balance. Github repo has been updated.
works great now another thing i'm not sure how to setup the referral reward, the $reefAmount is a percentage value or amount proportional to $startBal i'm trying to setup 111 satoshi per claim with 10% ref. reward $startBal = 111; //starting balance for users $reefAmount = 11; //referral amount is it correct ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) ? Yup if you set it like the above, every new claim will be 111 satoshis and the refer will be paid 11 satoshis. EDIT: Also if you are going to set it down to 111, you might want to change the default bet amount of 200 satoshis to a lower amount on the faucetboxgame/index.php line 647 <input type="text" name ="bet" id="bet" value="<?php if(!isset($_POST['bet'])){ echo "200"; } else { echo $_POST['bet']; } ?>" Change echo "200" to something lower like echo "50" couldn't find that, thank you ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
DIGITAL GOODS
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 84
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 28, 2015, 01:52:19 AM |
|
sick. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif)
|
|
|
|
KnightTrader
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 28, 2015, 08:36:02 PM |
|
Very nice script! I did make a bet on my private test clone what won over 30000 sats and it did not auto payout. I have not changed anything what should affect to that. Anyway if I use that script somewhere I remember to pay tip ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
coinableS (OP)
Legendary
Offline
Activity: 1442
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 28, 2015, 09:31:19 PM Last edit: November 28, 2015, 09:53:02 PM by coinableS |
|
Very nice script! I did make a bet on my private test clone what won over 30000 sats and it did not auto payout. I have not changed anything what should affect to that. Anyway if I use that script somewhere I remember to pay tip ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Doh, you're right. Left out some crucial info that was preventing the auto cashout. New commit added to fix the auto cashout. Also added a max cashout limit of 99,999 satoshis, if someone's balance is higher than that they will receive an error when trying to cashout.
|
|
|
|
KnightTrader
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 28, 2015, 10:02:37 PM |
|
Very nice script! I did make a bet on my private test clone what won over 30000 sats and it did not auto payout. I have not changed anything what should affect to that. Anyway if I use that script somewhere I remember to pay tip ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Doh, you're right. Left out some crucial info that was preventing the auto cashout. New commit added to fix the auto cashout. Also added a max cashout limit of 99,999 satoshis, if someone's balance is higher than that they will receive an error when trying to cashout. Thanks! I think those are important features to not risk too much of faucet balance.
|
|
|
|
sebungkus
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 28, 2015, 10:54:00 PM |
|
Nice script brother ![Cheesy](https://bitcointalk.org/Smileys/default/cheesy.gif)
|
RUMAHCLOUD.ME | SELLING DIGITAL GOODS PRODUCT
|
|
|
mg8
Newbie
Offline
Activity: 10
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 29, 2015, 08:22:34 PM Last edit: November 29, 2015, 08:35:57 PM by mg8 |
|
Thank you for this nice script, can you change the house edge of this game?
|
|
|
|
onewiseguy
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 29, 2015, 11:50:03 PM |
|
great script. Thanks
|
|
|
|
coinableS (OP)
Legendary
Offline
Activity: 1442
Merit: 1186
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 30, 2015, 12:06:27 AM |
|
Thank you for this nice script, can you change the house edge of this game?
Yes you could change the house edge if you changed the way the profit is calculated. faucetboxgame/index.php lines 51 and 148 $multi2 = $multi - 0.02; //house edge
I have it set up so that it cuts off 2% off the multiplier. So if someone bets with 50/50 chance of winning, if they win they will only receive a prize as if they bet at a 52% probability instead of 50%.
|
|
|
|
|