Title: Adding Lottery to Faucetbox Faucet? Post by: neogi on March 12, 2015, 11:26:38 PM 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. Title: Re: Adding Lottery to Faucetbox Faucet? Post by: TriggerX on March 13, 2015, 12:13:04 AM If you find it please PM me. I have been wanting a way to increase my impressions on my page. Thanks!!
Title: Re: Adding Lottery to Faucetbox Faucet? Post by: ranlo on March 13, 2015, 12:49:13 AM 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?
Title: Re: Adding Lottery to Faucetbox Faucet? Post by: neogi on March 13, 2015, 09:17:52 AM 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? Title: Re: Adding Lottery to Faucetbox Faucet? Post by: ranlo on March 13, 2015, 06:01:00 PM 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. Title: Re: Adding Lottery to Faucetbox Faucet? Post by: speedy1987 on March 14, 2015, 12:24:09 PM I would also love to add some lottery to my faucet. How to?
Title: Re: Adding Lottery to Faucetbox Faucet? Post by: ranlo on March 15, 2015, 05:24:00 PM I would also love to add some lottery to my faucet. How to? Read my post. It's a very basic script. |