Bitcoin Forum
April 20, 2024, 12:17:57 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 5 6 7 8 »  All
  Print  
Author Topic: Open Sourced Faucet with Dice Script  (Read 10075 times)
FBCTorg
Sr. Member
****
Offline Offline

Activity: 395
Merit: 250



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

1713572277
Hero Member
*
Offline Offline

Posts: 1713572277

View Profile Personal Message (Offline)

Ignore
1713572277
Reply with quote  #2

1713572277
Report to moderator
1713572277
Hero Member
*
Offline Offline

Posts: 1713572277

View Profile Personal Message (Offline)

Ignore
1713572277
Reply with quote  #2

1713572277
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
onewiseguy
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



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

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

Activity: 1442
Merit: 1179



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: 1358
Merit: 1003


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


▄▄███████████▄▄
▄████▀▀`````````▀▀████▄
███▀```````````````````▀███
███`````````````````````````███
██```````````██``██````````````██
██````````▄▄▄▄██▄▄██▄▄▄▄`````````██
██`````````▀██████████████▄````````██
██`````````````███`````▀████`````````██
▐█▌`````````````███`````▄███▀`````````▐█▌
▐█▌`````````````███████████▄``````````▐█▌
▐█▌`````````````███▀▀▀▀▀▀████▄````````▐█▌
▐█▌`````````````███```````████````````▐█▌
██`````````````███`````▄▄████````````██
██`````````▄██████████████▀````````██
██````````▀▀▀▀██▀▀██▀▀▀▀`````````██
██```````````██``██````````````██
███`````````````````````````███
███▄```````````````````▄███
▀████▄▄`````````▄▄████▀
▀▀███████████▀▀
FREE
BITCOINS.com





















`````````▄
````````▄█▄
``````▄█████▄
`````█████████
```▄███████████▄
``███████████████
`█████████████████
███████████████████
███████████████████
██▌▀███████████████
`██``▀████████████
``██▄```▀████████
```▀███▄▄`█████▀
``````▀▀▀▀▀▀▀

FAUCET
▀▀▀▀▀▀▀▀▀



``````````````````▄▄▄▄▄▄
``````````````````██████
``````````````````██████
``````````````````██████
``````````██████``██████
``````````██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████
``██████``██████``██████

██████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

XCHANGE
▀▀▀▀▀▀▀▀▀



```````````▄
`````````▄██
```````▄████
`````▄██████████▄
`````▀███████████▄
```````▀████``▀████
█``````▄`▀██````▀██
██▄````██▄`▀``````█
████▄``████▄
`▀███████████▄
``▀██████████▀
```````████▀
```````██▀
```````▀

SWAP
▀▀▀▀▀▀▀▀▀
coinableS (OP)
Legendary
*
Offline Offline

Activity: 1442
Merit: 1179



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
Legendary
*
Offline Offline

Activity: 1638
Merit: 1046



View Profile
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..
coinableS (OP)
Legendary
*
Offline Offline

Activity: 1442
Merit: 1179



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: 395
Merit: 250



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 (OP)
Legendary
*
Offline Offline

Activity: 1442
Merit: 1179



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
Merit: 500



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 (OP)
Legendary
*
Offline Offline

Activity: 1442
Merit: 1179



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: 395
Merit: 250



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
Merit: 10


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

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

Activity: 288
Merit: 250


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 (OP)
Legendary
*
Offline Offline

Activity: 1442
Merit: 1179



View Profile WWW
November 28, 2015, 09:31:19 PM
Last edit: November 28, 2015, 09:53:02 PM by coinableS
 #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: 288
Merit: 250


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
Hero Member
*****
Offline Offline

Activity: 964
Merit: 500


Roma Fan Since 1999 ! #ForzaRoma


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

Nice script brother Cheesy

RUMAHCLOUD.ME | SELLING DIGITAL GOODS PRODUCT
mg8
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
November 29, 2015, 08:22:34 PM
Last edit: November 29, 2015, 08:35:57 PM by mg8
 #38

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

Activity: 728
Merit: 500



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

great script.
Thanks
coinableS (OP)
Legendary
*
Offline Offline

Activity: 1442
Merit: 1179



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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!