Bitcoin Forum
October 19, 2017, 10:38:30 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Add-on for Dice Script: Random Rewards + USD value  (Read 598 times)
alamin99
Sr. Member
****
Offline Offline

Activity: 420



View Profile WWW
March 22, 2017, 06:21:36 PM
 #1

After this post: https://bitcointalk.org/index.php?topic=1838228.0
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 <body> </body> tag to show the rewards:
Code:
<?php 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

☆☆☆☆☆ CCTalk.io ☆☆☆☆☆
BitcoinTalk is not enough, join the next!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508452710
Hero Member
*
Offline Offline

Posts: 1508452710

View Profile Personal Message (Offline)

Ignore
1508452710
Reply with quote  #2

1508452710
Report to moderator
xnd
Full Member
***
Offline Offline

Activity: 219



View Profile
March 23, 2017, 04:47:14 AM
 #2

nice, can you make random payouts, too?Smiley)

alamin99
Sr. Member
****
Offline Offline

Activity: 420



View Profile WWW
March 23, 2017, 05:21:00 AM
 #3

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.

☆☆☆☆☆ CCTalk.io ☆☆☆☆☆
BitcoinTalk is not enough, join the next!
alamin99
Sr. Member
****
Offline Offline

Activity: 420



View Profile WWW
March 23, 2017, 02:10:32 PM
 #4

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.

☆☆☆☆☆ CCTalk.io ☆☆☆☆☆
BitcoinTalk is not enough, join the next!
Bytecoiner419
Hero Member
*****
Offline Offline

Activity: 532


I ❤ the bitcoin community


View Profile WWW
March 23, 2017, 06:12:13 PM
 #5

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.

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
🏆BitcoinsBest.Club🏆 👉 Dice Faucet, Grid Game, Autosurf & Free Bitcoin Giveaways 🌟
alamin99
Sr. Member
****
Offline Offline

Activity: 420



View Profile WWW
March 24, 2017, 06:25:30 AM
 #6

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.

☆☆☆☆☆ CCTalk.io ☆☆☆☆☆
BitcoinTalk is not enough, join the next!
xnd
Full Member
***
Offline Offline

Activity: 219



View Profile
March 24, 2017, 06:40:29 AM
 #7

first feature .. works Smiley already implemented

second.. not so much. after solving captcha, startbal is 0 Smiley

alamin99
Sr. Member
****
Offline Offline

Activity: 420



View Profile WWW
March 24, 2017, 07:03:12 AM
 #8

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.

☆☆☆☆☆ CCTalk.io ☆☆☆☆☆
BitcoinTalk is not enough, join the next!
superiorus
Legendary
*
Offline Offline

Activity: 1344

Bitcoiner since start, and continue to love it!


View Profile WWW
March 24, 2017, 08:00:08 AM
 #9

Nice release!
It is good to see people which offer their free support for the bitcoin micro earnings.

alamin99
Sr. Member
****
Offline Offline

Activity: 420



View Profile WWW
March 24, 2017, 08:03:04 AM
 #10

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

☆☆☆☆☆ CCTalk.io ☆☆☆☆☆
BitcoinTalk is not enough, join the next!
superiorus
Legendary
*
Offline Offline

Activity: 1344

Bitcoiner since start, and continue to love it!


View Profile WWW
March 24, 2017, 08:05:45 AM
 #11

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)?

alamin99
Sr. Member
****
Offline Offline

Activity: 420



View Profile WWW
March 24, 2017, 08:13:18 AM
 #12

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.

☆☆☆☆☆ CCTalk.io ☆☆☆☆☆
BitcoinTalk is not enough, join the next!
xnd
Full Member
***
Offline Offline

Activity: 219



View Profile
March 24, 2017, 06:59:26 PM
 #13

I think it's working

http://coindice.win Smiley

alamin99
Sr. Member
****
Offline Offline

Activity: 420



View Profile WWW
March 24, 2017, 07:41:25 PM
 #14

I think it's working

http://coindice.win Smiley
heh! Error 403?  Undecided Undecided Undecided

☆☆☆☆☆ CCTalk.io ☆☆☆☆☆
BitcoinTalk is not enough, join the next!
Pages: [1]
  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!