Bitcoin Forum
September 19, 2017, 07:11:48 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2] 3 4 5 6 7 8 »  All
  Print  
Author Topic: Open Sourced Faucet with Dice Script  (Read 8670 times)
FBCTorg
Sr. Member
****
Offline Offline

Activity: 396



View Profile WWW
November 26, 2015, 05: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

1505848308
Hero Member
*
Offline Offline

Posts: 1505848308

View Profile Personal Message (Offline)

Ignore
1505848308
Reply with quote  #2

1505848308
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
onewiseguy
Hero Member
*****
Offline Offline

Activity: 728



View Profile
November 26, 2015, 05:41:56 PM
 #22

any way you can set up a a threshold?
coinableS
Legendary
*
Offline Offline

Activity: 1022



View Profile WWW
November 26, 2015, 06: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

MRKLYE
Legendary
*
Offline Offline

Activity: 1246


Designer - Developer


View Profile WWW
November 26, 2015, 06: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
coinableS
Legendary
*
Offline Offline

Activity: 1022



View Profile WWW
November 26, 2015, 06: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?

crairezx20
Hero Member
*****
Offline Offline

Activity: 784



View Profile WWW
November 26, 2015, 07:11:27 PM
 #26

I will try this  script ,feed back later.. Downloading... Good job i hope it will work with no problem..

  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  .WHITEPAPER.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  .ANN THREAD.
.
▄▄▄▄▄▄▄▄
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
coinableS
Legendary
*
Offline Offline

Activity: 1022



View Profile WWW
November 26, 2015, 07: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.

FBCTorg
Sr. Member
****
Offline Offline

Activity: 396



View Profile WWW
November 26, 2015, 08: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?



coinableS
Legendary
*
Offline Offline

Activity: 1022



View Profile WWW
November 26, 2015, 08: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:
<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
Hero Member
*****
Offline Offline

Activity: 728



View Profile
November 26, 2015, 10: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.
coinableS
Legendary
*
Offline Offline

Activity: 1022



View Profile WWW
November 26, 2015, 10: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

FBCTorg
Sr. Member
****
Offline Offline

Activity: 396



View Profile WWW
November 27, 2015, 10: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:
<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

DIGITAL GOODS
Member
**
Offline Offline

Activity: 84


View Profile
November 28, 2015, 01:52:19 AM
 #33

sick. Grin
KnightTrader
Sr. Member
****
Offline Offline

Activity: 274


View Profile
November 28, 2015, 08: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
coinableS
Legendary
*
Offline Offline

Activity: 1022



View Profile WWW
November 28, 2015, 09: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.

KnightTrader
Sr. Member
****
Offline Offline

Activity: 274


View Profile
November 28, 2015, 10: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.
sebungkus
Sr. Member
****
Offline Offline

Activity: 462


Roma Fan Since 1999 ! #ForzaRoma


View Profile
November 28, 2015, 10:54:00 PM
 #37

Nice script brother Cheesy
mg8
Newbie
*
Offline Offline

Activity: 10


View Profile
November 29, 2015, 08:22:34 PM
 #38

Thank you for this nice script, can you change the house edge of this game?
onewiseguy
Hero Member
*****
Offline Offline

Activity: 728



View Profile
November 29, 2015, 11:50:03 PM
 #39

great script.
Thanks
coinableS
Legendary
*
Offline Offline

Activity: 1022



View Profile WWW
November 30, 2015, 12:06:27 AM
 #40

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

Code:
$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%.

Pages: « 1 [2] 3 4 5 6 7 8 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!