Pages:
Author

Topic: Open Sourced Faucet with Dice Script - page 7. (Read 10129 times)

hero member
Activity: 896
Merit: 500
Roma Fan Since 1999 ! #ForzaRoma
November 28, 2015, 05:54:00 PM
#37
Nice script brother Cheesy
sr. member
Activity: 288
Merit: 250
November 28, 2015, 05:02:37 PM
#36
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

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.
legendary
Activity: 1442
Merit: 1186
November 28, 2015, 04:31:19 PM
#35
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

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.
sr. member
Activity: 288
Merit: 250
November 28, 2015, 03:36:02 PM
#34
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
member
Activity: 84
Merit: 10
November 27, 2015, 08:52:19 PM
#33
sick. Grin
sr. member
Activity: 395
Merit: 250
November 27, 2015, 05:38:38 AM
#32
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?




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

Code:
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
legendary
Activity: 1442
Merit: 1186
November 26, 2015, 05:20:38 PM
#31
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
hero member
Activity: 728
Merit: 500
November 26, 2015, 05:10:31 PM
#30
can you give a step by step on how to set the files in the hosting?

and yes a threshold to say 9999 satoshi.
legendary
Activity: 1442
Merit: 1186
November 26, 2015, 03:37:52 PM
#29
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?




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

Code:
if(!isset($_POST['bet'])){ echo "200"; } else { echo $_POST['bet']; } ?>"

Change echo "200" to something lower like echo "50"
sr. member
Activity: 395
Merit: 250
November 26, 2015, 03:28:02 PM
#28
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?


legendary
Activity: 1442
Merit: 1186
November 26, 2015, 02:11:43 PM
#27
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.
legendary
Activity: 1638
Merit: 1046
November 26, 2015, 02:11:27 PM
#26
I will try this  script ,feed back later.. Downloading... Good job i hope it will work with no problem..
legendary
Activity: 1442
Merit: 1186
November 26, 2015, 01:25:45 PM
#25
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?
legendary
Activity: 1358
Merit: 1003
Designer - Developer
November 26, 2015, 01:25:36 PM
#24
very nice from you sharing this with others, PM me your BTC addy please Smiley

There's one in the readme on the git hub repo ; )
0.01 sent, cheers Smiley


Thank you for the support Smiley
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
legendary
Activity: 1442
Merit: 1186
November 26, 2015, 01:23:30 PM
#23
very nice from you sharing this with others, PM me your BTC addy please Smiley

There's one in the readme on the git hub repo ; )
0.01 sent, cheers Smiley


Thank you for the support Smiley
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
hero member
Activity: 728
Merit: 500
November 26, 2015, 12:41:56 PM
#22
any way you can set up a a threshold?
sr. member
Activity: 395
Merit: 250
November 26, 2015, 12:35:12 PM
#21
very nice from you sharing this with others, PM me your BTC addy please Smiley

There's one in the readme on the git hub repo ; )
0.01 sent, cheers Smiley


Thank you for the support Smiley
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
legendary
Activity: 1442
Merit: 1186
November 26, 2015, 12:30:18 PM
#20
very nice from you sharing this with others, PM me your BTC addy please Smiley

There's one in the readme on the git hub repo ; )
0.01 sent, cheers Smiley


Thank you for the support Smiley
legendary
Activity: 1442
Merit: 1186
November 26, 2015, 12:28:28 PM
#19
Awesome dude! Any way this thing can use on host wallets to faucet from or no?

That would be a neat feature. I am going to check out your code for sure and see how you've done things.
Thank you for sharing your source code. Very kind of you!

Not sure what you mean by host wallet. It uses faucetbox to manage faucet funds.
sr. member
Activity: 395
Merit: 250
November 26, 2015, 12:27:42 PM
#18
very nice from you sharing this with others, PM me your BTC addy please Smiley

There's one in the readme on the git hub repo ; )
0.01 sent, cheers Smiley

Pages:
Jump to: