Author

Topic: Adding Lottery to Faucetbox Faucet? (Read 1123 times)

legendary
Activity: 1988
Merit: 1007
March 15, 2015, 12:24:00 PM
#7
I would also love to add some lottery to my faucet. How to?

Read my post. It's a very basic script.
sr. member
Activity: 462
Merit: 250
March 14, 2015, 07:24:09 AM
#6
I would also love to add some lottery to my faucet. How to?
legendary
Activity: 1988
Merit: 1007
March 13, 2015, 01:01:00 PM
#5
Hi Ranlo,

Yea sort of, basically when someone claims they're given the option to purchase a lottery ticket for say 100 sat per ticket. At the end of the day one person is given 10,000 sat.

You can see a good example on this site http://thefaucetrunner.com/faucet/lottery

If you play through it will give you the option of purchasing tickets for the lottery, if that makes sense?

That's actually pretty easy...

if ($userWants = true)
{
$userBalance -= ($userBuys*100);
$userTickets += $userBuys;
}

This is pseudo-code, but the real thing wouldn't be much off.
newbie
Activity: 8
Merit: 0
March 13, 2015, 04:17:52 AM
#4
Hi Ranlo,

Yea sort of, basically when someone claims they're given the option to purchase a lottery ticket for say 100 sat per ticket. At the end of the day one person is given 10,000 sat.

You can see a good example on this site http://thefaucetrunner.com/faucet/lottery

If you play through it will give you the option of purchasing tickets for the lottery, if that makes sense?
legendary
Activity: 1988
Merit: 1007
March 12, 2015, 07:49:13 PM
#3
What kind of lottery system are you guys looking for? Like "buy in for x and you can win y (prize pool)" or when you claim, you get a ticket? Or?
hero member
Activity: 826
Merit: 1000
March 12, 2015, 07:13:04 PM
#2
If you find it please PM me. I have been wanting a way to increase my impressions on my page. Thanks!!
newbie
Activity: 8
Merit: 0
March 12, 2015, 06:26:38 PM
#1
Just wondering if there's anyone who would know how to hook in a lottery system for a pretty standard Faucet?

You can view it here - http://leakyfaucet.uk/

Any help would be appreciated.
Jump to: