Bitcoin Forum
April 26, 2024, 10:29:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Add-on for Dice Script: Random Rewards + USD value  (Read 746 times)
alamin99 (OP)
Hero Member
*****
Offline Offline

Activity: 1078
Merit: 500


View Profile
March 22, 2017, 06:21:36 PM
Last edit: March 24, 2017, 08:03:58 AM by alamin99
 #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
1714127348
Hero Member
*
Offline Offline

Posts: 1714127348

View Profile Personal Message (Offline)

Ignore
1714127348
Reply with quote  #2

1714127348
Report to moderator
1714127348
Hero Member
*
Offline Offline

Posts: 1714127348

View Profile Personal Message (Offline)

Ignore
1714127348
Reply with quote  #2

1714127348
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714127348
Hero Member
*
Offline Offline

Posts: 1714127348

View Profile Personal Message (Offline)

Ignore
1714127348
Reply with quote  #2

1714127348
Report to moderator
1714127348
Hero Member
*
Offline Offline

Posts: 1714127348

View Profile Personal Message (Offline)

Ignore
1714127348
Reply with quote  #2

1714127348
Report to moderator
1714127348
Hero Member
*
Offline Offline

Posts: 1714127348

View Profile Personal Message (Offline)

Ignore
1714127348
Reply with quote  #2

1714127348
Report to moderator
xnd
Sr. Member
****
Offline Offline

Activity: 297
Merit: 250


@DEVRAWL


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

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

alamin99 (OP)
Hero Member
*****
Offline Offline

Activity: 1078
Merit: 500


View Profile
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.
alamin99 (OP)
Hero Member
*****
Offline Offline

Activity: 1078
Merit: 500


View Profile
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.
Bytecoiner419
Hero Member
*****
Offline Offline

Activity: 637
Merit: 511


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.Com🏆 👉 Buy Ad Space, LIVE BTC Casino & Crypto Articles 🌟
alamin99 (OP)
Hero Member
*****
Offline Offline

Activity: 1078
Merit: 500


View Profile
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.
xnd
Sr. Member
****
Offline Offline

Activity: 297
Merit: 250


@DEVRAWL


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

Activity: 1078
Merit: 500


View Profile
March 24, 2017, 07:03:12 AM
Last edit: March 24, 2017, 07:15:07 AM by alamin99
 #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.
superiorus
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000

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

Activity: 1078
Merit: 500


View Profile
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
superiorus
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000

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

Activity: 1078
Merit: 500


View Profile
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.
xnd
Sr. Member
****
Offline Offline

Activity: 297
Merit: 250


@DEVRAWL


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

I think it's working

http://coindice.win Smiley

alamin99 (OP)
Hero Member
*****
Offline Offline

Activity: 1078
Merit: 500


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

I think it's working

http://coindice.win Smiley
heh! Error 403?  Undecided Undecided Undecided
Pages: [1]
  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!