Author

Topic: Add-on for Dice Script: Random Rewards + USD value (Read 759 times)

hero member
Activity: 1092
Merit: 500
xnd
sr. member
Activity: 297
Merit: 250
@DEVRAWL
I think it's working

http://coindice.win Smiley
hero member
Activity: 1092
Merit: 500
Nice release!
It is good to see people which offer their free support for the bitcoin micro earnings.

Thank you. We, faucet owners should help each other. Smiley

I don't have any faucet atm, but I was thinking to open a new one.
It is very hard to get profit these days (Adsense does not accept it, MellowAds changed the minimum req., etc)
Which is the best script for a faucet atm (in your opinion)?
that actually depends on your choice.
If you want to run faucet with blog, you should use http://99bitcoins.com 's script.
If you prefer security and think, "I'll just create faucet and add funds sometimes" then you should choose FaucetSystem script. [That's why I use FS script. Grin]
But that's the perfect for a simple faucet I think: JQuery script.
That's just an opinion.
legendary
Activity: 1358
Merit: 1000
Bitcoiner since start, and continue to love it!
Nice release!
It is good to see people which offer their free support for the bitcoin micro earnings.

Thank you. We, faucet owners should help each other. Smiley

I don't have any faucet atm, but I was thinking to open a new one.
It is very hard to get profit these days (Adsense does not accept it, MellowAds changed the minimum req., etc)
Which is the best script for a faucet atm (in your opinion)?
hero member
Activity: 1092
Merit: 500
Nice release!
It is good to see people which offer their free support for the bitcoin micro earnings.

Thank you. We, faucet owners should help each other. Smiley
legendary
Activity: 1358
Merit: 1000
Bitcoiner since start, and continue to love it!
Nice release!
It is good to see people which offer their free support for the bitcoin micro earnings.
hero member
Activity: 1092
Merit: 500
first feature .. works Smiley already implemented

second.. not so much. after solving captcha, startbal is 0 Smiley
can I get your site's link?
Edit: I have updated the code. Try now. It's working.
xnd
sr. member
Activity: 297
Merit: 250
@DEVRAWL
first feature .. works Smiley already implemented

second.. not so much. after solving captcha, startbal is 0 Smiley
hero member
Activity: 1092
Merit: 500
Truly great work.  Grin

Thanks for the help and new features.

keep them coming (if you have time).

I would love to see some kind of anti bot features that we can add to this script.
thank you. Smiley Smiley Smiley
okay, I'll try to research about some antibot mechanism.
hero member
Activity: 638
Merit: 516
I ❤ the bitcoin community
Truly great work.  Grin

Thanks for the help and new features.

keep them coming (if you have time).

I would love to see some kind of anti bot features that we can add to this script.
hero member
Activity: 1092
Merit: 500
nice, can you make random payouts, too?Smiley)
Yeah... It's easy... When I'll be on my computer, I will share the code. Now I'm on mobile.
See the edit.
hero member
Activity: 1092
Merit: 500
nice, can you make random payouts, too?Smiley)
Yeah... It's easy... When I'll be on my computer, I will share the code. Now I'm on mobile.
xnd
sr. member
Activity: 297
Merit: 250
@DEVRAWL
nice, can you make random payouts, too?Smiley)
hero member
Activity: 1092
Merit: 500
After this post: https://bitcointalksearch.org/topic/add-on-for-faucetbox-script-rewards-will-be-changed-with-bitcoin-price-auto-1838228
Someone told me to add this feature on dice script.
It's very easy to add this feature in dice script.
Just open index.php file from root directory.
Find:
Code:
$startBal = 50; //starting balance for users
$reefAmount = 5; //referral amount
Replace with this code:
Code:
$faucet_reward = 0.001; //reward amount in USD
$ref_amount = 0.0001; //referral amount in USD
$get_rate = file_get_contents("https://blockchain.info/tobtc?currency=USD&value=1");
$rate_sats = $get_rate * 100000000;
$startBal = intval($faucet_reward * $rate_sats);
$reefAmount = intval($ref_amount * $rate_sats);



Edit:
So, here's the code for random rewards:
Code:
	$min_reward = 0.001; //minimum faucet reward in USD
$max_reward = 0.005; //maximum faucet reward in USD
$ref_prcnt = 0.05; //referral percentage divided by 100.
        $get_rate = file_get_contents("https://blockchain.info/tobtc?currency=USD&value=1");
        $rate_sats = $get_rate * 100000000;
$shw_min = intval($min_reward * $rate_sats);
$shw_max = intval($max_reward * $rate_sats);
$reward = rand($shw_min, $shw_max);
        $startBal = intval($reward);
$reefAmount = intval($ref_prcnt * $startBal);

Now paste this code anywhere inside tag to show the rewards:
Code:
echo "Win between $shw_min and $shw_max Satoshi every xxx minutes."?>
That's it. Now your dice is ready to change the reward amount according to the change of bitcoin price, just like freebitco.in. Wink
Jump to: